Updated puppet module for OpenBSD 4.7.
This commit is contained in:
parent
7f5d0e07bd
commit
70c8c35ef1
1 changed files with 8 additions and 14 deletions
|
@ -16,14 +16,6 @@ class puppet::client {
|
|||
}
|
||||
}
|
||||
|
||||
package { "puppet":
|
||||
name => $operatingsystem ? {
|
||||
openbsd => "ruby-puppet",
|
||||
default => "puppet",
|
||||
},
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
file { "/etc/puppet/puppet.conf":
|
||||
ensure => present,
|
||||
content => template("puppet/puppet.conf.erb"),
|
||||
|
@ -33,7 +25,6 @@ class puppet::client {
|
|||
openbsd => wheel,
|
||||
default => root
|
||||
},
|
||||
require => Package["puppet"],
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
|
@ -41,11 +32,15 @@ class puppet::client {
|
|||
service { "puppet":
|
||||
ensure => running,
|
||||
enable => true,
|
||||
binary => "/usr/local/bin/puppetd",
|
||||
start => "/usr/local/bin/puppetd",
|
||||
restart => "/usr/bin/pkill -HUP -f /usr/local/bin/puppetd",
|
||||
start => $operatingsystemrelease ? {
|
||||
/4\.[1-6]/ => "/usr/local/bin/puppetd",
|
||||
default => "/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",
|
||||
},
|
||||
pattern => puppetd,
|
||||
require => Package["puppet"],
|
||||
subscribe => File["/etc/puppet/puppet.conf"],
|
||||
}
|
||||
}
|
||||
|
@ -54,7 +49,6 @@ class puppet::client {
|
|||
ensure => running,
|
||||
enable => true,
|
||||
restart => "/usr/bin/pkill -HUP puppetd",
|
||||
require => Package["puppet"],
|
||||
subscribe => File["/etc/puppet/puppet.conf"],
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue