2013-10-21 17:21:12 +02:00
|
|
|
# Managed the puppetdb.conf file on the puppeet master. See README.md for more
|
|
|
|
# details.
|
2013-10-17 17:49:47 +02:00
|
|
|
class puppetdb::master::puppetdb_conf (
|
|
|
|
$server = 'localhost',
|
|
|
|
$port = '8081',
|
|
|
|
$soft_write_failure = false,
|
2013-10-21 17:21:12 +02:00
|
|
|
$puppet_confdir = $puppetdb::params::puppet_confdir,
|
2012-10-26 19:20:03 +02:00
|
|
|
) inherits puppetdb::params {
|
2012-09-18 00:26:32 +02:00
|
|
|
|
2012-09-20 23:46:26 +02:00
|
|
|
Ini_setting {
|
|
|
|
ensure => present,
|
|
|
|
section => 'main',
|
|
|
|
path => "${puppet_confdir}/puppetdb.conf",
|
|
|
|
}
|
2012-09-18 00:26:32 +02:00
|
|
|
|
2013-10-17 17:49:47 +02:00
|
|
|
ini_setting { 'puppetdbserver':
|
2012-09-20 23:46:26 +02:00
|
|
|
setting => 'server',
|
|
|
|
value => $server,
|
|
|
|
}
|
2012-09-18 00:26:32 +02:00
|
|
|
|
2013-10-17 17:49:47 +02:00
|
|
|
ini_setting { 'puppetdbport':
|
2012-09-20 23:46:26 +02:00
|
|
|
setting => 'port',
|
|
|
|
value => $port,
|
|
|
|
}
|
2013-10-17 17:49:47 +02:00
|
|
|
|
|
|
|
ini_setting { 'soft_write_failure':
|
|
|
|
setting => 'soft_write_failure',
|
|
|
|
value => $soft_write_failure,
|
|
|
|
}
|
2012-09-18 00:26:32 +02:00
|
|
|
}
|