Merge pull request #569 from Zophar78/master

Flags parameter supported only on OpenBSD
This commit is contained in:
James Fryman 2015-03-26 07:05:38 -05:00
commit ef98b6324f

View file

@ -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,