-
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.
tweak rhn download to work with cruise control
- Loading branch information
Showing
10 changed files
with
53 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
namespace: middleware_automation | ||
name: amq_streams | ||
version: "0.0.7" | ||
version: "0.0.8" | ||
readme: README.md | ||
authors: | ||
- Romain Pelisse <[email protected]> | ||
|
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 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 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,17 @@ | ||
--- | ||
- name: "Ensure required credentials have been provided." | ||
ansible.builtin.assert: | ||
that: | ||
- amq_streams_broker_inventory_group is defined and amq_streams_broker_inventory_group | length > 0 | ||
- amq_streams_broker_username is defined and amq_streams_broker_username | length > 0 | ||
- amq_streams_broker_password is defined and amq_streams_broker_password | length > 0 | ||
quiet: true | ||
|
||
- name: "Generate required JAAS config based on provided credentials." | ||
ansible.builtin.set_fact: | ||
amq_streams_cruise_control_zk_sasl_jaas_config: "org.apache.kafka.common.security.plain.PlainLoginModule required username=\"{{ amq_streams_broker_username }}\" password=\"{{ amq_streams_broker_password }}\";" | ||
|
||
- name: "Ensure sasl.properties is up to date on broker." | ||
ansible.builtin.template: | ||
src: templates/sasl.properties.j2 | ||
dest: "{{ amq_stream_common_home }}/config/sasl.properties" |
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
3 changes: 3 additions & 0 deletions
3
roles/amq_streams_cruise_control/templates/sasl.properties.j2
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,3 @@ | ||
security.protocol={{ amq_streams_broker_inter_broker_auth_sasl_protocol }} | ||
sasl.mechanism={{ amq_streams_broker_inter_broker_auth_sasl_mechanisms }} | ||
sasl.jaas.config={{ amq_streams_cruise_control_zk_sasl_jaas_config }} |