603df7381d
This updates the module to be able to use puppetlabs-postgresql. Since this change is a major change, it marks this patch as a breaking change. I have prepared a suitable amount of upgrade notes for upgrading to this later version of the module plus removed anything marked deprecated. As cleanup, I've removed the troublesome 'tests' directory in favour of good README.md documentation. I've also removed any puppet docs from each module until such times as puppet docs become automated through the forge. This is just to avoid contributors having to double their efforts - the README.md is the authority now. Signed-off-by: Ken Barber <ken@bob.sh>
47 lines
1.2 KiB
Puppet
47 lines
1.2 KiB
Puppet
# PRIVATE CLASS - do not use directly
|
|
class puppetdb::server::jetty_ini(
|
|
$listen_address = $puppetdb::params::listen_address,
|
|
$listen_port = $puppetdb::params::listen_port,
|
|
$ssl_listen_address = $puppetdb::params::ssl_listen_address,
|
|
$ssl_listen_port = $puppetdb::params::ssl_listen_port,
|
|
$disable_ssl = $puppetdb::params::disable_ssl,
|
|
$confdir = $puppetdb::params::confdir,
|
|
) inherits puppetdb::params {
|
|
|
|
#Set the defaults
|
|
Ini_setting {
|
|
path => "${confdir}/jetty.ini",
|
|
ensure => present,
|
|
section => 'jetty',
|
|
}
|
|
|
|
# TODO: figure out some way to make sure that the ini_file module is installed,
|
|
# because otherwise these will silently fail to do anything.
|
|
|
|
ini_setting {'puppetdb_host':
|
|
setting => 'host',
|
|
value => $listen_address,
|
|
}
|
|
|
|
ini_setting {'puppetdb_port':
|
|
setting => 'port',
|
|
value => $listen_port,
|
|
}
|
|
|
|
$ssl_setting_ensure = $disable_ssl ? {
|
|
true => 'absent',
|
|
default => 'present',
|
|
}
|
|
|
|
ini_setting {'puppetdb_sslhost':
|
|
ensure => $ssl_setting_ensure,
|
|
setting => 'ssl-host',
|
|
value => $ssl_listen_address,
|
|
}
|
|
|
|
ini_setting {'puppetdb_sslport':
|
|
ensure => $ssl_setting_ensure,
|
|
setting => 'ssl-port',
|
|
value => $ssl_listen_port,
|
|
}
|
|
}
|