diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/puppet/manifests/hiera.pp | 10 | ||||
-rw-r--r-- | modules/puppet/templates/hiera.yaml | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/modules/puppet/manifests/hiera.pp b/modules/puppet/manifests/hiera.pp index 16441dd5..10a0299d 100644 --- a/modules/puppet/manifests/hiera.pp +++ b/modules/puppet/manifests/hiera.pp @@ -6,4 +6,14 @@ class puppet::hiera { ensure => '/usr/lib/ruby/gems/1.8/gems/hiera-puppet-0.3.0/', require => Package['ruby-hiera-puppet'], } + + # ease the use fo the command line tool + # who use a different location for the config file + file { '/etc/hiera.yaml': + ensure => '/etc/puppet/hiera.yaml', + } + + file { '/etc/puppet/hiera.yaml': + content => template('puppet/hiera.yaml'), + } } diff --git a/modules/puppet/templates/hiera.yaml b/modules/puppet/templates/hiera.yaml new file mode 100644 index 00000000..84e75607 --- /dev/null +++ b/modules/puppet/templates/hiera.yaml @@ -0,0 +1,10 @@ +--- +:backends: - yaml + +:logger: console + +:hierarchy: - %{env} + - common +:yaml: + :datadir: /etc/puppet/hieradata + |