feat: add lidarr module
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# 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"],
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user