Scott Baker | f93a06c | 2016-07-11 17:04:49 -0700 | [diff] [blame] | 1 | --- |
| 2 | |
| 3 | - name: remove old docker-compose-bootstrap file |
| 4 | file: |
| 5 | path=onboarding-docker-compose/docker-compose.yml |
| 6 | state=absent |
| 7 | |
| 8 | - name: run docker-compose to start bootstrapping |
| 9 | shell: CONFIG_DIR={{ config_dir }} docker-compose -p {{ bootstrap_project }} -f {{ bootstrap_yml }} up -d |
| 10 | chdir={{ config_dir }} |
| 11 | sudo: true |
| 12 | |
| 13 | - name: wait for XOS bootstrap_ui to come online |
| 14 | uri: |
| 15 | url: "http://0.0.0.0:{{ bootstrap_port }}/" |
| 16 | register: result |
| 17 | retries: 120 |
| 18 | delay: 1 |
| 19 | until: result['status']|default(0)==200 |
| 20 | |
| 21 | - name: add fixtures |
| 22 | shell: docker-compose -p {{ bootstrap_project }} -f {{ bootstrap_yml }} run xos_bootstrap_ui python /opt/xos/tosca/run.py none - < {{ fixtures_yml }} |
Scott Baker | e709ea9 | 2016-07-20 22:41:48 -0700 | [diff] [blame] | 23 | sudo: true |
Scott Baker | f93a06c | 2016-07-11 17:04:49 -0700 | [diff] [blame] | 24 | |
| 25 | - name: add mydeployment |
| 26 | shell: docker-compose -p {{ bootstrap_project }} -f {{ bootstrap_yml }} run xos_bootstrap_ui python /opt/xos/tosca/run.py none - < {{ mydeployment_yml }} |
Scott Baker | e709ea9 | 2016-07-20 22:41:48 -0700 | [diff] [blame] | 27 | sudo: true |
Scott Baker | f93a06c | 2016-07-11 17:04:49 -0700 | [diff] [blame] | 28 | |
| 29 | - name: run tosca recipe xos.yaml |
| 30 | xostosca: |
| 31 | port={{ bootstrap_port }} |
| 32 | username={{ bootstrap_user }} |
| 33 | password={{ bootstrap_password }} |
| 34 | recipe={{ lookup('file', xos_tosca_yml) }} |