Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9340888
routes.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
routes.pp
View Options
# Class: puppetdb::master::routes
#
# This class configures the puppet master to use puppetdb as the facts terminus.
#
# WARNING: the current implementation simply overwrites your routes.yaml file;
# if you have an existing routes.yaml file that you are using for other purposes,
# you should *not* use this.
#
# Parameters:
# ['puppet_confdir'] - The puppet config directory (defaults to /etc/puppet)
#
# Actions:
# - Configures the puppet master to use puppetdb as a facts terminus by
# overwriting routes.yaml
#
# Sample Usage:
# class { 'puppetdb::master::routes':
# puppet_confdir => '/etc/puppet'
# }
#
#
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'
,
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 4, 11:17 AM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3268223
Attached To
rSPPDB PuppetDB configuration
Event Timeline
Log In to Comment