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 | |
Scott Baker | e0a8089 | 2016-11-23 12:07:07 -0800 | [diff] [blame] | 17 | --- |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 18 | # xos-config/tasks/main.yml |
Scott Baker | e0a8089 | 2016-11-23 12:07:07 -0800 | [diff] [blame] | 19 | |
Matteo Scandolo | b92469d | 2017-07-28 17:32:00 -0700 | [diff] [blame] | 20 | # TODO move this to the TOSCA container |
| 21 | |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 22 | - name: Bootstrap XOS database - create site, deployment, admin user |
Matteo Scandolo | b92469d | 2017-07-28 17:32:00 -0700 | [diff] [blame] | 23 | command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/{{ item }}" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 24 | with_items: |
| 25 | - "fixtures.yaml" |
| 26 | - "deployment.yaml" |
| 27 | tags: |
| 28 | - skip_ansible_lint # TOSCA loading should be idempotent |
| 29 | |
Zack Williams | 3eca647 | 2017-06-22 18:18:38 -0700 | [diff] [blame] | 30 | - name: Configure XOS with OpenStack config |
Zack Williams | 3eca647 | 2017-06-22 18:18:38 -0700 | [diff] [blame] | 31 | command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/{{ item }}" |
| 32 | with_items: |
| 33 | - openstack.yaml |
| 34 | tags: |
| 35 | - skip_ansible_lint # TOSCA loading should be idempotent |
| 36 | |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 37 | - name: Configure XOS with profile specific TOSCA |
| 38 | command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/{{ item }}" |
| 39 | with_items: "{{ xos_tosca_config_templates }}" |
| 40 | tags: |
| 41 | - skip_ansible_lint # TOSCA loading should be idempotent |
Scott Baker | e0a8089 | 2016-11-23 12:07:07 -0800 | [diff] [blame] | 42 | |