kolla/tests/playbooks/run.yml
Radosław Piliszek 2cdcf1821d CI: Ansiblify setup of builders
CI is set up using Ansible playbooks now.
This also drops redundant shell scripts.

Co-authored-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>

Change-Id: I5264746fd04276448f4668c3bb3a218a40e8660b
2020-04-03 15:59:20 +02:00

25 lines
706 B
YAML

---
- hosts: all
vars_files:
- ../vars/zuul.yml
tasks:
- 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 kolla-build
command: "{{ virtualenv_path }}/bin/kolla-build"