summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2024-05-10 13:09:41 +0200
committerHendrik Jäger <gitcommit@henk.geekmail.org>2024-05-10 13:09:41 +0200
commit15ebd5db12a6e6bef9479ff3b1de8596a60dd715 (patch)
treebd1ec4e996fd315129017e617bc29e1d34d904c9
parent2efcb90c159d49f56a12dd4d0e72abc542a491ed (diff)
add parameters for service and scan dir
-rw-r--r--manifests/init.pp2
-rw-r--r--manifests/managed_service.pp4
2 files changed, 4 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 111d990..b0e070c 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,5 +1,7 @@
class s6 (
Optional[Array[String]] $scandir_users = [],
+ String $service_dir,
+ String $scan_dir,
) {
require 'execline'
diff --git a/manifests/managed_service.pp b/manifests/managed_service.pp
index 4140f7b..fdea55f 100644
--- a/manifests/managed_service.pp
+++ b/manifests/managed_service.pp
@@ -1,7 +1,7 @@
define s6::managed_service (
- String $service_dir,
- String $scan_dir,
String $runscript,
+ String $service_dir = $s6::service_dir,
+ String $scan_dir = $s6::scan_dir,
Optional[String] $finishscript = undef,
Optional[String] $logger_runscript = undef,
) {