8294bac01b
Changes the default base tag and distro for CentOS images from 7 to 8. Also changes the tag used by the publisher jobs for CentOS 8 images from 'master-centos8' to 'master'. Change-Id: I5498141ade23219d63f34debc2b8e1330dec2e68 Partially-Implements: blueprint centos-rhel-8
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
---
|
|
- 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
|
|
|
|
- name: Run tox
|
|
command: tox -e {{ action }}-{{ base_distro }}-{{ install_type }}
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|