| {%- set test_public_key = config.underlay.ssh_keys[0]["public"] %} |
| |
| {% from 'physical-mcp-offline-vxlan/underlay.yaml' import HOSTNAME_CFG01 with context %} |
| {% from 'physical-mcp-offline-vxlan/underlay.yaml' import ETH0_IP_ADDRESS_CFG01 with context %} |
| |
| {% import 'shared-maas.yaml' as SHARED_MAAS with context %} |
| |
| - description: Wait while a salt-minion is started |
| cmd: systemctl is-active salt-minion |
| node_name: {{ HOSTNAME_CFG01 }} |
| retry: {count: 10, delay: 10} |
| skip_fail: false |
| |
| - description: Refresh pillars on master node |
| cmd: sleep 90; salt-call --hard-crash --state-output=mixed --state-verbose=False saltutil.refresh_pillar |
| node_name: {{ HOSTNAME_CFG01 }} |
| retry: {count: 1, delay: 5} |
| skip_fail: false |
| |
| - description: Sync all salt resources on master node |
| cmd: sleep 60; salt-call --hard-crash --state-output=mixed --state-verbose=False saltutil.sync_all && sleep 5 |
| node_name: {{ HOSTNAME_CFG01 }} |
| retry: {count: 1, delay: 5} |
| skip_fail: false |
| |
| - description: Setup NTP |
| cmd: salt-call --hard-crash --state-output=mixed --state-verbose=False state.sls ntp.server |
| node_name: {{ HOSTNAME_CFG01 }} |
| retry: {count: 1, delay: 5} |
| skip_fail: false |
| |
| - description: Wait until salt is up |
| cmd: sleep 60 |
| node_name: {{ HOSTNAME_CFG01 }} |
| retry: {count: 1, delay: 5} |
| skip_fail: false |
| |
| {{ SHARED_MAAS.AUTH_IN_MAAS() }} |
| {{ SHARED_MAAS.SET_LOCAL_DNS() }} |
| {{ SHARED_MAAS.ADD_ROOT_SSH_KEY_TO_NODES() }} |
| {{ SHARED_MAAS.ADD_TEST_SSH_KEY_TO_NODES(test_public_key) }} |
| {{ SHARED_MAAS.ADD_ROOT_PUB_SSH_TO_MASS() }} |
| {{ SHARED_MAAS.COMMISSION_VMS() }} |
| {{ SHARED_MAAS.DEPLOY_VMS() }} |
| {{ SHARED_MAAS.CONFIG_MACHINES(target='I@salt:control or I@nova:compute or I@ceph:osd or I@neutron:gateway') }} |
| {{ SHARED_MAAS.ADD_ROOT_SSH_KEY_TO_NODES() }} |
| {{ SHARED_MAAS.ADD_TEST_SSH_KEY_TO_NODES(test_public_key) }} |