Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

sample hiera.yml

To Include hiera puppet.conf should have this single line:
hiera_config = /etc/puppet/hiera.yaml

#hiera.yml
---
:backends:
- yaml
- json
:yaml:
:datadir: /etc/puppet/hieradata
:json:
:datadir: /etc/puppet/hieradata
:hierarchy:
- "%{::clientcert}"
- "node/%{::fqdn}"
- "%{::environment}"
- common
:logger: console

In our setup above, we will have /etc/puppet/hieradata as yaml or json format.

priority of hierarchy is top bottom, so we format folders accordingly, i.e, environment can be group specific, like production, DR or development etc, node/nodename and common for most generic.

#common.yaml

---
install_packages::packages:
- strace
- ngrep
- libaio
- mlocate
- rsync
- lrzsz
- wget
- telnet
- crontabs

uninstall_packages::packages:
- cups

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

rollout:
- authorized_keys
- zabbix
- install_packages
- rpm_packages
- uninstall_packages
- motd
- yum-repo-zabbix

zabbix::params::zabbix_agent_pidfile: /var/run/zabbix/zabbix_agentd.pid
zabbix::params::zabbix_agent_logfile: /var/log/zabbix/zabbix_agentd.log

authorized_keys::key1: ssh-rsa AAAAB3NzaC1yc2EAAAADAQxx....
authorized_keys::key2: ssh-rsa AAAAB3NzaC1yc2xxxxx.....

motd::content: something here

# Individual node can be something like:

nodename.com.yaml
---
rollout:
- zabbix
- authorized_keys
zabbix::params::zabbix_agent_hostname: something.net
zabbix::params::zabbix_server_ip: ipgoeshere
uninstall_packages::packages:
- mysql-libs
- jwhois

motd::content: |
BI Server
Key Software: Mysql

rpm_packages::packages:
- MySQL-client
- epel-release-6-8.noarch
- MySQL-server

rpm_packages::src:
- https://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.10-1.el6.x86_64.rpm
- https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
- https://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-server-5.6.10-1.el6.x86_64.rpm