Fixed puppetd service for older OpenBSD versions
This commit is contained in:
parent
385cbeeb5a
commit
e43512adad
1 changed files with 8 additions and 9 deletions
|
@ -47,17 +47,16 @@ class puppet::client {
|
||||||
case $operatingsystem {
|
case $operatingsystem {
|
||||||
openbsd: {
|
openbsd: {
|
||||||
service { "puppet":
|
service { "puppet":
|
||||||
name => "puppetd",
|
name => $operatingsystemrelease ? {
|
||||||
|
/4\.[1-8]/ => "puppet",
|
||||||
|
default => "puppetd",
|
||||||
|
},
|
||||||
ensure => running,
|
ensure => running,
|
||||||
enable => true,
|
enable => true,
|
||||||
start => $operatingsystemrelease ? {
|
start => "/usr/local/sbin/puppetd",
|
||||||
/4\.[1-6]/ => "/usr/local/bin/puppetd",
|
stop => "pkill -f /usr/local/sbin/puppetd",
|
||||||
default => "/usr/local/sbin/puppetd",
|
status => "pgrep -f /usr/local/sbin/puppetd",
|
||||||
},
|
restart => "pkill -HUP -f /usr/local/sbin/puppetd",
|
||||||
restart => $operatingsystemrelease ? {
|
|
||||||
/4\.[1-6]/ => "/usr/bin/pkill -HUP -f /usr/local/bin/puppetd",
|
|
||||||
default => "/usr/bin/pkill -HUP -f /usr/local/sbin/puppetd",
|
|
||||||
},
|
|
||||||
subscribe => File["/etc/puppet/puppet.conf"],
|
subscribe => File["/etc/puppet/puppet.conf"],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue