# PRIVATE CLASS - do not use directly class puppetdb::server::global ( $vardir = $puppetdb::params::vardir, $confdir = $puppetdb::params::confdir, $puppetdb_user = $puppetdb::params::puppetdb_user, $puppetdb_group = $puppetdb::params::puppetdb_group, ) inherits puppetdb::params { file { "${confdir}/config.ini": ensure => file, owner => $puppetdb_user, group => $puppetdb_group, mode => '0600', } # 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, } } }