2013-10-21 17:21:12 +02:00
|
|
|
# This class configures the puppet master to enable storeconfigs and to use
|
|
|
|
# puppetdb as the storeconfigs backend. See README.md for more details.
|
2012-09-18 00:26:32 +02:00
|
|
|
class puppetdb::master::storeconfigs(
|
2012-09-28 20:03:19 +02:00
|
|
|
$puppet_conf = $puppetdb::params::puppet_conf
|
2012-10-26 20:42:40 +02:00
|
|
|
) inherits puppetdb::params {
|
2012-09-18 00:26:32 +02:00
|
|
|
|
|
|
|
Ini_setting{
|
|
|
|
section => 'master',
|
|
|
|
path => $puppet_conf,
|
|
|
|
ensure => present,
|
|
|
|
}
|
|
|
|
|
2013-10-21 17:21:12 +02:00
|
|
|
ini_setting { 'puppet.conf/master/storeconfigs':
|
2012-09-18 00:26:32 +02:00
|
|
|
setting => 'storeconfigs',
|
|
|
|
value => true,
|
|
|
|
}
|
|
|
|
|
2013-10-21 17:21:12 +02:00
|
|
|
ini_setting { 'puppet.conf/master/storeconfigs_backend':
|
2012-09-18 00:26:32 +02:00
|
|
|
setting => 'storeconfigs_backend',
|
|
|
|
value => 'puppetdb',
|
|
|
|
}
|
|
|
|
}
|