feat: add prowlarr module

- add media::prowlarr role
This commit is contained in:
2024-06-27 21:32:13 +10:00
parent 0b7f07692c
commit f2046efebe
8 changed files with 231 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# manage prowlarr service
class prowlarr::service (
$service_enable = $prowlarr::service_enable,
$service_name = $prowlarr::service_name,
$user = $prowlarr::user,
$group = $prowlarr::user,
$install_path = $prowlarr::install_path,
$executable = $prowlarr::executable,
$base_path = $prowlarr::base_path,
) {
if $service_enable {
include ::systemd
systemd::unit_file { "${service_name}.service":
content => template('prowlarr/prowlarr.service.erb'),
enable => true,
active => true,
subscribe => File["${base_path}/config.xml"],
}
}
}