Hi all.
I am testing hiera in our enviroment and I wonder if I can manage
everything from hiera without using the main site.pp.

Do you think is the right way? or I should use site.pp as well?


Here is what I am testing and so far so good.

--------- hiera.yaml
---
:backends:
 - yaml

:hierarchy:
 - "environments/%{::environment}"
 - "nodes/%{::fqdn}"
 - common

:yaml:
 :datadir: /etc/puppet/hieradata/


--------- hiera.yaml

--------- common.yaml
---
classes:
 - ntp
 - resolver
 - yum
 - motd

ntp::restrict:
ntp::autoupdate: false
ntp::service_enable: true
ntp::service_ensure: running
ntp::servers:
 - 10.4.123.3
 - 10.4.123.4
 - 10.5.123.3
 - 10.5.123.4

resolver::search:
 - xxx.xxx.com
 resolver::dns_servers:
 - 10.4.17.18
 - 10.4.17.20
 - 10.5.17.18
 - 10.5.17.20

yum::source_repo_dir: 'puppet:///REPO_FILES/'
yum::clean_repos: true

motd::content: '##### TEST #####'
--------- common.yaml



-- 
Alfredo

-- 
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/CAAWpFTG%2BvfgGPK5VxQevcr9V_NUOG90kRvk-RZUmoAHJQmp%2BRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to