Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | |
| 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 | |
| 16 | |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 17 | --- |
| 18 | # xos-test-restore-db/tasks/main.yml |
| 19 | |
| 20 | - name: Restore core initial data from fixture |
| 21 | command: python /opt/xos/manage.py --noobserver loaddata /opt/xos/core/fixtures/core_initial_data.json |
| 22 | tags: |
| 23 | - skip_ansible_lint # testing only |
| 24 | |
| 25 | |
| 26 | - name: Start loading XOS config |
| 27 | command: "python /opt/xos/tosca/run.py none /opt/cord_profile/{{ item }}" |
| 28 | with_items: |
| 29 | - "fixtures.yaml" |
| 30 | - "deployment.yaml" |
| 31 | tags: |
| 32 | - skip_ansible_lint # TOSCA loading should be idempotent |
| 33 | |
| 34 | |
| 35 | - name: Continue loading XOS config (as admin user) |
| 36 | command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/{{ item }}" |
| 37 | with_items: |
| 38 | - "sample.yaml" |
| 39 | - "management-net.yaml" |
| 40 | - "services.yaml" |
| 41 | - "volt-devices.yaml" |
| 42 | tags: |
| 43 | - skip_ansible_lint # TOSCA loading should be idempotent |
| 44 | |