---
:backends:
  - yaml
  - file

:hierarchy:
  - defaults
  - "%{clientcert}"
  - "%{::domain}/%{::environment}/%{::osfamily}/%{::lsbdistcodename}"
  - global

:yaml:
  :datadir: /etc/puppet/data

On Tuesday, January 7, 2014 12:05:46 PM UTC-6, Andrew wrote:
>
>
> 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 starting
> Debug: hiera(): Looking up ssh_service_config in YAML backend
> Debug: hiera(): Looking for data source defaults
> Debug: hiera(): Looking for data source puppetmaster.iad3.example.com
> Debug: hiera(): Cannot find datafile 
> /etc/puppet/data/puppetmaster.iad3.example.com.yaml, skipping
> Debug: hiera(): Looking for data source production/Debian/wheezy
> *Debug: hiera(): Found ssh_service_config in production/Debian/wheezy*
>
> but not with 
>
> $ pupept agent -tv
> *Error: 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 <http://puppetmaster.iad3.example.com>*
>
> :hierarchy:
>   - "%{::environment}/%{::osfamily}/%{::lsbdistcodename}"     <--- This 
> works with  puppet apply, but not puppet agent -tv 
>
> This is really strange, any help will be greatly appreciated. (Appending 
> the domain fact produces the same result)
>
>>   -- 
> 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 <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/2df4b281-7a41-4f16-a59f-34c574ae985f%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>  

-- 
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/279c0103-970d-468e-8f0a-6485a69f0c33%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to