summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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';
+ }
+}