|
6 | 6 | vars:
|
7 | 7 | venv: '{{ virtualenv_path }}/openstack'
|
8 | 8 | tasks:
|
9 |
| - - block: |
10 |
| - - name: Install python openstack client |
11 |
| - pip: |
12 |
| - name: python-openstackclient |
13 |
| - virtualenv: '{{ venv }}' |
14 |
| - extra_args: -c "{{ pip_upper_constraints_file }}" |
| 9 | + - name: Install python build dependencies |
| 10 | + package: |
| 11 | + name: |
| 12 | + - "{% if ansible_facts.os_family == 'RedHat' %}gcc{% else %}build-essential{% endif %}" |
| 13 | + - "python3-dev{% if ansible_facts.os_family == 'RedHat' %}el{% endif %}" |
| 14 | + cache_valid_time: "{{ apt_cache_valid_time if ansible_facts.os_family == 'Debian' else omit }}" |
| 15 | + update_cache: "{{ True if ansible_facts.os_family == 'Debian' else omit }}" |
| 16 | + state: present |
| 17 | + become: true |
15 | 18 |
|
16 |
| - - name: Include kolla secrets |
17 |
| - include_vars: |
18 |
| - dir: '{{ kayobe_env_config_path }}/kolla/' |
19 |
| - files_matching: passwords.yml |
20 |
| - name: kolla_passwords |
| 19 | + - name: Install python openstack client |
| 20 | + pip: |
| 21 | + name: python-openstackclient |
| 22 | + virtualenv: '{{ venv }}' |
| 23 | + extra_args: -c "{{ pip_upper_constraints_file }}" |
21 | 24 |
|
22 |
| - - name: Add an IP to connect to the instances |
23 |
| - # FIXME: host configure will have bounced the bridge |
24 |
| - # and removed the IP |
25 |
| - command: ip a add 10.0.2.1/24 dev breth1 |
26 |
| - register: result |
27 |
| - failed_when: 'result.rc !=0 and "RTNETLINK answers: File exists" not in |
28 |
| - result.stderr' |
29 |
| - changed_when: result.rc == 0 |
30 |
| - become: true |
| 25 | + - name: Include kolla secrets |
| 26 | + include_vars: |
| 27 | + dir: '{{ kayobe_env_config_path }}/kolla/' |
| 28 | + files_matching: passwords.yml |
| 29 | + name: kolla_passwords |
31 | 30 |
|
32 |
| - - name: Run init-run-once |
33 |
| - script: |
34 |
| - cmd: scripts/aio-init.sh |
35 |
| - creates: /tmp/.init-runonce |
36 |
| - environment: |
37 |
| - KOLLA_OPENSTACK_COMMAND: '{{ venv }}/bin/openstack' |
38 |
| - OS_PROJECT_DOMAIN_NAME: Default |
39 |
| - OS_USER_DOMAIN_NAME: Default |
40 |
| - OS_PROJECT_NAME: admin |
41 |
| - OS_TENANT_NAME: admin |
42 |
| - OS_USERNAME: admin |
43 |
| - OS_PASSWORD: "{{ kolla_passwords.keystone_admin_password | mandatory('Could\ |
44 |
| - \ not find keystone_admin_password in passwords.yml') }}" |
45 |
| - # Use kolla_external_fqdn in wallaby |
46 |
| - OS_AUTH_URL: http://{{ kolla_external_fqdn | default(public_net_name |
47 |
| - | net_fqdn) | default(public_net_name | net_vip_address, true) }}:5000 |
48 |
| - OS_INTERFACE: public |
49 |
| - OS_ENDPOINT_TYPE: publicURL |
50 |
| - OS_IDENTITY_API_VERSION: 3 |
51 |
| - OS_REGION_NAME: RegionOne |
52 |
| - OS_AUTH_PLUGIN: password |
| 31 | + - name: Add an IP to connect to the instances |
| 32 | + # FIXME: host configure will have bounced the bridge |
| 33 | + # and removed the IP |
| 34 | + command: ip a add 10.0.2.1/24 dev breth1 |
| 35 | + register: result |
| 36 | + failed_when: 'result.rc !=0 and "RTNETLINK answers: File exists" not in |
| 37 | + result.stderr' |
| 38 | + changed_when: result.rc == 0 |
| 39 | + become: true |
| 40 | + |
| 41 | + - name: Run init-run-once |
| 42 | + script: |
| 43 | + cmd: scripts/aio-init.sh |
| 44 | + creates: /tmp/.init-runonce |
| 45 | + environment: |
| 46 | + KOLLA_OPENSTACK_COMMAND: '{{ venv }}/bin/openstack' |
| 47 | + OS_PROJECT_DOMAIN_NAME: Default |
| 48 | + OS_USER_DOMAIN_NAME: Default |
| 49 | + OS_PROJECT_NAME: admin |
| 50 | + OS_TENANT_NAME: admin |
| 51 | + OS_USERNAME: admin |
| 52 | + OS_PASSWORD: "{{ kolla_passwords.keystone_admin_password | mandatory('Could\ |
| 53 | + \ not find keystone_admin_password in passwords.yml') }}" |
| 54 | + # Use kolla_external_fqdn in wallaby |
| 55 | + OS_AUTH_URL: http://{{ kolla_external_fqdn | default(public_net_name |
| 56 | + | net_fqdn) | default(public_net_name | net_vip_address, true) }}:5000 |
| 57 | + OS_INTERFACE: public |
| 58 | + OS_ENDPOINT_TYPE: publicURL |
| 59 | + OS_IDENTITY_API_VERSION: 3 |
| 60 | + OS_REGION_NAME: RegionOne |
| 61 | + OS_AUTH_PLUGIN: password |
0 commit comments