puppet-prod/modules/prowlarr/manifests/service.pp
Ben Vincent f2046efebe feat: add prowlarr module
- add media::prowlarr role
2024-06-27 21:32:13 +10:00

22 lines
626 B
Puppet

# 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"],
}
}
}