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