module-puppetdb/manifests/master/storeconfigs.pp

41 lines
917 B
ObjectPascal
Raw Normal View History

# 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'
# }
#
2012-09-20 23:46:26 +02:00
#
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',
}
}