blob: cdb6c11dacfba1ae79f8497b0bcb2c8cf79799cc (
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
|
---
- hosts: all
vars_files:
- ../vars/zuul.yml
tasks:
- name: Run node setup script
script: "{{ zuul.executor.work_root }}/{{ zuul.project.src_dir }}/tools/setup_{{ ansible_os_family }}.sh"
become: true
environment:
DOCKER_REPOS_MIRROR_URL: "{{ nodepool_docker_proxy }}"
- name: changing permission of Docker socket to 666
file:
path: /run/docker.sock
mode: 666
become: true
- name: Ensure /etc/kolla exists
file:
path: /etc/kolla
state: directory
mode: 0777
become: true
- name: Template kolla-build.conf
template:
src: "{{ zuul.executor.work_root }}/{{ zuul.project.src_dir }}/tests/templates/kolla-build.conf.j2"
dest: /etc/kolla/kolla-build.conf
- name: Template template_overrides.j2
template:
src: "{{ zuul.executor.work_root }}/{{ zuul.project.src_dir }}/tests/templates/template_overrides.j2"
dest: /etc/kolla/template_overrides.j2
# NOTE(hrw) REQUESTS_CA_BUNDLE is to get Let's Encrypt certificates trusted
- name: Run tox
shell: |
if [ 'RedHat' == '{{ ansible_os_family }}' ]; then
export REQUESTS_CA_BUNDLE="/etc/pki/tls/certs/ca-bundle.crt"
fi
{{ ansible_user_dir }}/tox-venv/bin/tox -e {{ action }}-{{ base_distro }}{{ base_tag | default('') }}-{{ install_type }}
args:
chdir: "{{ zuul.project.src_dir }}"
environment:
UPPER_CONSTRAINTS_FILE: "{{ requirements_src_dir }}/upper-constraints.txt"
|