feat: add lidarr module

This commit is contained in:
2024-06-27 21:14:27 +10:00
parent d98b12bf81
commit bbf9944ef5
7 changed files with 221 additions and 0 deletions
+21
View File
@@ -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"],
}
}
}