-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working from puppet but working from hiera directly #18
Comments
In the spirit of: http://xkcd.com/979/ I dug in a bit and found: http://comments.gmane.org/gmane.comp.sysutils.puppet.user/51019 |
Dear people from the future: check the permissions on files and directories under /etc/puppet/hieradata. You'll get the same error message if the puppet process cannot read those files. |
@santana Your trick worked! Thanks. The permission on the relevant yaml file under /etc/puppet/hieradata was set to 664 and changing it to 755 enabled puppet agent to look up the relevant fields. |
@nvasudevan given the sensitive nature of the data in /etc/puppet/hieradata, I prefer to make the puppet user/group own the directory and set the permissions so nobody else can read/write them. |
This is quite tricky. I've been searching the web for an answer but found nothing.
I have
/etc/hiera.yaml
as a symlink pointing/etc/puppet/hiera.yaml
. I also havehiera_config=/etc/puppet/hiera.yaml
in[master]
section of/etc/puppet/puppet.conf
.My hiera config looks like this:
When I run hiera locally either passing or not the config file with -c I get the correct value:
But if I try to access a hiera value from puppet it doesn't fetch it unless set in
/etc/puppet/hieradata/common.yaml
:I'm using Ubuntu's Puppet version 3.0.2-1 from puppetlabs deb repo. I'm using Hiera version, also from puppetlabs with version 1.1.2-1. I installed hiera-gpg from a gem and got version 1.1.0.
I've had a look at syslog and the only message I'm getting when trying from puppet is the following:
When accessing locally, since everything works just fine, no log messages are generated.
I guess this is not a bug, but I'm stuck here and don't know how to carry on
The text was updated successfully, but these errors were encountered: