blob: ff97a1f5010b0f8ae8bd19962edfb5448d74b215 [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:
29 - configure-swap
30 - setup-stack-user
31 - setup-tempest-user
32 - setup-devstack-source-dirs
33 - setup-devstack-log-dir
34 - setup-devstack-cache
35 - start-fresh-logging
36 - write-devstack-local-conf