Skip to content

Commit

Permalink
Fix logrotation and rsyslog
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianSW committed Aug 12, 2020
1 parent 460953e commit 610f08e
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
url = https://github.com/arioch/puppet-redis.git
[submodule "modules/rsyslog"]
path = modules/rsyslog
url = https://github.com/saz/puppet-rsyslog.git
url = https://github.com/voxpupuli/puppet-rsyslog.git
[submodule "modules/nfs"]
path = modules/nfs
url = https://github.com/derdanne/puppet-nfs.git
Expand Down
5 changes: 1 addition & 4 deletions modules/droidwiki/manifests/default.pp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@
target => '/usr/local/bin/pip',
}

class { 'rsyslog::client':
server => 'eclair.dwnet',
port => '1514',
}
include rsyslog::config

if ($isnfsserver == false) {
# all droidwiki servers should have access to the nfs shareddata
Expand Down
16 changes: 8 additions & 8 deletions modules/postfix/manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@
ensure => 'directory',
owner => 'root',
group => 'root',
mode => '0660',
mode => '0640',
}

file { '/etc/postfix/sql/aliases.cf':
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0660',
mode => '0640',
content => template('postfix/sql/aliases.cf.erb'),
notify => Service['postfix'],
}
Expand All @@ -64,7 +64,7 @@
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0660',
mode => '0640',
content => template('postfix/sql/domains.cf.erb'),
notify => Service['postfix'],
}
Expand All @@ -73,7 +73,7 @@
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0660',
mode => '0640',
content => template('postfix/sql/maps.cf.erb'),
notify => Service['postfix'],
}
Expand All @@ -82,7 +82,7 @@
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0660',
mode => '0640',
content => template('postfix/sql/no-srs.cf.erb'),
notify => Service['postfix'],
}
Expand All @@ -91,7 +91,7 @@
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0660',
mode => '0640',
content => template('postfix/sql/sender-login-maps.cf.erb'),
notify => Service['postfix'],
}
Expand All @@ -100,7 +100,7 @@
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0660',
mode => '0640',
source => 'puppet:///modules/postfix/submission_header_cleanup',
notify => Service['postfix'],
}
Expand All @@ -116,7 +116,7 @@
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0660',
mode => '0640',
source => 'puppet:///modules/postfix/local-generics',
notify => Exec['refresh local-generics'],
}
Expand Down
2 changes: 2 additions & 0 deletions modules/role/manifests/mediawiki.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
mode => '0777',
}

$user = 'www-data'
$group = 'www-data'
file { '/etc/logrotate.d/mediawiki':
content => template('role/mediawiki.logrotate.erb'),
owner => 'root',
Expand Down
4 changes: 2 additions & 2 deletions modules/role/templates/concourse/docker-compose.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
- ./postgres-data:/var/lib/postgresql/data

web:
image: concourse/concourse:6.1
image: concourse/concourse:6.4
command: web
restart: unless-stopped
links: [db]
Expand All @@ -39,7 +39,7 @@ services:
- 8.8.4.4

worker:
image: concourse/concourse:6.1
image: concourse/concourse:6.4
command: worker
restart: unless-stopped
privileged: true
Expand Down
4 changes: 1 addition & 3 deletions modules/role/templates/mediawiki.logrotate.erb
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# logrotate(8) config for mediawiki
# This file is managed by Puppet

/data/log/mediawiki/*.log {
/data/log/mediawiki/*.log* {
su <%= @user %> <%= @group %>
daily
rotate 3
maxage 5
compress
delaycompress
notifempty
missingok
endscript
}
2 changes: 1 addition & 1 deletion modules/rsyslog

0 comments on commit 610f08e

Please sign in to comment.