aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-02-18 18:59:54 +0000
committerMichael Scherer <misc@mageia.org>2012-02-18 18:59:54 +0000
commit9bfb26a52a48d0e10c3381324144a3e4bb9e53f2 (patch)
treeafd8c5cf061b179ad4e3da169ff3102bba10e8b4 /modules
parent7cd4691a4455f5f452592a096f84e4967394eedb (diff)
downloadpuppet-9bfb26a52a48d0e10c3381324144a3e4bb9e53f2.tar
puppet-9bfb26a52a48d0e10c3381324144a3e4bb9e53f2.tar.gz
puppet-9bfb26a52a48d0e10c3381324144a3e4bb9e53f2.tar.bz2
puppet-9bfb26a52a48d0e10c3381324144a3e4bb9e53f2.tar.xz
puppet-9bfb26a52a48d0e10c3381324144a3e4bb9e53f2.zip
deploy hiera configuration file
Diffstat (limited to 'modules')
-rw-r--r--modules/puppet/manifests/hiera.pp10
-rw-r--r--modules/puppet/templates/hiera.yaml10
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
+