Forced to stop puppetmaster after installing puppetmaster package on debian and ubuntu.

This commit is contained in:
Timo Mkinen 2010-10-25 15:19:14 +03:00
parent 78264923da
commit a22918f42e

View file

@ -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 {