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

make gossip encryption optional fixes #126 #127

Merged
merged 3 commits into from
Nov 22, 2017

Conversation

hwmrocker
Copy link
Contributor

I added a new variable consul_encrypt_enable.

The default value will not change anything, but if you set it to false it will skip all parts that are handling gossip encryption stuff.

register: consul_keygen

- name: Write key locally to share with other nodes
- block:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just indented the whole part and wrapped a block around it

@@ -142,6 +142,9 @@ consul_acl_master_token_display: "{{ lookup('env','CONSUL_ACL_MASTER_TOKEN_DISPL
consul_acl_replication_enable: "{{ lookup('env','CONSUL_ACL_REPLICATION_ENABLE') | default('',true) }}"
consul_acl_replication_token: "{{ lookup('env','CONSUL_ACL_REPLICATION_TOKEN') | default('', true) }}"

## gossip encryption
consul_encrypt_enable: "{{ lookup('env','CONSUL_TLS_ENABLE') | default(true, true) }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this Ansible variable can also have its own environment variable, like CONSUL_ENCRYPT_ENABLE for example instead of using CONSUL_TLS_ENABLE?

@hwmrocker
Copy link
Contributor Author

hwmrocker commented Nov 22, 2017 via email

@brianshumate
Copy link
Contributor

Thank you!

@brianshumate brianshumate merged commit 15dbb9f into ansible-collections:master Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants