Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 1 | --- |
| 2 | # compute-node-enable-maas/tasks/main.yml |
| 3 | |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 4 | - name: Fetch generated compute node onboarding TOSCA files |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 5 | fetch: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 6 | src: "{{ head_cord_profile_dir + '/' + item }}" |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 7 | dest: "/tmp/{{ item }}" |
| 8 | flat: yes |
| 9 | fail_on_missing: yes |
| 10 | with_items: |
| 11 | - openstack.yaml |
| 12 | - vtn-service.yaml |
| 13 | - openstack-compute.yaml |
| 14 | - openstack-compute-vtn.yaml |
| 15 | |
| 16 | - name: Load TOSCA to add OpenStack compute nodes, over REST |
| 17 | xostosca: |
| 18 | url: "http://xos.{{ site_suffix }}:{{ xos_ui_port }}/api/utility/tosca/run/" |
| 19 | user: "{{ xos_admin_user }}" |
| 20 | password: "{{ xos_admin_pass }}" |
| 21 | recipe: "{{ lookup('file', '/tmp/' + item ) }}" |
| 22 | with_items: |
| 23 | - openstack.yaml |
| 24 | - openstack-compute.yaml |
| 25 | |
| 26 | - name: Pause to work around race in VTN or ONOS synchronizers |
| 27 | pause: |
| 28 | seconds: 20 |
| 29 | |
| 30 | - name: Load TOSCA to enable VTN on OpenStack compute nodes, over REST |
| 31 | xostosca: |
| 32 | url: "http://xos.{{ site_suffix }}:{{ xos_ui_port }}/api/utility/tosca/run/" |
| 33 | user: "{{ xos_admin_user }}" |
| 34 | password: "{{ xos_admin_pass }}" |
| 35 | recipe: "{{ lookup('file', '/tmp/' + item ) }}" |
| 36 | with_items: |
| 37 | - vtn-service.yaml |
| 38 | - openstack-compute-vtn.yaml |
| 39 | |