41 lines
966 B
Puppet
41 lines
966 B
Puppet
class puppet::puppetmaster (
|
|
$ensure = 'present',
|
|
$dns_alt_names = undef,
|
|
$storeconfigs = false,
|
|
$storeconfigs_backend = undef,
|
|
$reports = undef,
|
|
$modulepath = undef) {
|
|
require 'puppet::facter'
|
|
|
|
if !defined(Class['puppet::puppetlabs_apt']) {
|
|
class { 'puppet::puppetlabs_apt': }
|
|
require 'puppet::puppetlabs_apt'
|
|
}
|
|
|
|
if defined(Class['ganglia::monitor']) {
|
|
Ganglia::Gmetric::Cron {
|
|
source => 'puppet/ganglia',
|
|
ensure => $ensure,
|
|
}
|
|
|
|
ganglia::gmetric::cron {
|
|
'puppetmaster.rb':
|
|
runwhen => '5';
|
|
|
|
'puppetmaster_compiletime.rb':
|
|
runwhen => '60',
|
|
}
|
|
}
|
|
|
|
# ## remove disk reports from time to time
|
|
tidy { "${::puppet_vardir}/reports":
|
|
age => '1m',
|
|
recurse => true,
|
|
backup => false,
|
|
}
|
|
|
|
# create [private] directories
|
|
# file { $puppet_privdir: ensure => directory }
|
|
# Puppet::Puppetmaster::Privatedir <<| |>>
|
|
}
|