Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
b69aa4ea
Commit
b69aa4ea
authored
1 year ago
by
Zuul
Committed by
Gerrit Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "ceilometer: process custom event_pipeline.yaml with merge_yaml"
parents
ff9d69d2
50abf90f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/roles/ceilometer/tasks/config.yml
+5
-26
5 additions, 26 deletions
ansible/roles/ceilometer/tasks/config.yml
releasenotes/notes/ceilometer-merge-yaml-event-pipeline-bee198be62ebd6a9.yaml
+8
-0
8 additions, 0 deletions
...eilometer-merge-yaml-event-pipeline-bee198be62ebd6a9.yaml
with
13 additions
and
26 deletions
ansible/roles/ceilometer/tasks/config.yml
+
5
−
26
View file @
b69aa4ea
...
...
@@ -252,41 +252,20 @@
notify
:
-
Restart ceilometer-notification container
-
name
:
Check custom event_pipeline.yaml exists
stat
:
path
:
"
{{
node_custom_config
}}/ceilometer/event_pipeline.yaml"
delegate_to
:
localhost
register
:
ceilometer_event_pipeline_file
-
name
:
Copying over event_pipeline.yaml
vars
:
service
:
"
{{
ceilometer_services['ceilometer-notification']
}}"
copy
:
src
:
"
{{
node_custom_config
}}/ceilometer/event_pipeline.yaml"
dest
:
"
{{
node_config_directory
}}/ceilometer-notification/event_pipeline.yaml"
force
:
True
mode
:
"
0660"
become
:
true
register
:
ceilometer_event_pipeline_overwriting
when
:
-
ceilometer_event_pipeline_file.stat.exists
-
inventory_hostname in groups[service.group]
-
service.enabled | bool
notify
:
-
Restart ceilometer-notification container
-
name
:
Copying over event_pipeline.yaml for notification service
vars
:
service
:
"
{{
ceilometer_services['ceilometer-notification']
}}"
template
:
src
:
"
event_pipeline.yaml.j2"
merge_yaml
:
sources
:
-
"
{{
role_path
}}/templates/event_pipeline.yaml.j2"
-
"
{{
node_custom_config
}}/ceilometer/event_pipeline.yaml"
-
"
{{
node_custom_config
}}/ceilometer/{{
inventory_hostname
}}/event_pipeline.yaml"
dest
:
"
{{
node_config_directory
}}/ceilometer-notification/event_pipeline.yaml"
mode
:
"
0660"
become
:
true
when
:
-
inventory_hostname in groups[service.group]
-
service.enabled | bool
-
not ceilometer_event_pipeline_file.stat.exists
notify
:
-
Restart ceilometer-notification container
...
...
This diff is collapsed.
Click to expand it.
releasenotes/notes/ceilometer-merge-yaml-event-pipeline-bee198be62ebd6a9.yaml
0 → 100644
+
8
−
0
View file @
b69aa4ea
---
features
:
-
|
A custom ``event_pipeline.yaml`` file for the Ceilometer notification
service is now processed with ``merge_yaml``. This allows Jinja2 to be
used. Furthermore, it is possible to have a global
``event_pipeline.yaml`` and host-specific ``event_pipeline.yaml``
files.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment