-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.yaml
60 lines (53 loc) · 1.54 KB
/
install.yaml
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
---
- name: Install reproducer
copy:
src: "{{ item }}"
dest: "{{ install_path }}"
with_items:
- playbooks
- projects
- httpd.conf
- name: Generate docker compose config
template:
src: docker-compose.yaml.j2
dest: "{{ install_path }}/docker-compose.yaml"
- name: Create directories
file:
name: "{{ install_path }}/{{ item }}"
state: directory
with_items:
- etc_nodepool
- etc_zuul
- name: Generate zuul configuration
template:
src: "{{ item }}.j2"
dest: "{{ install_path }}/etc_zuul/{{ item }}"
with_items:
- zuul.conf
- main.yaml
- scheduler-logging.yaml
- executor-logging.yaml
- web-logging.yaml
- merger-logging.yaml
- name: Generate secrets.env
vars:
id_rsa_b64: "{{ lookup('file', '~/.ssh/id_rsa') | b64encode }}"
upstream_gerrit_key_b64: "{{ lookup('file', '~/.ssh/' +
upstream_gerrit_key) | b64encode }}"
rdo_gerrit_key_b64: "{{ lookup('file', '~/.ssh/' +
rdo_gerrit_key) | b64encode }}"
template:
src: secrets.env.j2
dest: "{{ install_path }}/secrets.env"
mode: 0600
- name: Setup nodepool provider
include_tasks: "{{ nodepool_provider }}/main.yaml"
when: nodepool_provider != "host" and setup_nodepool
- name: Generate nodepool main configuration
template:
src: "nodepool-{{ nodepool_provider }}.yaml.j2"
dest: "{{ install_path }}/etc_nodepool/nodepool.yaml"
- name: Generate nodepool logs configuration
template:
src: "launcher-logging.yaml.j2"
dest: "{{ install_path }}/etc_nodepool/launcher-logging.yaml"