puppet-prod/modules/readarr/manifests/service.pp
Ben Vincent 0b7f07692c feat: add readarr module
- add media::readarr role
2024-06-27 21:21:18 +10:00

22 lines
615 B
Puppet

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