]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
start adding hiera structure
authorStephen Gran <steve@lobefin.net>
Mon, 16 Apr 2012 07:32:23 +0000 (08:32 +0100)
committerStephen Gran <steve@lobefin.net>
Mon, 16 Apr 2012 07:32:23 +0000 (08:32 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
hieradata/common.yaml [new file with mode: 0644]
modules/puppetmaster/files/hieradata.yaml [new file with mode: 0644]
modules/puppetmaster/manifests/init.pp

diff --git a/hieradata/common.yaml b/hieradata/common.yaml
new file mode 100644 (file)
index 0000000..8098055
--- /dev/null
@@ -0,0 +1,3 @@
+---
+nameservers:
+  - 8.8.8.8
diff --git a/modules/puppetmaster/files/hieradata.yaml b/modules/puppetmaster/files/hieradata.yaml
new file mode 100644 (file)
index 0000000..98411f6
--- /dev/null
@@ -0,0 +1,8 @@
+---
+:hierarchy:
+  - %{hoster}
+  - common
+:backends:
+  - yaml
+:yaml:
+  :datadir: '/etc/puppet/hieradata'
index c48ef59914018907f11ba54c0f052490a63fe27c..ca91a0bb2ee995ec680096314ee1e77c7d0754ea 100644 (file)
@@ -1,2 +1,5 @@
 class puppetmaster {
+       file { '/etc/puppet/hiera.yaml':
+               source => 'puppet:///modules/puppetmaster/hiera.yaml'
+       }
 }