blob: 60c6651919ed0a30c624ab46d21fbca02131b44d [file] [log] [blame]
Zack Williamsa2763112017-01-03 11:38:38 -07001---
2# compute-node-enable/tasks/main.yml
3
4- name: Load TOSCA to add OpenStack compute nodes
Zack Williamsc989f262017-05-11 13:02:59 -07005 command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} {{ head_cord_profile_dir }}/{{ item }}"
Zack Williams2478b302017-02-14 10:42:55 -07006 with_items:
7 - openstack.yaml
8 - openstack-compute.yaml
Zack Williamsa2763112017-01-03 11:38:38 -07009 tags:
10 - skip_ansible_lint # TOSCA loading should be idempotent
11
12- name: Pause to work around race in VTN or ONOS synchronizers
13 pause:
14 seconds: 20
15
16- name: Load TOSCA to enable VTN on OpenStack compute nodes
Zack Williamsc989f262017-05-11 13:02:59 -070017 command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} {{ head_cord_profile_dir }}/{{ item }}"
Zack Williams2478b302017-02-14 10:42:55 -070018 with_items:
19 - vtn-service.yaml
20 - openstack-compute-vtn.yaml
Zack Williamsa2763112017-01-03 11:38:38 -070021 tags:
22 - skip_ansible_lint # TOSCA loading should be idempotent
23