Maintenance on web
[cacert-infradocs.git] / docs / systems.rst
1 ====================
2 Non-Critical Systems
3 ====================
4
5 Non-critical systems are those that are managed by the infrastructure
6 administrator team.
7
8 .. toctree::
9 :maxdepth: 1
10
11 systems/infra02
12 systems/blog
13 systems/board
14 systems/bugs
15 systems/cats
16 systems/email
17 systems/emailout
18 systems/git
19 systems/irc
20 systems/ircserver
21 systems/issue
22 systems/jenkins
23 systems/monitor
24 systems/puppet
25 systems/proxyin
26 systems/proxyout
27 systems/svn
28 systems/web
29 systems/webmail
30 systems/webstatic
31
32
33 General
34 =======
35
36 .. todo:: consider whether a central MySQL service should be setup
37
38 Many containers contain their own instance of MySQL. It might be a better
39 idea to centralize the MySQL setups in a single container.
40
41 .. todo:: consider whether a central PostgreSQL service should be setup
42
43 .. todo::
44
45 setup a central syslog service and install syslog clients in each container
46
47 .. _setup_apt_checking:
48
49 .. topic:: Setup package update monitoring for a new container
50
51 For Icinga to be able to check the update status of packages on you server
52 you need to install NRPE, a helper service. Install the necessary packages::
53
54 sudo aptitude install nagios-plugins-basic nagios-nrpe-server
55
56 Put :doc:`systems/monitor` on the list of allowed hosts to access the NRPE
57 service by adding the following line to :file:`/etc/nagios/nrpe_local.cfg`::
58
59 allowed_hosts=172.16.2.18
60
61 Tell the NRPE service that there is such a thing as the check_apt command by
62 creating the file :file:`/etc/nagios/nrpe.d/apt.cfg` with the following
63 contents::
64
65 # 'check_apt' command definition
66 command[check_apt]=/usr/lib/nagios/plugins/check_apt
67
68 # 'check_apt_distupgrade' command definition
69 command[check_apt_distupgrade]=/usr/lib/nagios/plugins/check_apt -d
70
71 Restart the NRPE service::
72
73 sudo service nagios-nrpe-server restart
74
75 Check that everything went well by going to https://monitor.cacert.org/,
76 going to the APT service on the host and clicking :guilabel:`"Re-schedule
77 the next check of this service"`. Make sure that :guilabel:`"Force Check"`
78 is checked and click :guilabel:`"Commit"`. Now you should see a page with a
79 green background. If not something went wrong, please contact the
80 :doc:`systems/monitor` administrators with the details.
81
82 That's it, now the package update status should be properly displayed in
83 Icinga.
84
85 .. todo:: think about replacing nrpe with Icinga2 satellites
86
87 Checklist
88 =========
89
90 .. index::
91 single: etckeeper
92 single: nrpe
93
94 * All containers should be monitored by :doc:`systems/monitor` and should
95 therefore have :program:`nagios-nrpe-server` installed
96 * All containers should use :program:`etckeeper` to put their local setup into
97 version control. All local setup should use :file:`/etc` to make sure it is
98 handled by :program:`etckeeper`
99 * All infrastructure systems must send their mail via :doc:`systems/emailout`
100 * All infrastructure systems should have an system-admin@cacert.org alias to
101 reach their admins
102 * The installation of :index:`systemd-sysv` in containers can be blocked by
103 putting the following lines in :file:`/etc/apt/preferences.d/systemd-sysv`::
104
105 Package: systemd-sysv
106 Pin: release a=stable
107 Pin-Priority: -1
108
109 .. todo:: document how to setup the system-admin alias on the email system