summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-12-17 19:58:59 +0100
committermh <mh@immerda.ch>2014-12-17 19:59:32 +0100
commit8584340c2aeac7d97a78b8303ab377b5049b80c2 (patch)
tree51aad39edd2ae399a3ce9188a98483614858e57a /manifests
parentfe3115c8bee9bd1124fc615d91c17f2762c2a714 (diff)
add hiera management file
Diffstat (limited to 'manifests')
-rw-r--r--manifests/master/hiera.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/master/hiera.pp b/manifests/master/hiera.pp
new file mode 100644
index 0000000..1fe5f24
--- /dev/null
+++ b/manifests/master/hiera.pp
@@ -0,0 +1,12 @@
+# manage hiera file
+class puppet::master::hiera {
+ if versioncmp($::puppetversion,'3.0') < 0 {
+ require rubygems::hiera_puppet
+ }
+ file{"${settings::confdir}/hiera.yaml":
+ source => 'puppet:///modules/site_puppet/master/hiera.yaml',
+ owner => root,
+ group => puppet,
+ mode => '0640';
+ }
+}