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>
16 lines
668 B
Puppet
16 lines
668 B
Puppet
# Manages the routes configuration file on the master. See README.md for more
|
|
# details.
|
|
class puppetdb::master::routes(
|
|
$puppet_confdir = $puppetdb::params::puppet_confdir,
|
|
) inherits puppetdb::params {
|
|
|
|
# TODO: this will overwrite any existing routes.yaml;
|
|
# to handle this properly we should just be ensuring
|
|
# that the proper settings exist, but to do that we'd need
|
|
# to parse the yaml file and rewrite it, dealing with indentation issues etc.
|
|
# I don't think there is currently a puppet module or an augeas lens for this.
|
|
file { "${puppet_confdir}/routes.yaml":
|
|
ensure => file,
|
|
source => 'puppet:///modules/puppetdb/routes.yaml',
|
|
}
|
|
}
|