-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
32 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
- name: "Ensure required parameters for Prometheus are provided." | ||
ansible.builtin.assert: | ||
that: | ||
- amq_streams_common_prometheus_config_file is defined and amq_streams_common_prometheus_config_file | length > 0 | ||
- amq_streams_common_prometheus_config_file_template is defined and amq_streams_common_prometheus_config_file_template | length > 0 | ||
quiet: True | ||
|
||
- name: "Ensure directory {{ amq_streams_common_prometheus_metrics_config_home }} exits." | ||
ansible.builtin.file: | ||
path: "{{ amq_streams_common_prometheus_metrics_config_home }}" | ||
state: directory | ||
|
||
- name: "Deploy Prometheus metrics file (src: {{ amq_streams_common_prometheus_config_file_template }} to dest: {{ amq_streams_common_prometheus_metrics_config_home }}{{ amq_streams_common_prometheus_config_file }}" | ||
ansible.builtin.template: | ||
src: "{{ amq_streams_common_prometheus_config_file_template }}" | ||
dest: "{{ amq_streams_common_prometheus_metrics_config_home }}{{ amq_streams_common_prometheus_config_file }}" | ||
owner: "{{ amq_streams_common_prometheus_user | default(omit) }}" | ||
group: "{{ amq_streams_common_prometheus_group | default(omit) }}" | ||
mode: 0644 | ||
|
||
- name: "Add prometheus dependency (if enabled: {{ amq_streams_common_prometheus_enabled }})." | ||
ansible.builtin.set_fact: | ||
amq_streams_common_dependencies: "{{ [amq_streams_common_dependencies + ['{{ amq_streams_common_prometheus_package_name }}']] | flatten }}" | ||
when: | ||
- amq_streams_common_prometheus_install_rpm is defined and amq_streams_common_prometheus_install_rpm |