blob: 353e1990c7570365bb3c4c7acc4b6edd9eeea060 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
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 Bakere0a80892016-11-23 12:07:07 -080017---
Zack Williamsa2763112017-01-03 11:38:38 -070018# xos-config/tasks/main.yml
Scott Bakere0a80892016-11-23 12:07:07 -080019
Andy Bavier9e7d54a2017-04-17 11:37:02 -040020- name: Bootstrap XOS database - create site, deployment, admin user
21 command: "python /opt/xos/tosca/run.py none /opt/cord_profile/{{ item }}"
22 with_items:
23 - "fixtures.yaml"
24 - "deployment.yaml"
25 tags:
26 - skip_ansible_lint # TOSCA loading should be idempotent
27
Zack Williams3eca6472017-06-22 18:18:38 -070028- name: Configure XOS with OpenStack config
29 when: use_openstack
30 command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/{{ item }}"
31 with_items:
32 - openstack.yaml
33 tags:
34 - skip_ansible_lint # TOSCA loading should be idempotent
35
Zack Williamsa2763112017-01-03 11:38:38 -070036- name: Configure XOS with profile specific TOSCA
37 command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/{{ item }}"
38 with_items: "{{ xos_tosca_config_templates }}"
39 tags:
40 - skip_ansible_lint # TOSCA loading should be idempotent
Scott Bakere0a80892016-11-23 12:07:07 -080041