Add soft_write_failure to puppetdb.conf
This supports a recently added feature to PuppetDB.
This commit is contained in:
parent
a87abd7625
commit
d440f1b3ea
1 changed files with 17 additions and 10 deletions
|
@ -1,11 +1,12 @@
|
|||
# Class: puppetdb::master::puppetdb_conf
|
||||
# == Class: puppetdb::master::puppetdb_conf
|
||||
#
|
||||
# This class manages the puppetdb.conf file for the puppet master.
|
||||
#
|
||||
# Parameters:
|
||||
# ['server'] - The dns name or ip of the puppetdb server (defaults to localhost)
|
||||
# ['port'] - The port that the puppetdb server is running on (defaults to 8081)
|
||||
# ['puppet_confdir'] - The config directory of puppet (defaults to /etc/puppet)
|
||||
# ['server'] - The dns name or ip of the puppetdb server (defaults to localhost)
|
||||
# ['port'] - The port that the puppetdb server is running on (defaults to 8081)
|
||||
# ['soft_write_failure'] - Boolean to fail in a soft-manner if PuppetDB is not accessable for command submission (defaults to false)
|
||||
# ['puppet_confdir'] - The config directory of puppet (defaults to /etc/puppet)
|
||||
#
|
||||
# Actions:
|
||||
# - Configures the required puppetdb settings for the puppet master by managing
|
||||
|
@ -16,15 +17,16 @@
|
|||
#
|
||||
# Sample Usage:
|
||||
# class { 'puppetdb::master::puppetdb_conf':
|
||||
# server => 'my.puppetdb.server'
|
||||
# server => 'my.puppetdb.server'
|
||||
# }
|
||||
#
|
||||
#
|
||||
# TODO: finish porting this to use params
|
||||
#
|
||||
class puppetdb::master::puppetdb_conf(
|
||||
$server = 'localhost',
|
||||
$port = '8081',
|
||||
class puppetdb::master::puppetdb_conf (
|
||||
$server = 'localhost',
|
||||
$port = '8081',
|
||||
$soft_write_failure = false,
|
||||
$puppet_confdir = $puppetdb::params::puppet_confdir,
|
||||
) inherits puppetdb::params {
|
||||
|
||||
|
@ -34,13 +36,18 @@ class puppetdb::master::puppetdb_conf(
|
|||
path => "${puppet_confdir}/puppetdb.conf",
|
||||
}
|
||||
|
||||
ini_setting {'puppetdbserver':
|
||||
ini_setting { 'puppetdbserver':
|
||||
setting => 'server',
|
||||
value => $server,
|
||||
}
|
||||
|
||||
ini_setting {'puppetdbport':
|
||||
ini_setting { 'puppetdbport':
|
||||
setting => 'port',
|
||||
value => $port,
|
||||
}
|
||||
|
||||
ini_setting { 'soft_write_failure':
|
||||
setting => 'soft_write_failure',
|
||||
value => $soft_write_failure,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue