blob: 164155e6388d4aebc6f9703f773ee1043caefc37 [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 }}
Scott Bakere709ea92016-07-20 22:41:48 -070023 sudo: true
Scott Bakerf93a06c2016-07-11 17:04:49 -070024
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 Bakere709ea92016-07-20 22:41:48 -070027 sudo: true
Scott Bakerf93a06c2016-07-11 17:04:49 -070028
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) }}