1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
# @summary PuppetDB integration
#
# This class relies on the puppetlabs/puppetdb and essentially wraps
# puppetdb::master::config with the proper resource chaining.
#
# Note that this doesn't manage the server itself.
#
# @example
# class { 'puppet':
# server => true,
# server_reports => 'puppetdb,foreman',
# server_storeconfigs => true,
# }
# class { 'puppet::server::puppetdb':
# server => 'mypuppetdb.example.com',
# }
#
# @param server
# The PuppetDB server
#
# @param port
# The PuppetDB port
#
# @param soft_write_failure
# Whether to enable soft write failure
class puppet::server::puppetdb (
Stdlib::Host $server = undef,
Stdlib::Port $port = 8081,
Boolean $soft_write_failure = false,
) {
class { 'puppetdb::master::config':
puppetdb_server => $server,
puppetdb_port => $port,
puppetdb_soft_write_failure => $soft_write_failure,
manage_storeconfigs => false,
restart_puppet => false,
}
Class['puppetdb::master::puppetdb_conf'] ~> Class['puppet::server::service']
}
|