4 - name: Generate SSH key for stack if missing
5 shell: test -e ~/.ssh/id_rsa || ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
6 - name: Fix ssh key for stack
7 shell: restorecon -r /home/stack
10 path: /home/stack/nics
16 src: /root/.ssh/id_rsa.pub
17 dest: /home/stack/jumphost_id_rsa.pub
22 src: "{{ apex_temp_dir }}/{{ item }}.yaml"
23 dest: "/home/stack/nics/{{ item }}.yaml"
32 regexp: 'Defaults\s*requiretty'
35 - name: openstack-configs undercloud
36 shell: openstack-config --set undercloud.conf DEFAULT {{ item }}
37 with_items: "{{ undercloud_config }}"
38 - name: openstack-configs ironic
39 shell: openstack-config --set /etc/ironic/ironic.conf {{ item }}
41 with_items: "{{ ironic_config }}"
43 path: /usr/lib/python2.7/site-packages/ironic/common/pxe_utils.py
44 regexp: '_link_ip_address_pxe_configs'
45 line: ' _link_mac_pxe_configs(task)'
48 - name: undercloud install
49 shell: openstack undercloud install &> apex-undercloud-install.log
53 - name: undercloud install retry
54 shell: openstack undercloud install >> apex-undercloud-install.log 2>&1
58 - name: fetch undercloud log
60 src: /home/stack/apex-undercloud-install.log
61 dest: "{{ apex_temp_dir }}/"
63 - name: openstack-configs nova
64 shell: openstack-config --set /etc/nova/nova.conf DEFAULT {{ item }}
66 with_items: "{{ nova_config }}"
67 - name: restart nova services
73 - openstack-nova-conductor
74 - openstack-nova-compute
76 - openstack-nova-scheduler
77 - name: openstack-configs neutron
78 shell: openstack-config --set /etc/neutron/neutron.conf DEFAULT {{ item }}
80 with_items: "{{ neutron_config }}"
81 - name: restart neutron services
89 - name: configure external network vlan ifcfg
91 src: external_vlan_ifcfg.yml.j2
92 dest: "/etc/sysconfig/network-scripts/ifcfg-vlan{{ external_network.vlan }}"
98 - external_network.vlan != "native"
99 - external_network.enabled
100 - name: bring up vlan ifcfg
101 shell: "ifup vlan{{ external_network.vlan }}"
104 - external_network.vlan != "native"
105 - external_network.enabled
106 - name: assign IP to native eth2
107 shell: ip a a {{ external_network.ip }}/{{ external_network.prefix }} dev eth2
110 - external_network.vlan == "native"
111 - external_network.enabled
113 - name: bring up eth2
114 shell: ip link set up dev eth2
116 - external_network.vlan == "native"
117 - external_network.enabled
120 - name: assign IP to native eth0 if aarch64
121 shell: ip a a {{ external_network.ip }}/{{ external_network.prefix }} dev eth0
124 - external_network.vlan == "native"
125 - external_network.enabled
127 - name: bring up eth0 if aarch64
128 shell: ip link set up dev eth0
130 - external_network.vlan == "native"
131 - external_network.enabled
134 - name: fetch storage environment file
136 src: /usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml
137 dest: "{{ apex_temp_dir }}/"
140 - include: undercloud_aarch64.yml