Fixed puppet::client for OpenBSD 4.9.
This commit is contained in:
parent
63de2539b7
commit
76121fef9a
2 changed files with 24 additions and 0 deletions
12
puppet/files/puppetd.rc
Normal file
12
puppet/files/puppetd.rc
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# OpenBSD init script for puppetd.
|
||||
|
||||
daemon="/usr/local/sbin/puppetd"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
pexp=".*ruby.* ${daemon}${daemon_flags:+ ${daemon_flags}}"
|
||||
rc_reload=NO
|
||||
|
||||
rc_cmd $1
|
|
@ -31,6 +31,18 @@ class puppet::client {
|
|||
before => Service["puppet"],
|
||||
}
|
||||
}
|
||||
openbsd: {
|
||||
if $operatingsystemrelease == "4.9" {
|
||||
file { "/etc/rc.d/puppetd":
|
||||
ensure => present,
|
||||
source => "puppet:///modules/puppet/puppetd.rc",
|
||||
mode => 0755,
|
||||
owner => "root",
|
||||
group => "wheel",
|
||||
before => Service["puppet"],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
file { "/etc/puppet/puppet.conf":
|
||||
|
|
Loading…
Add table
Reference in a new issue