]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
BMF - httpd logs rotate every day 30 days
authorOliver Böttcher <oliver.boettcher@pixelpark.com>
Wed, 11 Jul 2018 09:33:19 +0000 (11:33 +0200)
committerOliver Böttcher <oliver.boettcher@pixelpark.com>
Wed, 11 Jul 2018 09:33:19 +0000 (11:33 +0200)
customer/bmf-datacenter/common.yaml
customer/bmf-datacenter/production.yaml
customer/bmf-europa/common.yaml
customer/bmf-europa/web-so-klingt-europa-de.pixelpark.net.yaml

index 0d5a0afe37c5e7f3e5b2a8b31bb49b40456bcc8a..baea1fdd951e9043d5420a46dda936e51c98b56f 100644 (file)
@@ -34,6 +34,7 @@ infra::role: base
 infra::additional_classes:
   - infra::profile::typo3
   - infra::profile::mysql_server
+  - infra::profile::logrotate
   - solr
   - java
 
index 78b09af186e64d9c97c43ee3baf96359d66ceb3f..70917ddde45e60c575793ce7f61df75dac128d8c 100644 (file)
@@ -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'
index 32eb5ec7bed6bfecf497ce29aed5e74e18e1cd38..2e60c9bd104cc1261b8ff7e939477a23245712a5 100644 (file)
@@ -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
index 956a70b0ee5bc3cac526ba0d412e87127c36f81e..aa30fe26c0a276ee23116761d17428632b965f96 100644 (file)
@@ -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'