Skip to content
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

Having difficulty understanding how to use hiera to replace params.pp #494

Closed
gl00ten opened this issue Oct 28, 2014 · 2 comments
Closed

Comments

@gl00ten
Copy link

gl00ten commented Oct 28, 2014

I somewhat understand how hiera works, I read overall the official guides and I saw the example here:

https://github.com/jfryman/puppet-nginx/blob/master/README.markdown
in the "Hiera Support" section

The thing is, all I see in that example are resources being defined.

What I want is to translate something I used to use in a manifest in a a previous version of jfryman-nginx:

class { "::nginx::params":
    worker_rlimit_nofile  => '30000',
    nx_worker_connections => '10240',
    nx_worker_processes   => '4',
}

into this new hiera-using version. But now I can't find where the list of these types of parameters are, and where they are described so I can defined them in hiera or something?

I know the specific parameters I used had their name changed before version 0.0.10, but I'm looking and wanting to use their current equivalent.

Can you help me or point me in the right direction?

@gl00ten
Copy link
Author

gl00ten commented Oct 31, 2014

So, I found similar names in /etc/puppetlabs/puppet/modules/nginx/data/common.yaml:nginx::config:

Made a hieradata dir and put it into a new line in hiera yaml

:datadir: /etc/puppetlabs/puppet/hieradata

Then I made a global.yaml inside that and defined those variables.

$ cat /etc/puppetlabs/puppet/hieradata/global.yaml 
nginx::config::worker_rlimit_nofile: 30000
nginx::config::worker_connections: 10240
nginx::config::worker_processes: 4

Seems to be working, not sure this is the proper way.

@jfryman
Copy link
Contributor

jfryman commented Nov 22, 2014

I apologize for this inconvenience. I ripped out puppet-module-data in the most recent release. Should be able to remove all this mess if you don't need it anymore. Take a look at the updated README and let me know if you have any questions.

@jfryman jfryman closed this as completed Nov 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants