2990f80ef1
This updates the module to manage vardir, and also makes room for general management of the global ini section.
20 lines
438 B
Puppet
20 lines
438 B
Puppet
# PRIVATE CLASS - do not use directly
|
|
class puppetdb::server::global (
|
|
$vardir = $puppetdb::params::vardir,
|
|
) inherits puppetdb::params {
|
|
|
|
# Set the defaults
|
|
Ini_setting {
|
|
path => "${confdir}/config.ini",
|
|
ensure => 'present',
|
|
section => 'global',
|
|
require => File["${confdir}/config.ini"],
|
|
}
|
|
|
|
if $vardir {
|
|
ini_setting { 'puppetdb_global_vardir':
|
|
setting => 'vardir',
|
|
value => $vardir,
|
|
}
|
|
}
|
|
}
|