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