module-puppetdb/manifests/master/routes.pp

17 lines
668 B
ObjectPascal
Raw Normal View History

# 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 {
2012-09-20 23:46:26 +02:00
# 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":
2012-09-20 23:46:26 +02:00
ensure => file,
source => 'puppet:///modules/puppetdb/routes.yaml',
}
}