From: Oliver Böttcher Date: Wed, 11 Jul 2018 09:33:19 +0000 (+0200) Subject: BMF - httpd logs rotate every day 30 days X-Git-Tag: v0.1.0~600^2 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=f4245d9435ffa2693f9175c1daa50c6e57128d5e;p=pixelpark%2Fhiera.git BMF - httpd logs rotate every day 30 days --- diff --git a/customer/bmf-datacenter/common.yaml b/customer/bmf-datacenter/common.yaml index 0d5a0afe..baea1fdd 100644 --- a/customer/bmf-datacenter/common.yaml +++ b/customer/bmf-datacenter/common.yaml @@ -34,6 +34,7 @@ infra::role: base infra::additional_classes: - infra::profile::typo3 - infra::profile::mysql_server + - infra::profile::logrotate - solr - java diff --git a/customer/bmf-datacenter/production.yaml b/customer/bmf-datacenter/production.yaml index 78b09af1..70917ddd 100644 --- a/customer/bmf-datacenter/production.yaml +++ b/customer/bmf-datacenter/production.yaml @@ -131,3 +131,16 @@ solr::cores: - /var/solr-typo3/typo3cores/german/conf/general_schema_types.xml - /var/solr-typo3/typo3cores/german/conf/german-common-nouns.txt - /var/solr-typo3/typo3cores/german/conf/_schema_analysis_stopwords_german.json + +infra::profile::logrotate::rules: + httpd: + path: + - '/var/log/httpd/*log' + rotate: 30 + rotate_every: 'day' + missingok: true + ifempty: false + sharedscripts: true + delaycompress: true + minsize: '4M' + postrotate: '/bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true' diff --git a/customer/bmf-europa/common.yaml b/customer/bmf-europa/common.yaml index 32eb5ec7..2e60c9bd 100644 --- a/customer/bmf-europa/common.yaml +++ b/customer/bmf-europa/common.yaml @@ -38,7 +38,7 @@ accounts::users: group: apache thomas.bussmeyer: apply: true - sudo: true + sudo: true sudo::configs: becomeApache: @@ -51,6 +51,7 @@ infra::additional_classes: - infra::profile::mysql_server - infra::profile::wordpress - infra::profile::drupal + - infra::profile::logrotate repo::remi_php70: true apache::default_vhost: false diff --git a/customer/bmf-europa/web-so-klingt-europa-de.pixelpark.net.yaml b/customer/bmf-europa/web-so-klingt-europa-de.pixelpark.net.yaml index 956a70b0..aa30fe26 100644 --- a/customer/bmf-europa/web-so-klingt-europa-de.pixelpark.net.yaml +++ b/customer/bmf-europa/web-so-klingt-europa-de.pixelpark.net.yaml @@ -96,3 +96,16 @@ infra::profile::drupal::projects: - '%%{ich-trickse}{HTTP_HOST} !^www\.reichsfinanzministerium-geschichte\.de [NC]' rewrite_rule: - '^(.*)$ http://www.reichsfinanzministerium-geschichte.de$1 [L,R=301]' + +infra::profile::logrotate::rules: + httpd: + path: + - '/var/log/httpd/*log' + rotate: 30 + rotate_every: 'day' + missingok: true + ifempty: false + sharedscripts: true + delaycompress: true + minsize: '4M' + postrotate: '/bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true'