]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
Extending all in customer mbvd-cdb
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 28 Jun 2018 14:40:35 +0000 (16:40 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 28 Jun 2018 14:40:35 +0000 (16:40 +0200)
customer/mbvd-cdb/common.yaml

index 927d0733f15f4b6a3513621797bbfd95883d6434..d7dff32589a36b8a232398a798649c39026787a6 100644 (file)
@@ -5,10 +5,76 @@ infra::additional_classes:
   - infra::profile::mysql_server
   - infra::profile::pg_server
   - git
+  - infra::profile::postfix
+  - infra::profile::cron
+  - rsyslog::client
+  - infra::profile::logrotate
+  - resolv_conf
 
 infra::additional_packages:
   ImageMagick: {}
 
+postfix::myorigin: "pixelpark.net"
+infra::profile::postfix::virtual_aliases_source: 'maps/virtual-nullclient-mbvd-rails'
+
+#####################################################
+# Logrotation
+
+infra::profile::logrotate::rules:
+  btmp:
+    dateformat: '-%Y-%m-%d'
+  wtmp:
+    dateformat: '-%Y-%m-%d'
+  syslog:
+    path:
+      - '/var/log/cron'
+      - '/var/log/maillog'
+      - '/var/log/messages'
+      - '/var/log/secure'
+      - '/var/log/spooler'
+    rotate_every: 'day'
+    rotate: 10
+    minsize: '4M'
+    compress: true
+    delaycompress: true
+    dateformat: '-%Y-%m-%d'
+    missingok: true
+    sharedscripts: true
+    postrotate: '/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true'
+  passenger:
+    path:
+      - '/var/log/passenger-analytics/*.log'
+    missingok: true
+    ifempty: false
+    sharedscripts: true
+    compress: true
+    delaycompress: true
+  cdb:
+    path:
+      - '/var/www/cdb/log/*.log'
+    su_owner: 'cdb'
+    su_group: 'cdb'
+    rotate_every: 'day'
+    missingok: true
+    rotate: 20
+    size: '+1M'
+    dateext: true
+    compress: true
+    delaycompress: true
+    ifempty: false
+    copytruncate: true
+
+#####################################################
+# Options for /etc/resolv.conf
+resolv_conf::manage: true
+resolv_conf::nameservers:
+  - '217.66.52.10'
+  - '93.188.109.13'
+  - '212.91.225.75'
+resolv_conf::searchpath:
+  - 'pixelpark.net'
+  - 'pixelpark.com'
+
 ###################################
 # PostgreSQL - Geraffe
 infra::profile::pg_server::manage_repo: true