fd34f27ec2
The change modifies the ceilometer template tasks such that its now using the config_template action plugin. This change will make so that OpenStack services can be dynamically updated, for any of its config files, by a deployer, at run time, without requiring the need to modify the in tree templates or defaults. Partially implements: blueprint tunable-openstack-configuration Change-Id: Ia88064e2bf870e1bf7659408b84e8ac1be46b803
55 lines
2.0 KiB
YAML
55 lines
2.0 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: Copy ceilometer config
|
|
config_template:
|
|
src: "{{ item.src }}"
|
|
dest: "{{ item.dest }}"
|
|
owner: "{{ ceilometer_system_user_name }}"
|
|
group: "{{ ceilometer_system_group_name }}"
|
|
mode: "0644"
|
|
config_overrides: "{{ item.config_overrides }}"
|
|
config_type: "{{ item.config_type }}"
|
|
with_items:
|
|
- src: "ceilometer.conf.j2"
|
|
dest: "/etc/ceilometer/ceilometer.conf"
|
|
config_overrides: "{{ ceilometer_ceilometer_conf_overrides }}"
|
|
config_type: "ini"
|
|
- src: "api_paste.ini.j2"
|
|
dest: "/etc/ceilometer/api_paste.ini"
|
|
config_overrides: "{{ ceilometer_api_paste_ini_overrides }}"
|
|
config_type: "ini"
|
|
- src: "event_pipeline.yaml.j2"
|
|
dest: "/etc/ceilometer/event_pipeline.yaml"
|
|
config_overrides: "{{ ceilometer_event_pipeline_yaml_overrides }}"
|
|
config_type: "yaml"
|
|
- src: "event_definitions.yaml.j2"
|
|
dest: "/etc/ceilometer/event_definitions.yaml"
|
|
config_overrides: "{{ ceilometer_event_definitions_yaml_overrides }}"
|
|
config_type: "yaml"
|
|
- src: "pipeline.yaml.j2"
|
|
dest: "/etc/ceilometer/pipeline.yaml"
|
|
config_overrides: "{{ ceilometer_pipeline_yaml_overrides }}"
|
|
config_type: "yaml"
|
|
- src: "policy.json"
|
|
dest: "/etc/ceilometer/policy.json"
|
|
config_overrides: "{{ ceilometer_policy_overrides }}"
|
|
config_type: "json"
|
|
notify: Restart ceilometer services
|
|
tags:
|
|
- ceilometer-config
|
|
- ceilometer-post-install
|
|
|