remove templatdir
This commit is contained in:
@@ -10,6 +10,8 @@ class puppet::agent (
|
||||
$splay = true,
|
||||
$cron = true,
|
||||
$environment = gsub($::domain, '.(maketank.net|bitwig.com|lan)$', '')) {
|
||||
include puppet::common
|
||||
|
||||
case $::kernel {
|
||||
'Linux' : {
|
||||
$puppetpkgs = ['puppet', 'puppet-common']
|
||||
|
||||
9
manifests/common.pp
Normal file
9
manifests/common.pp
Normal file
@@ -0,0 +1,9 @@
|
||||
class puppet::common {
|
||||
ini_setting { 'puppet-templatedir':
|
||||
path => '/etc/puppet/puppet.conf',
|
||||
section => 'main',
|
||||
setting => 'templatedir',
|
||||
value => '$confidr/templates',
|
||||
ensure => 'absent';
|
||||
}
|
||||
}
|
||||
@@ -34,14 +34,6 @@ class puppet (
|
||||
ensure => $facter_version,
|
||||
}
|
||||
|
||||
ini_setting { 'puppet-templatedir':
|
||||
path => '/etc/puppet/puppet.conf',
|
||||
section => 'main',
|
||||
setting => 'templatedir',
|
||||
value => '$confidr/templates',
|
||||
ensure => 'absent';
|
||||
}
|
||||
|
||||
if $agent {
|
||||
class { 'puppet::agent':
|
||||
ensure => $ensure,
|
||||
|
||||
@@ -6,14 +6,16 @@ class puppet::server (
|
||||
$reports = undef,
|
||||
$basemodulepath = undef,
|
||||
$passenger = true) {
|
||||
include puppet::common
|
||||
|
||||
if $passenger == true {
|
||||
$pkg = 'puppetmaster-passenger'
|
||||
} else {
|
||||
$pkg = 'puppetmaster'
|
||||
}
|
||||
package { ['puppetmaster-common', $pkg]:
|
||||
#ensure => $ensure,
|
||||
}
|
||||
|
||||
package { ['puppetmaster-common', $pkg]: # ensure => $ensure,
|
||||
}
|
||||
|
||||
# ## remove disk reports from time to time
|
||||
tidy { "${::puppet_vardir}/reports":
|
||||
|
||||
Reference in New Issue
Block a user