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,14 +35,28 @@ class nginx::service(
$service_ensure_real = $service_ensure
}
service { 'nginx':
ensure => $service_ensure_real,
name => $service_name,
enable => $service_enable,
flags => $service_flags,
hasstatus => true,
hasrestart => true,
case $::osfamilly {
'OpenBSD': {
service { 'nginx':
ensure => $service_ensure_real,
name => $service_name,
enable => $service_enable,
flags => $service_flags,
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,