README.md 958 Bytes
Newer Older
1
2
3
4
5
Ansible playbooks for setting up the CI server
==============================================

Installs Jenkins on a remote Debian system.

6
7
Requires on host
----------------
8
9
10
11

- ansible (tested 2.4.2.0)
- ansible-galaxy

12
### Host installation and updating
13
14

```
15
$ ansible-galaxy install --force -r requirements.yml
16
17
```

Dorota Czaplejewicz's avatar
Dorota Czaplejewicz committed
18
Configure
19
---------
20

Dorota Czaplejewicz's avatar
Dorota Czaplejewicz committed
21
Create `inventory.yml`. **Don't commit this file**, it contains site-specific config!
22

23
24
Deploy
------
Guido Gunther's avatar
Guido Gunther committed
25
To deploy e.g. the jenkins master user:
26
```
Guido Gunther's avatar
Guido Gunther committed
27
$ ansible-playbook -i ./inventory.yml ./playbook.yml -s --check -l jenkinsmaster --diff
28
```
Guido Gunther's avatar
Guido Gunther committed
29
If everything looks o.k. rerun without *--check*.
30

31
32
33
34
35
36
37
38
### From within Jenkins
-----------------------

Log in to the new instance and deal with security warnings:

- enable CSRF in config, select issuer, enable proxy compat
- disable CLI
- disable deprecated protocols (Java Web Start Agent Protocol/1 and /2) bu unchecking fields in Configure global security, Agents, Agent protocols