829626f6cb
This commit changes the terminus configuration to use the new root prefix for PuppetDB and changes the connection validator to do the same. This commit also adds the terminus package name changes `terminus` to `termini` and tries to be smart about the default, checking to see what version of PuppetDB was passed in and defaulting off of that value.
28 lines
738 B
Puppet
28 lines
738 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_urls':
|
|
setting => 'server_urls',
|
|
value => "https://#{server}:#{port}/",
|
|
}
|
|
|
|
ini_setting { 'soft_write_failure':
|
|
setting => 'soft_write_failure',
|
|
value => $soft_write_failure,
|
|
}
|
|
}
|