Starting with the simplest of solutions, have you restarted the master
service after updating hiera.yaml? If not, it may be using an older
in-memory version of hiera.yaml.


Rob Nelson
rnels...@gmail.com

On Wed, Dec 21, 2016 at 1:16 PM, Denny Fuchs <denny.schi...@gmail.com>
wrote:

>
> 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
> <https://groups.google.com/d/msgid/puppet-users/68e1bc79-6709-47a3-a3e3-7a9cbd483a84%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAC76iT-1v0vgZ1tyLnh9x8FTagT4M%2B-rFDSwNUn%3DfUdVw34usg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to