--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f139fb4c-92f2-4616-a522-6bd69ecfd9fb%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Anything in the puppet master logs?
Not sure, but i think puppet apply - hiera lookup is done by client,
puppet agent - lookup is done by puppet master.
Andrey
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/126d00bd-2254-49a0-938b-db55a828a702%40googlegroups.com.
Anything in the puppet master logs?
Not sure, but i think puppet apply - hiera lookup is done by client,
puppet agent - lookup is done by puppet master.
Hm nothing in the logs. It's worth mentioning that I run this on the puppet master. Here's the config in case I missed something there:
What version of Puppet are you running?
3.4.1 for both master and agent
As what user is the master running? (Typically an unprivileged user named 'puppet'.)
The master is running as user puppet
As what user are you running the agent in your tests?
I am running the agent and the apply commands on the master as the root user
As what user are you running "puppet apply" in your tests?
root
What are the ownership and permissions of /etc/puppet/data/loc.example.com/production/Debian/wheezy.yaml and all the directories in the path to it? Do any of those have extended ACLs set on them?
The permissions of the directory and the yaml file are root:root. No ALC's. I chown-ed then to puppet:puppet with the same result.
Are you running SELinux in enforcing mode? If so, then do you see relevant AVC messages in the system log?
This is a Debian Wheezy, so no selinux or apparmor on it.
Content of the yaml file - any quotes there which might cause issues?
Try puppet master compile for the node - is it failing as well?
What version of Puppet are you running?
3.4.1 for both master and agent
As what user is the master running? (Typically an unprivileged user named 'puppet'.)
The master is running as user puppet
As what user are you running the agent in your tests?
I am running the agent and the apply commands on the master as the root user
As what user are you running "puppet apply" in your tests?
root
What are the ownership and permissions of /etc/puppet/data/loc.example.com/production/Debian/wheezy.yaml and all the directories in the path to it? Do any of those have extended ACLs set on them?
The permissions of the directory and the yaml file are root:root. No ALC's. I chown-ed then to puppet:puppet with the same result.
Are you running SELinux in enforcing mode? If so, then do you see relevant AVC messages in the system log?
This is a Debian Wheezy, so no selinux or apparmor on it.
The bellow works fine with this:$ puppet apply --debug --environment=production -e '$test = hiera('ssh_service_config') notify { $::test: }'Debug: hiera(): Hiera YAML backend startingDebug: hiera(): Looking up ssh_service_config in YAML backendDebug: hiera(): Looking for data source defaultsDebug: hiera(): Looking for data source puppetmaster.iad3.example.comDebug: hiera(): Cannot find datafile /etc/puppet/data/puppetmaster.iad3.example.com.yaml, skippingDebug: hiera(): Looking for data source production/Debian/wheezyDebug: hiera(): Found ssh_service_config in production/Debian/wheezybut not with$ pupept agent -tvError: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find data item ssh_package_name in any Hiera data file and no default supplied at /srv/puppet/environments/production/modules/ssh/manifests/install.pp:2 on node puppetmaster.iad3.example.com