blob: 59325e4803f88c3cb39c310dc126346f88266009 [file] [log] [blame]
Zack Williamsb273a422016-05-18 13:33:00 -07001---
Zack Williamsd31bbc92016-05-20 11:43:18 -07002# docker-compose/tasks/main.yml
Zack Williamsb273a422016-05-18 13:33:00 -07003
Zack Williamsd31bbc92016-05-20 11:43:18 -07004- name: Wait for onos_setup_playbook to complete
5 async_status: jid={{ onos_setup_playbook.ansible_job_id }}
6 register: onos_setup_playbook_result
7 until: onos_setup_playbook_result.finished
8 delay: 10
9 retries: 120
Zack Williamsb273a422016-05-18 13:33:00 -070010
Zack Williamsd31bbc92016-05-20 11:43:18 -070011- name: Copy SSL Certs to ONOS so docker-compose can find it
Zack Williams644df282016-05-20 13:13:46 -070012 command: ansible onos-cord-1 -u ubuntu -m copy \
Zack Williams201467a2016-05-20 13:30:10 -070013 -a "src=/usr/local/share/ca-certificates/keystone_juju_ca_cert.crt dest=~/cord/xos-certs.crt"
Zack Williamsb273a422016-05-18 13:33:00 -070014
Zack Williamsd31bbc92016-05-20 11:43:18 -070015- name: Build ONOS image with docker-compose
Zack Williams644df282016-05-20 13:13:46 -070016 command: ansible onos-cord-1 -u ubuntu -m command \
Zack Williamsd31bbc92016-05-20 11:43:18 -070017 -a "docker-compose build chdir=cord"
Zack Williams2e5d51a2016-05-18 16:45:22 -070018
Zack Williamsd31bbc92016-05-20 11:43:18 -070019- name: Start ONOS
Andy Bavierf69e77c2016-06-28 17:19:33 -040020 command: ansible onos-cord-1:onos-fabric-1 -u ubuntu -m command \
Zack Williamsd31bbc92016-05-20 11:43:18 -070021 -a "docker-compose up -d chdir=cord"
22
23- name: Wait for xos_setup_playbook to complete
24 async_status: jid={{ xos_setup_playbook.ansible_job_id }}
25 register: xos_setup_playbook_result
26 until: xos_setup_playbook_result.finished
27 delay: 10
28 retries: 120
29
30- name: Copy admin-openrc.sh into XOS container
Zack Williams644df282016-05-20 13:13:46 -070031 command: ansible xos-1 -u ubuntu -m copy \
Scott Baker333a3152016-06-29 08:58:42 -070032 -a "src=~/admin-openrc.sh dest=~/service-profile/{{ xos_configuration }}"
Zack Williamsb273a422016-05-18 13:33:00 -070033