My current site.pp sets a few global level variables and then all I need is :
node default {
hiera_include('classes')
}
I am not sure what kind of response you are looking for.
“Sometimes I think the surest sign that intelligent life exists elsewhere in the
universe is that none of it has tried to contact us.” (Bill Waterson: Calvin &
Hobbes)
On Mar 19, 2015, at 08:35 AM, Alfredo De Luca <alfredo.del...@gmail.com> wrote:
Hi all.
Anyone on this question?
On Thu, Mar 19, 2015 at 10:07 AM, Alfredo De Luca
<alfredo.del...@gmail.com> wrote:
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
--
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/CAAWpFTFRCjdGWPiap_%3D8ZoxyPvuc50a-aLLKSpjjQTF-1jxD9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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/312a0cf5-d9c3-4f0f-84a7-a15de8c9f065%40me.com.
For more options, visit https://groups.google.com/d/optout.