module-puppetdb/manifests/master/puppetdb_conf.pp

31 lines
725 B
ObjectPascal
Raw Normal View History

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