Fixed puppet::client for OpenBSD 5.3.
This commit is contained in:
parent
ea4b48b00a
commit
93906963d9
1 changed files with 18 additions and 6 deletions
|
@ -68,7 +68,7 @@ class puppet::client {
|
|||
}
|
||||
|
||||
case $::operatingsystem {
|
||||
openbsd: {
|
||||
"openbsd": {
|
||||
service { "puppet":
|
||||
name => $::operatingsystemrelease ? {
|
||||
/4\.[1-8]/ => "puppet",
|
||||
|
@ -76,14 +76,26 @@ class puppet::client {
|
|||
},
|
||||
ensure => running,
|
||||
enable => true,
|
||||
start => "/usr/local/sbin/puppetd",
|
||||
stop => "pkill -f /usr/local/sbin/puppetd",
|
||||
status => "pgrep -f /usr/local/sbin/puppetd",
|
||||
restart => "pkill -HUP -f /usr/local/sbin/puppetd",
|
||||
start => $::operatingsystemrelease ? {
|
||||
/^4\./ => "/usr/local/sbin/puppetd",
|
||||
default => undef,
|
||||
},
|
||||
stop => $::operatingsystemrelease ? {
|
||||
/^4\./ => "pkill -f /usr/local/sbin/puppetd",
|
||||
default => undef,
|
||||
},
|
||||
status => $::puppetversion ? {
|
||||
/^[0-2]\./ => "pgrep -f /usr/local/sbin/puppetd",
|
||||
default => "pgrep -f /usr/local/bin/puppet",
|
||||
},
|
||||
restart => $::puppetversion ? {
|
||||
/^[0-2]\./ => "pkill -HUP -f /usr/local/sbin/puppetd",
|
||||
default => "pkill -HUP -f /usr/local/bin/puppet",
|
||||
},
|
||||
subscribe => File["/etc/puppet/puppet.conf"],
|
||||
}
|
||||
}
|
||||
debian,ubuntu: {
|
||||
"debian","ubuntu": {
|
||||
service { "puppet":
|
||||
ensure => running,
|
||||
enable => true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue