f6f6e55b33
This provides a number of cleanups as the code has been unloved for a while. I've added the ssl-* parameters the robinbowes added in his last patch to the docs, and found some other cleanups as well where applicable. I've added the ability to override the test_url also, so that in the future if a user wishes to they can customize this. Signed-off-by: Ken Barber <ken@bob.sh>
33 lines
789 B
Puppet
33 lines
789 B
Puppet
# Manage 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 = $puppetdb::disable_ssl ? {
|
|
true => true,
|
|
default => false,
|
|
},
|
|
$puppet_confdir = $puppetdb::params::puppet_confdir,
|
|
) inherits puppetdb::params {
|
|
|
|
Ini_setting {
|
|
ensure => present,
|
|
section => 'main',
|
|
path => "${puppet_confdir}/puppetdb.conf",
|
|
}
|
|
|
|
ini_setting { 'puppetdbserver':
|
|
setting => 'server',
|
|
value => $server,
|
|
}
|
|
|
|
ini_setting { 'puppetdbport':
|
|
setting => 'port',
|
|
value => $port,
|
|
}
|
|
|
|
ini_setting { 'soft_write_failure':
|
|
setting => 'soft_write_failure',
|
|
value => $soft_write_failure,
|
|
}
|
|
}
|