]> git.netwichtig.de Git - user/henk/code/puppet/modules/s6.git/commitdiff
feat: support for snippets from other modules
authorHendrik Jäger <gitcommit@henk.geekmail.org>
Wed, 1 Nov 2023 10:42:58 +0000 (11:42 +0100)
committerHendrik Jäger <gitcommit@henk.geekmail.org>
Wed, 1 Nov 2023 10:42:58 +0000 (11:42 +0100)
manifests/init.pp
manifests/snippets.pp [new file with mode: 0644]

index 18d447a9e57ae3900b41473a908205414990bceb..111d990aa68fdd397e27b4d06f127bf99886af4e 100644 (file)
@@ -5,6 +5,7 @@ class s6 (
 
   class {
     "${name}::install": ;
+    "${name}::snippets": ;
     "${name}::service": ;
     "${name}::scandir_users": ;
   }
diff --git a/manifests/snippets.pp b/manifests/snippets.pp
new file mode 100644 (file)
index 0000000..c76f5ac
--- /dev/null
@@ -0,0 +1,6 @@
+class s6::snippets {
+  File <| tag == 's6_snippet' |> {
+    notify    => Class['::s6::service'],
+  }
+}
+