Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc #91

Closed
wants to merge 3 commits into from
Closed

Misc #91

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion molecule/all_auth/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ provisioner:
ssh_connection:
pipelining: false
playbooks:
prepare: prepare.yml
prepare: ../prepare.yml
converge: converge.yml
verify: verify.yml
inventory:
Expand Down
2 changes: 1 addition & 1 deletion molecule/all_cluster/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ provisioner:
ssh_connection:
pipelining: false
playbooks:
prepare: prepare.yml
prepare: ../prepare.yml
converge: converge.yml
verify: verify.yml
inventory:
Expand Down
10 changes: 0 additions & 10 deletions molecule/all_cluster/prepare.yml

This file was deleted.

2 changes: 1 addition & 1 deletion molecule/connect/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ provisioner:
ssh_connection:
pipelining: false
playbooks:
prepare: prepare.yml
prepare: ../prepare.yml
converge: converge.yml
verify: verify.yml
inventory:
Expand Down
10 changes: 0 additions & 10 deletions molecule/connect/prepare.yml

This file was deleted.

2 changes: 1 addition & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ provisioner:
ssh_connection:
pipelining: false
playbooks:
prepare: prepare.yml
prepare: ../prepare.yml
converge: converge.yml
verify: verify.yml
inventory:
Expand Down
10 changes: 0 additions & 10 deletions molecule/default/prepare.yml

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
dest: /tmp/
owner: root
group: root
mode: 0077
mode: "0077"

- name: "Generate required SSL artefacts."
ansible.builtin.command: "/tmp/generate_keys_and_certs.sh"
Expand Down
2 changes: 1 addition & 1 deletion molecule/ssl_auth_sasl/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ provisioner:
ssh_connection:
pipelining: false
playbooks:
prepare: prepare.yml
prepare: ../prepare_ssl.yml
converge: converge.yml
verify: verify.yml
inventory:
Expand Down
42 changes: 0 additions & 42 deletions molecule/ssl_auth_sasl/prepare.yml

This file was deleted.

2 changes: 1 addition & 1 deletion molecule/ssl_no_auth/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ provisioner:
ssh_connection:
pipelining: false
playbooks:
prepare: prepare.yml
prepare: ../prepare.yml
converge: converge.yml
verify: verify.yml
inventory:
Expand Down
2 changes: 1 addition & 1 deletion roles/amq_streams_common/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
amq_streams_common_product_version: 3.4.0
amq_streams_common_product_version: 3.5.0
amq_streams_common_scala_version: 2.13
amq_streams_common_version: "{{ amq_streams_common_scala_version }}-{{ amq_streams_common_product_version }}"
amq_streams_common_archive_file: "kafka_{{ amq_streams_common_version }}.tgz"
Expand Down
26 changes: 26 additions & 0 deletions roles/amq_streams_common/tasks/prometheus.yml
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
Loading