summaryrefslogtreecommitdiff
path: root/manifests/config.pp
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2022-05-04 20:49:32 +0200
committerHendrik Jäger <gitcommit@henk.geekmail.org>2022-05-22 20:04:54 +0200
commit087f73b5c34b887fd774bda4251c5084d6631679 (patch)
treeb7eb5d9e0d00babf20d633361c1b13849e9f25f5 /manifests/config.pp
parentc4bc0fecb2a92d8b713cac93cae7141b4b56a542 (diff)
rotate logs of system services, but not user services
Diffstat (limited to 'manifests/config.pp')
-rw-r--r--manifests/config.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
new file mode 100644
index 0000000..85a0831
--- /dev/null
+++ b/manifests/config.pp
@@ -0,0 +1,16 @@
+class s6::config {
+ $basedir = '/etc/s6-services/s6-logrotater'
+
+ file {
+ $basedir:
+ ensure => directory,
+ mode => '0600',
+ ;
+
+ "${basedir}/run":
+ ensure => present,
+ content => epp("s6/${basedir}/run.epp"),
+ mode => '0700',
+ ;
+ }
+}