05cf44b937
The puppet agent will refuse to run if it can’t make a secure connection to the puppetdb server. This setting disables that in case SSL is disabled.
30 lines
780 B
Puppet
30 lines
780 B
Puppet
# 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 = $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,
|
|
}
|
|
}
|