Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

Commit

Permalink
add encrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
mylokin committed Feb 15, 2018
1 parent d5ed162 commit bf685c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ consul_conf_enable_syslog: yes
consul_conf_leave_on_terminate: no
consul_conf_skip_leave_on_interrupt: yes
consul_conf_rejoin_after_leave: yes

consul_conf_encrypt:
consul_conf_encrypt_verify_incoming: yes
consul_conf_encrypt_verify_outgoing: yes
6 changes: 6 additions & 0 deletions templates/client.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"server": false,
"ui": false,

{% if consul_conf_encrypt %}
"encrypt": {{ consul_conf_encrypt | to_json }},
"encrypt_verify_incoming": {{ consul_conf_encrypt_verify_incoming | to_json }},
"encrypt_verify_outgoing": {{ consul_conf_encrypt_verify_outgoing | to_json }},
{% endif %}

"data_dir": "{{ consul_data_dir }}",
"pid_file": "{{ consul_data_dir }}/consul.pid",
"datacenter": "{{ consul_datacenter }}",
Expand Down

0 comments on commit bf685c4

Please sign in to comment.