blob: 84d0edd154a7def3a2945fc4789255a8bf800f94 [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 \
Andy Bavier3a1d0642016-07-01 14:11:39 -040032 -a "src=~/admin-openrc.sh dest={{ service_profile_repo_dest }}/{{ xos_configuration }}"
Zack Williamsa3e40562016-07-05 12:05:39 -070033
34- name: Wait for test client to complete installation
David K. Bainbridge467591e2016-07-06 18:49:55 -070035 when: test_client_install is defined and test_client_install
Zack Williamsa3e40562016-07-05 12:05:39 -070036 async_status: jid={{ test_client_playbook.ansible_job_id }}
37 register: test_client_playbook_result
38 until: test_client_playbook_result.finished
39 delay: 10
40 retries: 120
41