From 8e586a4099be8b31cfc1d2219312bb78052e9301 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 28 Jun 2018 16:40:35 +0200 Subject: [PATCH] Extending all in customer mbvd-cdb --- customer/mbvd-cdb/common.yaml | 66 +++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/customer/mbvd-cdb/common.yaml b/customer/mbvd-cdb/common.yaml index 927d0733..d7dff325 100644 --- a/customer/mbvd-cdb/common.yaml +++ b/customer/mbvd-cdb/common.yaml @@ -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 -- 2.39.5