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

Full hiera support #31

Open
ubellavance opened this issue Apr 26, 2017 · 0 comments
Open

Full hiera support #31

ubellavance opened this issue Apr 26, 2017 · 0 comments

Comments

@ubellavance
Copy link
Contributor

It is quite easy to set parameters in hiera instead of manifests. Example (taken from [here]):(https://github.com/davidl-zend/zendserverpuppet-vagrant/blob/feature/bootstrap/data/common.yaml)

zendserver::accept_eula: true
zendserver::admin_password: '1234'
zendserver::admin_api_key_name: 'admin'
zendserver::license_name: 'tet'
zendserver::join_cluster: true
zendserver::db_username: 'root'
zendserver::db_password: 'vagrantpassword'
zendserver::db_schema: 'puppetcluster'
zendserver::db_host: '127.0.0.1'
zendserver::license_name: 'puppettest'
zendserver::license_key: '7FQM7340801G21CFCA58E8799C81F1DD'
mysql::server::root_password: 'vagrantpassword'

However, I don't think hiera support goes beyond these settings. It would be nice if everything could be set in hiera. For example:

zendserver::application:
  'patate1':
    ensured: "defined"
    base_url: "patate1.com"
  'patate2':
    ensured: "defined"
    base_url: "patate2.com"

(I think I have the right format but I'm not sure)

According to the --debug output, many classes (zendserver, zendserver::params, zendserver::requirements, etc.) are imported automatically. How to make the others imported as well (zendserver::application, for example)?

It looks like the classes that are imported are declared as classes while those who are not are declared with defines. I don't know puppet enough to tell the difference between these 2 kinds of declarations.

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

1 participant