blob: 60f365aa7ae847180e07698336c2233842a86cbf [file] [log] [blame]
Monty Taylor36ddea32017-10-02 10:05:17 -05001- hosts: all
Andrea Frittoli5e714d32018-02-17 22:21:26 +00002 pre_tasks:
Luigi Toscanoc67a6892019-10-01 20:14:22 +02003 - name: Fix the permissions of the zuul home directory
4 # Make sure that the zuul home can be traversed,
5 # so that all users can access the sources placed there.
6 # Some distributions create it with 700 by default.
7 file:
8 path: "{{ ansible_user_dir }}"
9 mode: a+x
Andrea Frittoli5e714d32018-02-17 22:21:26 +000010 - name: Gather minimum local MTU
11 set_fact:
12 local_mtu: >
13 {% set mtus = [] -%}
14 {% for interface in ansible_interfaces -%}
15 {% set interface_variable = 'ansible_' + interface -%}
16 {% if interface_variable in hostvars[inventory_hostname] -%}
17 {% set _ = mtus.append(hostvars[inventory_hostname][interface_variable]['mtu']|int) -%}
18 {% endif -%}
19 {% endfor -%}
20 {{- mtus|min -}}
21 - name: Calculate external_bridge_mtu
22 # 50 bytes is overhead for vxlan (which is greater than GRE
23 # allowing us to use either overlay option with this MTU.
24 # TODO(andreaf) This should work, but it may have to be reconcilied with
25 # the MTU setting used by the multinode setup roles in multinode pre.yaml
26 set_fact:
27 external_bridge_mtu: "{{ local_mtu | int - 50 }}"
Monty Taylor36ddea32017-10-02 10:05:17 -050028 roles:
Andrea Frittoli5e714d32018-02-17 22:21:26 +000029 - test-matrix
Monty Taylor36ddea32017-10-02 10:05:17 -050030 - configure-swap
31 - setup-stack-user
32 - setup-tempest-user
33 - setup-devstack-source-dirs
34 - setup-devstack-log-dir
35 - setup-devstack-cache
36 - start-fresh-logging
37 - write-devstack-local-conf