summaryrefslogtreecommitdiff
path: root/manifests/puppetserver.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-05-02 22:32:10 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-05-03 12:12:12 +0200
commit57b9c1d72ed8a2cf524c4be5ff1fdb1059568b44 (patch)
tree28a1d246d95da498e2ac9a72b657750df60c9113 /manifests/puppetserver.pp
parentPuppetserver: add default hiera configuration. (diff)
downloadprofiles-57b9c1d72ed8a2cf524c4be5ff1fdb1059568b44.tar.gz
profiles-57b9c1d72ed8a2cf524c4be5ff1fdb1059568b44.tar.xz
Change default hiera to be inlined.
It's hard to bootstrap hiera using hiera...
Diffstat (limited to 'manifests/puppetserver.pp')
-rw-r--r--manifests/puppetserver.pp19
1 files changed, 18 insertions, 1 deletions
diff --git a/manifests/puppetserver.pp b/manifests/puppetserver.pp
index 34ab2c4..0dc25a1 100644
--- a/manifests/puppetserver.pp
+++ b/manifests/puppetserver.pp
@@ -1,5 +1,22 @@
class profiles::puppetserver (
- Hash $hiera,
+ Hash $hiera = {
+ 'version' => 5,
+ 'defaults' => {
+ 'datadir' => '/puppet',
+ },
+ 'hierarchy' => [
+ {
+ 'name' => 'Data',
+ 'data_hash' => 'yaml_data',
+ 'paths' => [
+ 'nodes/%{trusted.certname}.yaml',
+ 'os/name/%{facts.os.name}.yaml',
+ 'os/family/%{facts.os.family}.yaml',
+ 'common.yaml',
+ ],
+ }
+ ]
+ },
) {
if defined(Class['profiles::puppetagent']) {