From 437433ff44cd77915a4a7b1d61d7aa624c44b41a Mon Sep 17 00:00:00 2001 From: Nick Walker Date: Mon, 3 Aug 2015 14:44:35 -0700 Subject: Remove hiera.yaml and instead manage it with puppet code Added hunner/hiera to the Puppetfile and a manifest to use it instead of placing a hiera.yaml in the repo. --- site/profile/manifests/puppetmaster.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 site/profile/manifests/puppetmaster.pp (limited to 'site') diff --git a/site/profile/manifests/puppetmaster.pp b/site/profile/manifests/puppetmaster.pp new file mode 100644 index 0000000..8242110 --- /dev/null +++ b/site/profile/manifests/puppetmaster.pp @@ -0,0 +1,14 @@ +class profile::puppetmaster { + + class { 'hiera': + hierarchy => [ + "nodes/%{::trusted.certname}", + :common", + ], + hiera_yaml => '/etc/puppetlabs/code/hiera.yaml', + datadir => "/etc/puppetlabs/code/environments/%{environment}/hieradata", + owner => 'root', + group => 'root', + } + +} -- cgit v1.2.3