puppet-sonarr/manifests/service.pp
Ruben Bosch b9a617cf25
Working version
This commit contains a working version of this Puppet implementation of
Sonarr.
2019-06-19 22:01:06 +02:00

22 lines
545 B
Puppet

# == Class: sonarr::service
#
class sonarr::service (
$service_enable = $sonarr::service_enable,
$service_name = $sonarr::service_name,
$user = $sonarr::user,
$group = $sonarr::user,
$install_path = $sonarr::install_path,
$executable = $sonarr::executable,
$base_path = $sonarr::base_path,
) {
if $service_enable {
include ::systemd
systemd::unit_file { "${service_name}.service":
content => template('sonarr/systemd.erb'),
enable => true,
active => true,
}
}
}