Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit cd13835

Browse files
committed
Interpolate Puppet top-scope variable for datadir
When I ran this code, the `socket` configuration line in my.cnf was set to "socket=/socket". It turns out that the mysql::socket parameter was being looked up via Hiera as desired, but '%{mysql::datadir}' was not being properly expanded.
1 parent 352823f commit cd13835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/Darwin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mysql::servicename: "dev.mysql"
1111
mysql::user: "%{::boxen_user}"
1212
mysql::host: "127.0.0.1"
1313
mysql::port: "13306"
14-
mysql::socket: "%{mysql::datadir}/socket"
14+
mysql::socket: "%{::boxen::config::datadir}/socket"
1515

1616
mysql::package: boxen/brews/mysql
1717
mysql::version: 5.5.20-boxen2

0 commit comments

Comments
 (0)