2012-09-18 00:26:32 +02:00
|
|
|
# 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
|
|
|
#
|
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,
|
|
|
|
}
|
|
|
|
|
|
|
|
ini_setting {'puppetmasterstoreconfig':
|
|
|
|
setting => 'storeconfigs',
|
|
|
|
value => true,
|
|
|
|
}
|
|
|
|
|
|
|
|
ini_setting {'puppetmasterstorebackend':
|
|
|
|
setting => 'storeconfigs_backend',
|
|
|
|
value => 'puppetdb',
|
|
|
|
}
|
|
|
|
}
|