Zack Williams | b273a42 | 2016-05-18 13:33:00 -0700 | [diff] [blame] | 1 | --- |
Zack Williams | d31bbc9 | 2016-05-20 11:43:18 -0700 | [diff] [blame] | 2 | # docker-compose/tasks/main.yml |
Zack Williams | b273a42 | 2016-05-18 13:33:00 -0700 | [diff] [blame] | 3 | |
Zack Williams | d31bbc9 | 2016-05-20 11:43:18 -0700 | [diff] [blame] | 4 | - 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 Williams | b273a42 | 2016-05-18 13:33:00 -0700 | [diff] [blame] | 10 | |
Zack Williams | d31bbc9 | 2016-05-20 11:43:18 -0700 | [diff] [blame] | 11 | - name: Copy SSL Certs to ONOS so docker-compose can find it |
Zack Williams | 644df28 | 2016-05-20 13:13:46 -0700 | [diff] [blame] | 12 | command: ansible onos-cord-1 -u ubuntu -m copy \ |
Zack Williams | 201467a | 2016-05-20 13:30:10 -0700 | [diff] [blame] | 13 | -a "src=/usr/local/share/ca-certificates/keystone_juju_ca_cert.crt dest=~/cord/xos-certs.crt" |
Zack Williams | b273a42 | 2016-05-18 13:33:00 -0700 | [diff] [blame] | 14 | |
Zack Williams | d31bbc9 | 2016-05-20 11:43:18 -0700 | [diff] [blame] | 15 | - name: Build ONOS image with docker-compose |
Zack Williams | 644df28 | 2016-05-20 13:13:46 -0700 | [diff] [blame] | 16 | command: ansible onos-cord-1 -u ubuntu -m command \ |
Zack Williams | d31bbc9 | 2016-05-20 11:43:18 -0700 | [diff] [blame] | 17 | -a "docker-compose build chdir=cord" |
Zack Williams | 2e5d51a | 2016-05-18 16:45:22 -0700 | [diff] [blame] | 18 | |
Zack Williams | d31bbc9 | 2016-05-20 11:43:18 -0700 | [diff] [blame] | 19 | - name: Start ONOS |
Zack Williams | 644df28 | 2016-05-20 13:13:46 -0700 | [diff] [blame] | 20 | command: ansible onos-cord-1 -u ubuntu -m command \ |
Zack Williams | d31bbc9 | 2016-05-20 11:43:18 -0700 | [diff] [blame] | 21 | -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 Williams | 644df28 | 2016-05-20 13:13:46 -0700 | [diff] [blame] | 31 | command: ansible xos-1 -u ubuntu -m copy \ |
Zack Williams | d929cc7 | 2016-05-20 13:05:09 -0700 | [diff] [blame] | 32 | -a "src=~/admin-openrc.sh dest=~/xos/xos/configurations/{{ xos_configuration }}" |
Zack Williams | b273a42 | 2016-05-18 13:33:00 -0700 | [diff] [blame] | 33 | |