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