Monty Taylor | 36ddea3 | 2017-10-02 10:05:17 -0500 | [diff] [blame] | 1 | - hosts: all |
Andrea Frittoli | 5e714d3 | 2018-02-17 22:21:26 +0000 | [diff] [blame] | 2 | pre_tasks: |
Luigi Toscano | c67a689 | 2019-10-01 20:14:22 +0200 | [diff] [blame^] | 3 | - 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 Frittoli | 5e714d3 | 2018-02-17 22:21:26 +0000 | [diff] [blame] | 10 | - 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 Taylor | 36ddea3 | 2017-10-02 10:05:17 -0500 | [diff] [blame] | 28 | roles: |
Andrea Frittoli | 5e714d3 | 2018-02-17 22:21:26 +0000 | [diff] [blame] | 29 | - test-matrix |
Monty Taylor | 36ddea3 | 2017-10-02 10:05:17 -0500 | [diff] [blame] | 30 | - 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 |