diff --git a/manifests/service.pp b/manifests/service.pp index 4102596..2cadbb4 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -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,