Merge pull request #569 from Zophar78/master
Flags parameter supported only on OpenBSD
This commit is contained in:
commit
ef98b6324f
1 changed files with 21 additions and 7 deletions
|
@ -35,6 +35,8 @@ class nginx::service(
|
|||
$service_ensure_real = $service_ensure
|
||||
}
|
||||
|
||||
case $::osfamilly {
|
||||
'OpenBSD': {
|
||||
service { 'nginx':
|
||||
ensure => $service_ensure_real,
|
||||
name => $service_name,
|
||||
|
@ -43,6 +45,18 @@ class nginx::service(
|
|||
hasstatus => true,
|
||||
hasrestart => true,
|
||||
}
|
||||
}
|
||||
default: {
|
||||
service { 'nginx':
|
||||
ensure => $service_ensure_real,
|
||||
name => $service_name,
|
||||
enable => $service_enable,
|
||||
hasstatus => true,
|
||||
hasrestart => true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if $configtest_enable == true {
|
||||
Service['nginx'] {
|
||||
restart => $service_restart,
|
||||
|
|
Loading…
Reference in a new issue