aboutsummaryrefslogtreecommitdiff
path: root/tests/playbooks/run.yml
blob: cd2f5ca8c0d1b071262fc8aa83ecfdd4e039c990 (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
---
- 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 }}"