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