
This commit conditionally allows the os_heat role to install build and deploy within a venv. This is the new default behavior of the role however the functionality can be disabled. Change-Id: I55c0ad20d67c9d97df9d11d01e4c63fa0a904188 Implements: blueprint enable-venv-support-within-the-roles Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
70 lines
2.3 KiB
YAML
70 lines
2.3 KiB
YAML
---
|
|
# Copyright 2014, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- name: Drop heat Config(s)
|
|
config_template:
|
|
src: "{{ item.src }}"
|
|
dest: "{{ item.dest }}"
|
|
owner: "{{ heat_system_user_name }}"
|
|
group: "{{ heat_system_group_name }}"
|
|
mode: "0644"
|
|
config_overrides: "{{ item.config_overrides }}"
|
|
config_type: "{{ item.config_type }}"
|
|
with_items:
|
|
- src: "heat.conf.j2"
|
|
dest: "/etc/heat/heat.conf"
|
|
config_overrides: "{{ heat_heat_conf_overrides }}"
|
|
config_type: "ini"
|
|
- src: "api-paste.ini.j2"
|
|
dest: "/etc/heat/api-paste.ini"
|
|
config_overrides: "{{ heat_api_paste_ini_overrides }}"
|
|
config_type: "ini"
|
|
- src: "environment.d/default.yaml.j2"
|
|
dest: "/etc/heat/environment.d/default.yaml"
|
|
config_overrides: "{{ heat_default_yaml_overrides }}"
|
|
config_type: "yaml"
|
|
- src: "templates/AWS_CloudWatch_Alarm.yaml.j2"
|
|
dest: "/etc/heat/templates/AWS_CloudWatch_Alarm.yaml"
|
|
config_overrides: "{{ heat_aws_cloudwatch_alarm_yaml_overrides }}"
|
|
config_type: "yaml"
|
|
- src: "templates/AWS_RDS_DBInstance.yaml.j2"
|
|
dest: "/etc/heat/templates/AWS_RDS_DBInstance.yaml"
|
|
config_overrides: "{{ heat_aws_rds_dbinstance_yaml_overrides }}"
|
|
config_type: "yaml"
|
|
- src: "policy.json.j2"
|
|
dest: "/etc/heat/policy.json"
|
|
config_overrides: "{{ heat_policy_overrides }}"
|
|
config_type: "json"
|
|
notify:
|
|
- Restart heat services
|
|
tags:
|
|
- heat-config
|
|
|
|
- name: Get heat command path
|
|
command: which heat
|
|
register: heat_command_path
|
|
when:
|
|
- not heat_venv_enabled | bool
|
|
tags:
|
|
- heat-command-bin
|
|
|
|
- name: Set heat command path
|
|
set_fact:
|
|
heat_bin: "{{ heat_command_path.stdout | dirname }}"
|
|
when:
|
|
- not heat_venv_enabled | bool
|
|
tags:
|
|
- heat-command-bin
|