hi Rob,

I had to use a slightly different   command:

hiera -c /etc/puppet/hiera.yaml mysql::server::backup::backupuser 
environment=test ::role=mysql_server --debug

[...]
DEBUG: 2016-12-21 19:14:39 +0100: Hiera JSON backend starting
DEBUG: 2016-12-21 19:14:39 +0100: Looking up mysql::server::backup::backupuser 
in JSON backend
DEBUG: 2016-12-21 19:14:39 +0100: Looking for data source role/mysql_server
DEBUG: 2016-12-21 19:14:39 +0100: Cannot find datafile /etc/puppet/hiera/
role/mysql_server.json, skipping
DEBUG: 2016-12-21 19:14:39 +0100: Looking for data source common
DEBUG: 2016-12-21 19:14:39 +0100: Cannot find datafile /etc/puppet/hiera/
common.json, skipping
DEBUG: 2016-12-21 19:14:39 +0100: Hiera YAML backend starting
DEBUG: 2016-12-21 19:14:39 +0100: Looking up mysql::server::backup::backupuser 
in YAML backend
DEBUG: 2016-12-21 19:14:39 +0100: Looking for data source role/mysql_server
DEBUG: 2016-12-21 19:14:39 +0100: Found mysql::server::backup::backupuser in 
role/mysql_server
dbbackup


So, that seems to be working, so something else must be wrong in my config 
files.

cu denny

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/68e1bc79-6709-47a3-a3e3-7a9cbd483a84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to