summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
) {