# manage prowlarr service class prowlarr::service ( $service_enable = $prowlarr::service_enable, $service_name = $prowlarr::service_name, $user = $prowlarr::user, $group = $prowlarr::user, $install_path = $prowlarr::install_path, $executable = $prowlarr::executable, $base_path = $prowlarr::base_path, ) { if $service_enable { include ::systemd systemd::unit_file { "${service_name}.service": content => template('prowlarr/prowlarr.service.erb'), enable => true, active => true, subscribe => File["${base_path}/config.xml"], } } }