-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.yml
90 lines (69 loc) · 2.61 KB
/
setup.yml
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
---
- name: Setup up machines (common tasks)
hosts: "*"
tags:
- common
become: yes
tasks:
- name: Enable the CernVM Yum repository
yum: name=https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest.noarch.rpm state=latest
- name: Disable the protectbase Yum plugin
script: disable_protectbase.sh creates=/tmp/protectbase_disabled
- name: Update the system
yum: name=* state=latest
- name: Install the CernVM-FS client package and some utilities
yum:
name:
- cvmfs
- jq
- wget
- name: Install the Conveyor package
yum: name=https://ecsft.cern.ch/dist/cvmfs/nightlies/conveyor-git-23/conveyor-0.1.0-0.23.x86_64.rpm state=latest
- name: Set up the gateway machines
hosts: cvm19gateways
tags:
- gateway
become: yes
tasks:
- name: Install the CernVM-FS server, gateway and notify packages
yum: name="cvmfs-server,cvmfs-gateway,cvmfs-notify" state=latest
- name: Install Docker, Docker Compose and the Postgres client
yum: name="docker,docker-compose,postgresql" state=latest
- name: Start the Docker daemon
service: name=docker enabled=yes state=started
- name: Copy docker-compose.yml
synchronize: src=conveyor-services dest=./
- name: Open firewall port 4929 for cvmfs-gateway
firewalld: port=4929/tcp permanent=true state=enabled
- name: Open firewall port 4930 for cvmfs-notify
firewalld: port=4930/tcp permanent=true state=enabled
- name: Open firewall port 5672 for RabbitMQ (used by Conveyor)
firewalld: port=5672/tcp permanent=true state=enabled
- name: Open firewall port 15672 for the RabbitMQ management console (used by Conveyor)
firewalld: port=15672/tcp permanent=true state=enabled
- name: Open firewall port 8080 for the Conveyor job server
firewalld: port=8080/tcp permanent=true state=enabled
- name: Open firewall port 80 for serving CVMFS
firewalld: port=80/tcp permanent=true state=enabled
- name: Reload Firewalld
service: name=firewalld enabled=yes state=reloaded
- name: Set up the publisher machines
hosts: cvm19publishers
tags:
- publisher
become: yes
tasks:
- name: Install the CernVM-FS server package
yum:
name:
- cvmfs-server
- name: Set up the frontend machines
hosts: cvm19frontends
tags:
- frontend
become: yes
tasks:
- name: Copy the job submission script
copy: src=submit_jobs.sh dest=submit_jobs.sh mode=0755
- name: Copy the example transaction script
copy: src=test_transaction.sh dest=test_transaction.sh mode=0755