Forced to stop puppetmaster after installing puppetmaster package on debian and ubuntu.
This commit is contained in:
parent
78264923da
commit
a22918f42e
1 changed files with 19 additions and 0 deletions
|
@ -20,6 +20,13 @@ class puppet::client {
|
|||
ensure => installed,
|
||||
}
|
||||
}
|
||||
ubuntu,debian: {
|
||||
package { "libaugeas-ruby":
|
||||
name => regsubst($rubyversion, '^([0-9]+\.[0-9]+)\..*', 'libaugeas-ruby\1'),
|
||||
ensure => installed,
|
||||
before => Service["puppet"],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
file { "/etc/puppet/puppet.conf":
|
||||
|
@ -154,6 +161,18 @@ class puppet::server inherits puppet::client {
|
|||
default => "puppet-server",
|
||||
},
|
||||
ensure => installed,
|
||||
notify => $operatingsystem ? {
|
||||
debian => Exec["stop-puppetmaster"],
|
||||
ubuntu => Exec["stop-puppetmaster"],
|
||||
default => undef,
|
||||
},
|
||||
}
|
||||
|
||||
exec { "stop-puppetmaster":
|
||||
command => "service puppetmaster stop ; true",
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
refreshonly => true,
|
||||
before => File["/etc/puppet/puppet.conf"],
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
|
|
Loading…
Add table
Reference in a new issue