---
mysql::configdir:          "%{::boxen::config::configdir}/mysql"
mysql::globalconfigprefix: "%{::boxen::config::homebrewdir}"
mysql::datadir:            "%{::boxen::config::datadir}/mysql"
mysql::bindir:             "%{::boxen::config::homebrewdir}/bin"
mysql::executable:         "%{::boxen::config::homebrewdir}/bin/mysqld_safe"
mysql::client:             "%{::boxen::config::homebrewdir}/bin/mysql"
mysql::logdir:             "%{::boxen::config::logdir}/mysql"
mysql::servicename:        "dev.mysql"

mysql::user: "%{::boxen_user}"
mysql::host: "127.0.0.1"
mysql::port: "13306"
mysql::socket: "%{mysql::datadir}/socket"

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

---
mysql::configdir:          "%{::boxen::config::configdir}/mysql"
mysql::globalconfigprefix: "%{::boxen::config::homebrewdir}"
mysql::datadir:            "%{::boxen::config::datadir}/mysql"
mysql::bindir:             "%{::boxen::config::homebrewdir}/bin"
mysql::executable:         "%{::boxen::config::homebrewdir}/bin/mysqld_safe"
mysql::client:             "%{::boxen::config::homebrewdir}/bin/mysql"
mysql::logdir:             "%{::boxen::config::logdir}/mysql"
mysql::servicename:        "dev.mysql"

mysql::user: "%{::boxen_user}"
mysql::host: "127.0.0.1"
mysql::port: "13306"
mysql::socket: "%{::boxen::config::datadir}/socket"

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

Interpolate Puppet top-scope variable for datadir
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.
