feat: add readarr module

- add media::readarr role
This commit is contained in:
2024-06-27 21:21:18 +10:00
parent bbf9944ef5
commit 0b7f07692c
8 changed files with 230 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# 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"],
}
}
}