summaryrefslogtreecommitdiff
path: root/tripwire_sysadmin.txt
blob: 69d0d323e5f64f8f05ed59f82d5b6695b58e151e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
This document explains how to manage services running at
tripwire.

== BUILDBOT ==

(Note, 'worker' and 'slave' are used interchangeably)

The user running the buildbot master is 'containers'.

-- Master --

To start the master, log in as 'containers', and run:
$ ~/buildbot/start.sh
To stop it, run:
$ ~/buildbot/stop.sh

There is also a "restart" script, runnable as follows:
$ ~/buildbot/restart.sh

-- Selenium worker --

The 'containers' user is also responsible for running the
selenium buildbot worker.

Start it with:
$ buildbot-worker start ~/buildbot/selenium_worker/

stop it with:
$ buildbot-worker stop ~/buildbot/selenium_worker/

-- Lcov worker --

The worker is implemented by the 'lcovslave' user.

To start the worker, log in as 'lcovslave' and run:

$ source ~/activate
$ taler-deployment-bbstart

# To stop it:
# taler-deployment-bbstop

-- Switcher worker --

This worker is responsible for switching the blue/green user
upon every push in the whole Taler codebase. The switch occurs
after a successful compilation.

The worker is implemented by the 'testswitcher' user. This user
has some additional "sudo" rights, since it has to act as "test-blue",
"test-green" and "test" user in order to accompish its task.
Note that the "sudo file" is tracked in this ('deployment')
repository, under the 'sudoers' directory.

To start the worker, log in as 'lcovslave' and run:

$ source ~/activate
$ taler-deployment-bbstart

# To stop it:
# taler-deployment-bbstop


== SELENIUM TESTS ==

Selenium test can be run manually by logging in as 'containers' and just
invoking the script:

$ launch_selenium_test

Please note that there is NO DOCKER involved in this activity.

== LCOV ==

Lcov data cab be generated manually by logging in as 'lcovslave',
and issuing the following commands:

$ source ~/activate
$ taler-deployment-build --coverage

The lcov.taler.net Web site takes its content from 'lcovslave', by
symlinking to its codebases, see below.

root@tripwire:~# ls -l /var/www/lcov.taler.net/
total 0
lrwxrwxrwx 1 root root 38 Nov 13 20:23 exchange -> /home/lcovslave/exchange/doc/coverage/
lrwxrwxrwx 1 root root 38 Nov 13 20:24 merchant -> /home/lcovslave/merchant/doc/coverage/

== TUTORIALS BUILD ==

The taler.net Web site links to tutorials/manuals,
both in pdf and html format. To manually build those
linked tutorials, do:

$ /var/www/update_manual.sh
$ /var/www/update_tutorials.sh

== Link to per-user Taler set-up ==

== OTHERS ? ==