blob: 0c1fd39aa9135be0de471083f6d63d8e6287621e [file] [log] [blame]
Zack Williamsa2763112017-01-03 11:38:38 -07001---
2# compute-node-enable-maas/tasks/main.yml
3
Zack Williamsc989f262017-05-11 13:02:59 -07004- name: Fetch generated compute node onboarding TOSCA files
Zack Williamsa2763112017-01-03 11:38:38 -07005 fetch:
Zack Williamsc989f262017-05-11 13:02:59 -07006 src: "{{ head_cord_profile_dir + '/' + item }}"
Zack Williamsa2763112017-01-03 11:38:38 -07007 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