puppet-prod/modules/lidarr/manifests/service.pp

22 lines
604 B
Puppet

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