Merge pull request #89 from ghoneycutt/soft_write_failure
Add soft_write_failure to puppetdb.conf
This commit is contained in:
commit
39e8f6c919
3 changed files with 44 additions and 29 deletions
|
@ -319,6 +319,10 @@ The dns name or ip of the puppetdb server (defaults to the certname of the curre
|
||||||
|
|
||||||
The port that the puppetdb server is running on (defaults to 8081).
|
The port that the puppetdb server is running on (defaults to 8081).
|
||||||
|
|
||||||
|
####`puppetdb_soft_write_failure`
|
||||||
|
|
||||||
|
Boolean to fail in a soft-manner if PuppetDB is not accessable for command submission (defaults to false).
|
||||||
|
|
||||||
####`manage_routes`
|
####`manage_routes`
|
||||||
|
|
||||||
If true, the module will overwrite the puppet master's routes file to configure it to use PuppetDB (defaults to true).
|
If true, the module will overwrite the puppet master's routes file to configure it to use PuppetDB (defaults to true).
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
# ['puppetdb_server'] - The dns name or ip of the puppetdb server
|
# ['puppetdb_server'] - The dns name or ip of the puppetdb server
|
||||||
# (defaults to the certname of the current node)
|
# (defaults to the certname of the current node)
|
||||||
# ['puppetdb_port'] - The port that the puppetdb server is running on (defaults to 8081)
|
# ['puppetdb_port'] - The port that the puppetdb server is running on (defaults to 8081)
|
||||||
|
# ['puppetdb_soft_write_failure'] - Boolean to fail in a soft-manner if PuppetDB is not
|
||||||
|
# accessable for command submission (defaults to false)
|
||||||
# ['manage_routes'] - If true, the module will overwrite the puppet master's routes
|
# ['manage_routes'] - If true, the module will overwrite the puppet master's routes
|
||||||
# file to configure it to use puppetdb (defaults to true)
|
# file to configure it to use puppetdb (defaults to true)
|
||||||
# ['manage_storeconfigs'] - If true, the module will manage the puppet master's
|
# ['manage_storeconfigs'] - If true, the module will manage the puppet master's
|
||||||
|
@ -62,6 +64,7 @@
|
||||||
class puppetdb::master::config(
|
class puppetdb::master::config(
|
||||||
$puppetdb_server = $::fqdn,
|
$puppetdb_server = $::fqdn,
|
||||||
$puppetdb_port = 8081,
|
$puppetdb_port = 8081,
|
||||||
|
$puppetdb_soft_write_failure = false,
|
||||||
$manage_routes = true,
|
$manage_routes = true,
|
||||||
$manage_storeconfigs = true,
|
$manage_storeconfigs = true,
|
||||||
$manage_report_processor = false,
|
$manage_report_processor = false,
|
||||||
|
@ -134,6 +137,7 @@ class puppetdb::master::config(
|
||||||
class { 'puppetdb::master::puppetdb_conf':
|
class { 'puppetdb::master::puppetdb_conf':
|
||||||
server => $puppetdb_server,
|
server => $puppetdb_server,
|
||||||
port => $puppetdb_port,
|
port => $puppetdb_port,
|
||||||
|
soft_write_failure => $puppetdb_soft_write_failure,
|
||||||
puppet_confdir => $puppet_confdir,
|
puppet_confdir => $puppet_confdir,
|
||||||
require => $strict_validation ? { true => Puppetdb_conn_validator['puppetdb_conn'], default => Package[$terminus_package] },
|
require => $strict_validation ? { true => Puppetdb_conn_validator['puppetdb_conn'], default => Package[$terminus_package] },
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
# Class: puppetdb::master::puppetdb_conf
|
# == Class: puppetdb::master::puppetdb_conf
|
||||||
#
|
#
|
||||||
# This class manages the puppetdb.conf file for the puppet master.
|
# This class manages the puppetdb.conf file for the puppet master.
|
||||||
#
|
#
|
||||||
# Parameters:
|
# Parameters:
|
||||||
# ['server'] - The dns name or ip of the puppetdb server (defaults to localhost)
|
# ['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)
|
# ['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)
|
# ['puppet_confdir'] - The config directory of puppet (defaults to /etc/puppet)
|
||||||
#
|
#
|
||||||
# Actions:
|
# Actions:
|
||||||
|
@ -22,9 +23,10 @@
|
||||||
#
|
#
|
||||||
# TODO: finish porting this to use params
|
# TODO: finish porting this to use params
|
||||||
#
|
#
|
||||||
class puppetdb::master::puppetdb_conf(
|
class puppetdb::master::puppetdb_conf (
|
||||||
$server = 'localhost',
|
$server = 'localhost',
|
||||||
$port = '8081',
|
$port = '8081',
|
||||||
|
$soft_write_failure = false,
|
||||||
$puppet_confdir = $puppetdb::params::puppet_confdir,
|
$puppet_confdir = $puppetdb::params::puppet_confdir,
|
||||||
) inherits puppetdb::params {
|
) inherits puppetdb::params {
|
||||||
|
|
||||||
|
@ -34,13 +36,18 @@ class puppetdb::master::puppetdb_conf(
|
||||||
path => "${puppet_confdir}/puppetdb.conf",
|
path => "${puppet_confdir}/puppetdb.conf",
|
||||||
}
|
}
|
||||||
|
|
||||||
ini_setting {'puppetdbserver':
|
ini_setting { 'puppetdbserver':
|
||||||
setting => 'server',
|
setting => 'server',
|
||||||
value => $server,
|
value => $server,
|
||||||
}
|
}
|
||||||
|
|
||||||
ini_setting {'puppetdbport':
|
ini_setting { 'puppetdbport':
|
||||||
setting => 'port',
|
setting => 'port',
|
||||||
value => $port,
|
value => $port,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ini_setting { 'soft_write_failure':
|
||||||
|
setting => 'soft_write_failure',
|
||||||
|
value => $soft_write_failure,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue