Make puppet not fail when puppetdb is dead

By default puppet will fail to run if the puppetdb is not available.
This introduces some chicken and egg problems associated with getting
things working again if you expect puppet to do that for you. Mark
puppetdb write failures as soft failures instead allowing puppet to run
even when puppetdb is not up.

See
http://docs.puppetlabs.com/puppetdb/1.6/connect_puppet_master.html#edit-puppetdbconf
for more info. Note you cannot use storeconfigs with this option set so
store_configs options are removed from the puppet master config.

Change-Id: I8c2023eac11fecaa3815741450f176ad16ede729
This commit is contained in:
Clark Boylan 2014-04-25 13:51:35 -07:00
parent 04c2aa9043
commit fa38169bdd
2 changed files with 1 additions and 2 deletions

View File

@ -104,6 +104,7 @@ class openstack_project::puppetmaster (
class { 'puppetdb::master::config':
puppetdb_server => 'puppetdb.openstack.org',
puppet_service_name => 'apache2',
soft_write_failure => true,
}
}

View File

@ -18,8 +18,6 @@ manifestdir=/opt/config/$environment/manifests
modulepath=/opt/config/$environment/modules:/etc/puppet/modules
manifest=$manifestdir/site.pp
reports=store,puppetdb
storeconfigs = true
storeconfigs_backend = puppetdb
[agent]
report=true