diff --git a/manifests/instance/config.pp b/manifests/instance/config.pp index e6697f2..e0b99e9 100644 --- a/manifests/instance/config.pp +++ b/manifests/instance/config.pp @@ -328,11 +328,16 @@ seltype => $seltype, } - if $::operatingsystem == 'Debian' and $::tomcat::params::systemd { - include ::systemd - File["/etc/init.d/tomcat-${name}"] - ~> Exec['systemctl-daemon-reload'] - ~> Tomcat::Instance::Service[$title] + if $::operatingsystem == 'Debian' { + if $::tomcat::params::systemd { + include ::systemd + File["/etc/init.d/tomcat-${name}"] + ~> Exec['systemctl-daemon-reload'] + ~> Tomcat::Instance::Service[$title] + } else { + File["/etc/init.d/tomcat-${name}"] + ~> Tomcat::Instance::Service[$title] + } } } }