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 {
|
case $::operatingsystem {
|
||||||
openbsd: {
|
"openbsd": {
|
||||||
service { "puppet":
|
service { "puppet":
|
||||||
name => $::operatingsystemrelease ? {
|
name => $::operatingsystemrelease ? {
|
||||||
/4\.[1-8]/ => "puppet",
|
/4\.[1-8]/ => "puppet",
|
||||||
|
@ -76,14 +76,26 @@ class puppet::client {
|
||||||
},
|
},
|
||||||
ensure => running,
|
ensure => running,
|
||||||
enable => true,
|
enable => true,
|
||||||
start => "/usr/local/sbin/puppetd",
|
start => $::operatingsystemrelease ? {
|
||||||
stop => "pkill -f /usr/local/sbin/puppetd",
|
/^4\./ => "/usr/local/sbin/puppetd",
|
||||||
status => "pgrep -f /usr/local/sbin/puppetd",
|
default => undef,
|
||||||
restart => "pkill -HUP -f /usr/local/sbin/puppetd",
|
},
|
||||||
|
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"],
|
subscribe => File["/etc/puppet/puppet.conf"],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
debian,ubuntu: {
|
"debian","ubuntu": {
|
||||||
service { "puppet":
|
service { "puppet":
|
||||||
ensure => running,
|
ensure => running,
|
||||||
enable => true,
|
enable => true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue