Zack Williams | fc6b64b | 2017-12-22 15:57:50 -0700 | [diff] [blame] | 1 | --- |
Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 16 | # xos-ready/tasks/main.yml |
| 17 | |
Zack Williams | fc6b64b | 2017-12-22 15:57:50 -0700 | [diff] [blame] | 18 | - name: Wait for XOS Chameleon to be ready after service onboarding |
| 19 | uri: |
| 20 | url: "http://localhost:{{ xos_chameleon_port }}/xosapi/v1/modeldefs" |
| 21 | method: GET |
| 22 | status_code: 200 |
| 23 | return_content: yes |
| 24 | register: xosready_chameleon |
| 25 | until: xosready_chameleon.content.find("items") != -1 |
| 26 | retries: 40 |
| 27 | delay: 15 |
| 28 | |
| 29 | - name: Wait for XOS TOSCA engine to be ready after service onboarding |
| 30 | uri: |
| 31 | url: "{{ xos_tosca_url }}" |
| 32 | method: GET |
| 33 | status_code: 200 |
Kailash Khalasi | 7278e09 | 2018-02-01 14:43:00 -0800 | [diff] [blame] | 34 | return_content: yes |
| 35 | register: xosready_tosca |
| 36 | until: xosready_tosca.status == 200 |
Zack Williams | fc6b64b | 2017-12-22 15:57:50 -0700 | [diff] [blame] | 37 | retries: 40 |
| 38 | delay: 15 |