module-puppetdb/manifests/master/storeconfigs.pp
Chris Price a72cc7c9f0 Add missing inherit for puppetdb::params
Prior to this commit if you tried to use the classes
`puppetdb::master::routes` or `puppetdb::master::storeconfigs`
directly (rather than implicitly through
`puppetdb::master::config`), you would get a failure about
`puppetdb::params` not having been evaluated.  This is because
the classes were missing an `inherits` statement; this commit
fixes both of them.
2012-10-26 11:42:40 -07:00

40 lines
917 B
Puppet

# Class: puppetdb::master::storeconfigs
#
# This class configures the puppet master to enable storeconfigs and to
# use puppetdb as the storeconfigs backend.
#
# Parameters:
# ['puppet_conf'] - The puppet config file (defaults to /etc/puppet/puppet.conf)
#
# Actions:
# - Configures the puppet master to use puppetdb for stored configs
#
# Requires:
# - Inifile
#
# Sample Usage:
# class { 'puppetdb::master::storeconfigs':
# puppet_conf => '/etc/puppet/puppet.conf'
# }
#
#
class puppetdb::master::storeconfigs(
$puppet_conf = $puppetdb::params::puppet_conf
) inherits puppetdb::params {
Ini_setting{
section => 'master',
path => $puppet_conf,
ensure => present,
}
ini_setting {'puppetmasterstoreconfig':
setting => 'storeconfigs',
value => true,
}
ini_setting {'puppetmasterstorebackend':
setting => 'storeconfigs_backend',
value => 'puppetdb',
}
}