diff options
author | elijah <elijah@riseup.net> | 2015-04-16 20:57:11 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-04-16 20:57:11 -0700 |
commit | c7e12fd3cfe482e22e337eaea80ca7994dea7524 (patch) | |
tree | af9dc12e55b17951dd194e0d4c6079233aba7146 /puppet/modules/leap_mx/manifests | |
parent | 1530a85da3415bc000635d62882d9ba7082a793b (diff) |
stunnel shouldn't use syslog, and leap_mx can't.
Diffstat (limited to 'puppet/modules/leap_mx/manifests')
-rw-r--r-- | puppet/modules/leap_mx/manifests/init.pp | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/puppet/modules/leap_mx/manifests/init.pp b/puppet/modules/leap_mx/manifests/init.pp index a0590ee1..0d15d053 100644 --- a/puppet/modules/leap_mx/manifests/init.pp +++ b/puppet/modules/leap_mx/manifests/init.pp @@ -12,8 +12,6 @@ class leap_mx { include soledad::common include site_apt::preferences::twisted - leap::logfile { 'mx': process => 'leap-mx'} - # # USER AND GROUP # @@ -43,6 +41,14 @@ class leap_mx { notify => Service['leap-mx']; } + file { '/etc/default/leap_mx': + content => 'LOGFILE=/var/log/leap/mx.log', + owner => 'root', + group => 'root', + mode => '0644', + notify => Service['leap-mx']; + } + # # LEAP-MX CODE AND DEPENDENCIES # @@ -69,4 +75,18 @@ class leap_mx { hasrestart => true, require => [ Package['leap-mx'] ]; } + + augeas { + "logrotate_mx": + context => "/files/etc/logrotate.d/mx/rule", + changes => [ + "set file /var/log/leap/mx.log", + 'set rotate 5', + 'set schedule daily', + 'set compress compress', + 'set missingok missingok', + 'set ifempty notifempty', + 'set copytruncate copytruncate' + ] + } } |