Add pipeline file into ceilometer-central and ceilomter-compute node
Closes-Bug: #1704915 Change-Id: If85cd7bc8547494900c8f6c32dfd1c1f2179f928
This commit is contained in:
parent
a17315e39b
commit
d1d726e937
@ -29,6 +29,7 @@
|
||||
service: "{{ ceilometer_services[service_name] }}"
|
||||
config_json: "{{ ceilometer_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
ceilometer_conf: "{{ ceilometer_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
ceilometer_pipeline: "{{ ceilometer_pipelines.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
policy_json: "{{ ceilometer_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
ceilometer_notification_container: "{{ check_ceilometer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
panko_conf: "{{ panko_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
@ -46,6 +47,7 @@
|
||||
or ceilometer_conf.changed | bool
|
||||
or policy_json.changed | bool
|
||||
or ceilometer_events.changed | bool
|
||||
or ceilometer_pipeline.changed | bool
|
||||
or ceilometer_notification_container.changed | bool
|
||||
or panko_conf.changed | bool
|
||||
|
||||
@ -55,6 +57,7 @@
|
||||
service: "{{ ceilometer_services[service_name] }}"
|
||||
config_json: "{{ ceilometer_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
ceilometer_conf: "{{ ceilometer_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
ceilometer_pipeline: "{{ ceilometer_pipelines.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
policy_json: "{{ ceilometer_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
ceilometer_central_container: "{{ check_ceilometer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
kolla_docker:
|
||||
@ -69,6 +72,7 @@
|
||||
- service.enabled | bool
|
||||
- config_json.changed | bool
|
||||
or ceilometer_conf.changed | bool
|
||||
or ceilometer_pipeline.changed | bool
|
||||
or policy_json.changed | bool
|
||||
or ceilometer_central_container.changed | bool
|
||||
|
||||
@ -103,6 +107,7 @@
|
||||
service: "{{ ceilometer_services[service_name] }}"
|
||||
config_json: "{{ ceilometer_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
ceilometer_conf: "{{ ceilometer_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
ceilometer_pipeline: "{{ ceilometer_pipelines.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
policy_json: "{{ ceilometer_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
ceilometer_compute_container: "{{ check_ceilometer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
kolla_docker:
|
||||
@ -118,5 +123,6 @@
|
||||
- service.enabled | bool
|
||||
- config_json.changed | bool
|
||||
or ceilometer_conf.changed | bool
|
||||
or ceilometer_pipeline.changed | bool
|
||||
or policy_json.changed | bool
|
||||
or ceilometer_compute_container.changed | bool
|
||||
|
@ -67,7 +67,7 @@
|
||||
- Restart ceilometer-collector container
|
||||
- Restart ceilometer-compute container
|
||||
|
||||
- name: Copying over event and pipeline yaml for notification service
|
||||
- name: Copying over event yaml for notification service
|
||||
vars:
|
||||
service: "{{ ceilometer_services['ceilometer-notification'] }}"
|
||||
template:
|
||||
@ -80,10 +80,27 @@
|
||||
with_items:
|
||||
- "event_definitions.yaml"
|
||||
- "event_pipeline.yaml"
|
||||
- "pipeline.yaml"
|
||||
notify:
|
||||
- Restart ceilometer-notification container
|
||||
|
||||
- name: Copying over pipeline.yaml file
|
||||
vars:
|
||||
services_require_pipeline:
|
||||
- ceilometer-compute
|
||||
- ceilometer-central
|
||||
- ceilometer-notification
|
||||
template:
|
||||
src: "pipeline.yaml.j2"
|
||||
dest: "{{ node_config_directory }}/{{ item.key }}/pipeline.yaml"
|
||||
register: ceilometer_pipelines
|
||||
when:
|
||||
- inventory_hostname in groups[item.value.group]
|
||||
- item.value.enabled | bool
|
||||
- item.key in services_require_pipeline
|
||||
with_dict: "{{ ceilometer_services }}"
|
||||
notify:
|
||||
- "Restart {{ item.key }} container"
|
||||
|
||||
- name: Copying over panko.conf
|
||||
vars:
|
||||
service_require_panko_conf:
|
||||
|
@ -13,6 +13,12 @@
|
||||
"owner": "ceilometer",
|
||||
"perm": "0600",
|
||||
"optional": true
|
||||
},
|
||||
{
|
||||
"source": "{{ container_config_directory }}/pipeline.yaml",
|
||||
"dest": "/etc/ceilometer/pipeline.yaml",
|
||||
"owner": "ceilometer",
|
||||
"perm": "0600"
|
||||
}
|
||||
],
|
||||
"permissions": [
|
||||
|
@ -13,6 +13,12 @@
|
||||
"owner": "ceilometer",
|
||||
"perm": "0600",
|
||||
"optional": true
|
||||
},
|
||||
{
|
||||
"source": "{{ container_config_directory }}/pipeline.yaml",
|
||||
"dest": "/etc/ceilometer/pipeline.yaml",
|
||||
"owner": "ceilometer",
|
||||
"perm": "0600"
|
||||
}
|
||||
],
|
||||
"permissions": [
|
||||
|
Loading…
Reference in New Issue
Block a user