diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-21 23:14:47 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-21 23:14:47 +0200 |
commit | 388a68fe28cc8dd551fc6bf1c0373cc499b5ccd1 (patch) | |
tree | 73620336e6413b01968c31a46d283ee241a79148 | |
parent | 567afbb4cc8cf8e002d0a7de9af61bc3a298751c (diff) | |
download | jenkins.debian.net-388a68fe28cc8dd551fc6bf1c0373cc499b5ccd1.tar.xz |
add profitbricks-build3-amd64
7 files changed, 257 insertions, 1 deletions
diff --git a/hosts/jenkins/etc/munin/munin.conf b/hosts/jenkins/etc/munin/munin.conf index 29642585..bcf4479c 100644 --- a/hosts/jenkins/etc/munin/munin.conf +++ b/hosts/jenkins/etc/munin/munin.conf @@ -129,7 +129,7 @@ contact.me.command mail -s "Munin notification ${var:host}" qa-jenkins-scm@lists diskstats_latency.vdb.avgrdwait.warning 0:10 [profitbricks-build3-amd64.debian.net] - address 46.16.77.57 + address 185.48.117.167 use_node_name yes df._srv_workspace.warning 90 df._srv_workspace.critical 95 diff --git a/hosts/profitbricks-build3-amd64/etc/munin/munin-node.conf b/hosts/profitbricks-build3-amd64/etc/munin/munin-node.conf new file mode 100644 index 00000000..7d5651aa --- /dev/null +++ b/hosts/profitbricks-build3-amd64/etc/munin/munin-node.conf @@ -0,0 +1,65 @@ +# +# Example config-file for munin-node +# + +log_level 4 +log_file /var/log/munin/munin-node.log +pid_file /var/run/munin/munin-node.pid + +background 1 +setsid 1 + +user root +group root + +# This is the timeout for the whole transaction. +# Units are in sec. Default is 15 min +# +# global_timeout 900 + +# This is the timeout for each plugin. +# Units are in sec. Default is 1 min +# +# timeout 60 + +# Regexps for files to ignore +ignore_file [\#~]$ +ignore_file DEADJOE$ +ignore_file \.bak$ +ignore_file %$ +ignore_file \.dpkg-(tmp|new|old|dist)$ +ignore_file \.rpm(save|new)$ +ignore_file \.pod$ + +# Set this if the client doesn't report the correct hostname when +# telnetting to localhost, port 4949 +# +#host_name localhost.localdomain + +# A list of addresses that are allowed to connect. This must be a +# regular expression, since Net::Server does not understand CIDR-style +# network notation unless the perl module Net::CIDR is installed. You +# may repeat the allow line as many times as you'd like + +allow ^127\.0\.0\.1$ +allow ^::1$ + +# If you have installed the Net::CIDR perl module, you can use one or more +# cidr_allow and cidr_deny address/mask patterns. A connecting client must +# match any cidr_allow, and not match any cidr_deny. Note that a netmask +# *must* be provided, even if it's /32 +# +# Example: +# +# cidr_allow 127.0.0.1/32 +# cidr_allow 192.0.2.0/24 +# cidr_deny 192.0.2.42/32 + +# Which address to bind to; +host * +# host 127.0.0.1 + +# And which port +port 4949 + +allow ^78\.137\.96\.196 diff --git a/hosts/profitbricks-build3-amd64/etc/munin/plugin-conf.d/df b/hosts/profitbricks-build3-amd64/etc/munin/plugin-conf.d/df new file mode 100644 index 00000000..1f1cb157 --- /dev/null +++ b/hosts/profitbricks-build3-amd64/etc/munin/plugin-conf.d/df @@ -0,0 +1,6 @@ +[df*] +env.exclude none unknown iso9660 squashfs udf romfs ramfs debugfs devtmpfs +env.exclude_re /srv/workspace/pbuilder /run /dev/disk/by /var/lib/schroot/mount +env.warning 92 +env.critical 98 + diff --git a/hosts/profitbricks-build3-amd64/etc/munin/plugin-conf.d/diskstats b/hosts/profitbricks-build3-amd64/etc/munin/plugin-conf.d/diskstats new file mode 100644 index 00000000..8cf14814 --- /dev/null +++ b/hosts/profitbricks-build3-amd64/etc/munin/plugin-conf.d/diskstats @@ -0,0 +1,4 @@ +[diskstats] +env.trim_labels yes +env.include_only /dev/vda,/dev/vdb + diff --git a/hosts/profitbricks-build3-amd64/etc/munin/plugin-conf.d/munin-node b/hosts/profitbricks-build3-amd64/etc/munin/plugin-conf.d/munin-node new file mode 100644 index 00000000..e766928f --- /dev/null +++ b/hosts/profitbricks-build3-amd64/etc/munin/plugin-conf.d/munin-node @@ -0,0 +1,117 @@ +# This file is used to configure how the plugins are invoked. +# Place in /etc/munin/plugin-conf.d/ or corresponding directory. +# +# PLEASE NOTE: Changes in the plugin-conf.d directory are only +# read at munin-node startup, so restart at any changes. +# +# user <user> # Set the user to run the plugin as. +# group <group> # Set the group to run the plugin as. +# command <command> # Run <command> instead of the plugin. %c expands to +# what would normally be run. +# env.<variable> <value> # Sets <variable> in the plugin's environment, see the +# individual plugins to find out which variables they +# care about. + + +[amavis] +group adm +env.MUNIN_MKTEMP /bin/mktemp -p /tmp/ $1 +env.amavislog /var/log/mail.info + +[apt] +user root + +[courier_mta_mailqueue] +group daemon + +[courier_mta_mailstats] +group adm + +[courier_mta_mailvolume] +group adm + +[cps*] +user root + +[exim_mailqueue] +group adm, (Debian-exim) + +[exim_mailstats] +group adm, (Debian-exim) +env.logdir /var/log/exim4/ +env.logname mainlog + +[fw_conntrack] +user root + +[fw_forwarded_local] +user root + +[hddtemp_smartctl] +user root + +[hddtemp2] +user root + +[if_*] +user root + +[if_err_*] +user nobody + +[ip_*] +user root + +[ipmi_*] +user root + +[mysql*] +user root +env.mysqlopts --defaults-file=/etc/mysql/debian.cnf +env.mysqluser debian-sys-maint +env.mysqlconnection DBI:mysql:mysql;mysql_read_default_file=/etc/mysql/debian.cnf + +[postfix_mailqueue] +user postfix + +[postfix_mailstats] +group adm + +[postfix_mailvolume] +group adm +env.logfile mail.log + +[smart_*] +user root + +[vlan*] +user root + +[ejabberd*] +user ejabberd +env.statuses available away chat xa +env.days 1 7 30 + +[dhcpd3] +user root +env.leasefile /var/lib/dhcp3/dhcpd.leases +env.configfile /etc/dhcp3/dhcpd.conf + +[jmx_*] +env.ip 127.0.0.1 +env.port 5400 + +[samba] +user root + +[munin_stats] +user munin +group munin + +[postgres_*] +user postgres +env.PGUSER postgres +env.PGPORT 5432 + +[fail2ban] +user root diff --git a/hosts/profitbricks-build3-amd64/etc/postfix/main.cf b/hosts/profitbricks-build3-amd64/etc/postfix/main.cf new file mode 100644 index 00000000..6d71bc72 --- /dev/null +++ b/hosts/profitbricks-build3-amd64/etc/postfix/main.cf @@ -0,0 +1,41 @@ +# See /usr/share/postfix/main.cf.dist for a commented, more complete version + + +# Debian specific: Specifying a file name will cause the first +# line of that file to be used as the name. The Debian default +# is /etc/mailname. +#myorigin = /etc/mailname + +smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) +biff = no + +# appending .domain is the MUA's job. +append_dot_mydomain = no + +# Uncomment the next line to generate "delayed mail" warnings +#delay_warning_time = 4h + +readme_directory = no + +# TLS parameters +smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem +smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key +smtpd_use_tls=yes +smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache +smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache + +# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for +# information on enabling SSL in the smtp client. + +myhostname = profitbricks-build3-amd64.debian.net +alias_maps = hash:/etc/aliases +alias_database = hash:/etc/aliases +myorigin = /etc/mailname +mydestination = profitbricks-build3-amd64.debian.net, localhost +relayhost = +#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 +mynetworks = 127.0.0.0/8 +mailbox_size_limit = 0 +recipient_delimiter = + +inet_interfaces = all +mailbox_command = /usr/bin/procmail -a "$EXTENSION" diff --git a/hosts/profitbricks-build3-amd64/etc/rc.local b/hosts/profitbricks-build3-amd64/etc/rc.local new file mode 100755 index 00000000..7f050668 --- /dev/null +++ b/hosts/profitbricks-build3-amd64/etc/rc.local @@ -0,0 +1,23 @@ +#!/bin/sh -e +# +# rc.local +# +# This script is executed at the end of each multiuser runlevel. +# Make sure that the script will "exit 0" on success or any other +# value on error. +# +# In order to enable or disable this script just change the execution +# bits. +# +# By default this script does nothing. + +#systemctl disable systemd-timesyncd +#systemctl disable systemd-timedated +#systemctl stop systemd-timesyncd +#systemctl stop systemd-timedated +#ntpdate -b de.pool.ntp.org +echo "$(date) - system was rebooted" | mail -s "$(hostname -f) rebooted" root +#date --set="-400 days" +#echo "$(date) - system is running in the past now" | mail -s "$(hostname -f) in the past" root + +exit 0 |