puppet: Fixed puppet::server::webrick for OpenBSD.
This commit is contained in:
parent
60766d5043
commit
e14fc2e327
1 changed files with 10 additions and 2 deletions
|
@ -483,6 +483,10 @@ class puppet::server::webrick {
|
|||
}
|
||||
|
||||
service { "puppetmaster":
|
||||
name => $::operatingsystem ? {
|
||||
"openbsd" => "puppetmasterd",
|
||||
default => "puppetmaster",
|
||||
},
|
||||
ensure => running,
|
||||
enable => true,
|
||||
hasstatus => true,
|
||||
|
@ -492,7 +496,7 @@ class puppet::server::webrick {
|
|||
}
|
||||
|
||||
case $::operatingsystem {
|
||||
debian,ubuntu: {
|
||||
"debian","ubuntu": {
|
||||
file { "/etc/default/puppetmaster":
|
||||
ensure => present,
|
||||
content => template("puppet/puppetmaster.default.erb"),
|
||||
|
@ -502,7 +506,7 @@ class puppet::server::webrick {
|
|||
notify => Service["puppetmaster"],
|
||||
}
|
||||
}
|
||||
default: {
|
||||
"centos","fedora","redhat": {
|
||||
file { "/etc/sysconfig/puppetmaster":
|
||||
ensure => present,
|
||||
content => template("puppet/puppetmaster.sysconfig.erb"),
|
||||
|
@ -512,6 +516,10 @@ class puppet::server::webrick {
|
|||
notify => Service["puppetmaster"],
|
||||
}
|
||||
}
|
||||
"openbsd": { }
|
||||
default: {
|
||||
fail("puppet::server::webrick not supported on ${::operatingsystem}")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue