blob: b1a2e036e19b14b98f97024e47f7bbb18e8e3285 [file] [log] [blame]
Scott Bakerf93a06c2016-07-11 17:04:49 -07001---
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 }}
23
24- name: add mydeployment
25 shell: docker-compose -p {{ bootstrap_project }} -f {{ bootstrap_yml }} run xos_bootstrap_ui python /opt/xos/tosca/run.py none - < {{ mydeployment_yml }}
26
27- name: run tosca recipe xos.yaml
28 xostosca:
29 port={{ bootstrap_port }}
30 username={{ bootstrap_user }}
31 password={{ bootstrap_password }}
32 recipe={{ lookup('file', xos_tosca_yml) }}