summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp9
-rw-r--r--manifests/install.pp2
-rw-r--r--manifests/logrotater.pp (renamed from manifests/config.pp)8
-rw-r--r--manifests/scandir_users.pp7
4 files changed, 13 insertions, 13 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 833fd8c..cf1c5db 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -4,12 +4,9 @@ class s6 (
require 'execline'
class {
- "${name}::install":
- notify => Class["${name}::service"],
- ;
- "${name}::config":
- notify => Class["${name}::service"],
- ;
+ "${name}::install": ;
+ "${name}::scandir_users": ;
+ "${name}::logrotater": ;
"${name}::service": ;
}
}
diff --git a/manifests/install.pp b/manifests/install.pp
index b6f80b4..9609076 100644
--- a/manifests/install.pp
+++ b/manifests/install.pp
@@ -13,12 +13,14 @@ class s6::install {
],
mode => '0755',
require => Package['s6'],
+ notify => Class['s6::service'],
;
'/etc/init.d/s6':
ensure => present,
source => 'puppet:///modules/s6/etc/init.d/s6',
mode => '0755',
require => Package['s6'],
+ notify => Class['s6::service'],
;
'/etc/s6-services/':
ensure => directory,
diff --git a/manifests/config.pp b/manifests/logrotater.pp
index 3431ef8..a864241 100644
--- a/manifests/config.pp
+++ b/manifests/logrotater.pp
@@ -1,4 +1,4 @@
-class s6::config {
+class s6::logrotater {
$basedir = '/etc/s6-services/s6-logrotater'
file {
@@ -13,10 +13,4 @@ class s6::config {
mode => '0700',
;
}
-
- $s6::scandir_users.each | $entry | {
- s6::user_scandir {
- $entry: ;
- }
- }
}
diff --git a/manifests/scandir_users.pp b/manifests/scandir_users.pp
new file mode 100644
index 0000000..30734ce
--- /dev/null
+++ b/manifests/scandir_users.pp
@@ -0,0 +1,7 @@
+class s6::scandir_users {
+ $s6::scandir_users.each | $entry | {
+ s6::user_scandir {
+ $entry: ;
+ }
+ }
+}