-
-
Notifications
You must be signed in to change notification settings - Fork 879
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
Cannot get new Hiera module_data to work correctly #484
Comments
Hmm... that is very odd. Is |
Ah, my email was not added as a reply, sorry. |
@frenkel Please try by adding |
Same problem and same output unfortunately. |
Just a wild suggestion: see whenever there's a complaint For me (Puppet 3.4.3 and 3.7.1 on Ubuntu, installed from official PuppetLabs APT repo) the issue was that Hiera's unaware about Hiera loads its modules with plain and simple Setting This is just a wild guess, but maybe this will be helpful. Sorry if that was misleading or anything. |
Thanks for the hint. Unfortunately, puppet doesn't seem to produce a log when run in master-less mode. Nevertheless, I tried your workaround but it did not solve my problem. |
I'm also having issues with the hiera defaults. This is the error I receive:
|
Ah, I missed the new docs about the changes for hiera. |
Actually, even with setting |
Solved same issue by creating symlinks in /var/lib/puppet/lib |
I think the issue stems from the way Puppet loads any lib dirs from the modulepath during Puppet bootstrapping. There's a comment and code at https://github.com/puppetlabs/puppet/blob/3.6.2/lib/puppet/util/autoload.rb#L104-L153 which suggests this behavior. I'm not great at debugging so I haven't traced the full program execution to determine the reason why in some cases it loads and in others it doesn't. But it does explain why @BcTpe4HbIu can symlink and get it working, because it's skipping the limitations of the Puppet autoloader, and @drdaeman got those results. If someone could confirm and/or take this investigation further that'd be very helpful! But this code in autoloader's been there since 3.0.0 and it hasn't changed in master, so it looks like it will continue to work that way for the foreseeable future. |
Well, for me the problem must be something else, because the symlink trick doesn't fix it. Not even when I start a local puppet master and client. |
Check if libdir is actualy |
Thanks, but on my system it's /var/puppet/lib, so that was what I tested. |
I too followed the documentation and could not get this to work. Not sure if this is useful info, I am running CentOS 7, puppetserver-0.4.0, r10k with dynamic environments. |
I have actually removed the support for |
Hi, I'm using latest version (0.2.1) and it still doesn't work. When I call the 'nginx::resource::vhost' defined type like this: nginx::resource::vhost { $name: I get this error in my puppet client Error: Could not retrieve catalog from remote server: Error 400 on SERVER: is not valid. It should be 4 digits (0644 by default). at /etc/puppet/environments/testing/modules/nginx/manifests/resource/vhost.pp:418 on node I thought initially it was a bug with hiera, but even if I don't pass parameters to the defined type and use hard-coded values I get the same output error. I'm using Debian 7 Wheezy 64 bits with puppet version 3.7.2 |
What happens if you use |
Hi,
I followed you instructions regarding Hiera, but I cannot get it to work on an OpenBSD server. I know that OpenBSD is not supported yet because there is pending pull request, but I want to convert that pull request to the new module_data Hiera structure.
These are the steps I followed and the errors I get.
puppet module install jfryman-nginx --modulepath ./modules
I modified
/etc/hiera.yaml
to look like this:Created a symlink from /etc/puppet/hiera.yaml to /etc/hiera.yaml:
ln -s /etc/hiera.yaml /etc/puppet/hiera.yaml
I modified my site.pp to look like this:
Now when I run
puppet apply --modulepath modules manifests/site.pp --verbose --debug --noop
I receive the following errors:I'm using puppet version 3.4.2 and 1.3.1. Any ideas what is wrong? Am I doing something wrong?
The text was updated successfully, but these errors were encountered: