blob: b14e1b95d731f8c312c0ceefe4e3a48afa060d91 [file] [log] [blame]
Fatih Degirmenci464b1922019-06-23 10:20:54 +00001---
2# ============LICENSE_START=======================================================
3# Copyright (C) 2019 The Nordix Foundation. All rights reserved.
4# ================================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19
Fatih Degirmencied945712020-01-12 15:07:51 +000020- name: Copy Heat templates and IDF file
Fatih Degirmenci464b1922019-06-23 10:20:54 +000021 copy:
22 src: "{{ item }}"
Fatih Degirmencied945712020-01-12 15:07:51 +000023 dest: "{{ config_path }}"
Fatih Degirmenci464b1922019-06-23 10:20:54 +000024 with_items:
25 - heat-template.yaml
26 - heat-server.yaml
Fatih Degirmenci2da7c712019-06-28 21:38:03 +000027 - heat-jumphost.yaml
Fatih Degirmencied945712020-01-12 15:07:51 +000028 - heat-idf.yaml
Fatih Degirmenci464b1922019-06-23 10:20:54 +000029
30- name: Get Heat environment file
31 get_url:
32 url: "{{ heat_env_file }}"
Fatih Degirmencied945712020-01-12 15:07:51 +000033 dest: "{{ config_path }}/heat-environment.yaml"
Fatih Degirmenci464b1922019-06-23 10:20:54 +000034 mode: 0644
35
Fatih Degirmencied945712020-01-12 15:07:51 +000036- name: Remove existing Heat IDF symlink
37 file:
38 path: "{{ inventory_path }}/group_vars/idf.yaml"
39 state: absent
40 ignore_errors: true
41
42# NOTE: Heat IDF file is linked from config_path to inventory
43# folder in order to ensure we have single IDF
44- name: Link collected Heat IDF file to inventory folder
45 file:
46 src: "{{ config_path }}/heat-idf.yaml"
47 dest: "{{ inventory_path }}/group_vars/all/idf.yaml"
48 state: link
49 force: true
50
Fatih Degirmenci464b1922019-06-23 10:20:54 +000051# vim: set ts=2 sw=2 expandtab: