Flags parameter is only supported on OpenBSD and breaks on some other systems like RH (on puppet 3.4.x)
This commit is contained in:
parent
a19cb94f23
commit
54dc2ba6fd
1 changed files with 21 additions and 7 deletions
|
@ -35,14 +35,28 @@ class nginx::service(
|
|||
$service_ensure_real = $service_ensure
|
||||
}
|
||||
|
||||
case $::osfamilly {
|
||||
'OpenBSD': {
|
||||
service { 'nginx':
|
||||
ensure => $service_ensure_real,
|
||||
name => $service_name,
|
||||
enable => $service_enable,
|
||||
flags => $service_flags,
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue