summaryrefslogtreecommitdiff
path: root/manifests/puppetserver.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-15 09:52:18 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-15 09:52:18 +0100
commitc48ad65f3f1a576e7e919629e0946cb6df72180d (patch)
treef5723b9eb1dce2a68c6cc98118fd6992b253d4fa /manifests/puppetserver.pp
parentSet storeconfigs_backend extra explicitly. (diff)
downloadprofiles-c48ad65f3f1a576e7e919629e0946cb6df72180d.tar.gz
profiles-c48ad65f3f1a576e7e919629e0946cb6df72180d.tar.xz
Move storeconfigs_backend configuration.
Diffstat (limited to 'manifests/puppetserver.pp')
-rw-r--r--manifests/puppetserver.pp10
1 files changed, 8 insertions, 2 deletions
diff --git a/manifests/puppetserver.pp b/manifests/puppetserver.pp
index 205c3f4..6baed36 100644
--- a/manifests/puppetserver.pp
+++ b/manifests/puppetserver.pp
@@ -44,8 +44,14 @@ class profiles::puppetserver (
],
}
- puppet::config::master { 'storeconfigs_backend':
- value => 'puppetdb',
+ # This is the default value, and shouldn't have to be set (which is
+ # why theforeman-puppet module doesnt), but puppetlabs-puppetdb
+ # does, which forecus us into an infinite restart loop since
+ # the main config is constantly changed
+ if ! defined(Puppet::Config::Master['storeconfigs_backend']) {
+ puppet::config::master { 'storeconfigs_backend':
+ value => 'puppetdb',
+ }
}
class { 'puppetdb::master::config':