Skip to content

Commit

Permalink
Merge pull request #11 from Rheinwerk/PT-186577997-consul-upgrade-1_12
Browse files Browse the repository at this point in the history
[#186577997] Update config files for Version 1.12
  • Loading branch information
eifelmicha authored Dec 6, 2023
2 parents 2ca4cdd + 36c24f8 commit ca7e940
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
4 changes: 3 additions & 1 deletion templates/etc/consul.d/main.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"raft_protocol": {{ _consul.raft_protocol }},
{% endif %}
{% if _consul.ui is defined %}
"ui": {{ _consul.ui | lower }},
"ui_config": {
"enabled": {{ _consul.ui | lower }}
},
{% endif %}
"enable_local_script_checks": true,
"dns_config": {
Expand Down
18 changes: 12 additions & 6 deletions templates/etc/consul.d/tls.json.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"verify_outgoing": {{ _consul.crypto.tls.verify_outgoing|default("true") }},
"verify_server_hostname": {{ _consul.crypto.tls.verify_server_hostname|default("true") }},
"verify_incoming": {{ _consul.crypto.tls.verify_incoming|default("true") }},
"ca_file": "{{ _consul.crypto.tls.ca_file }}",
"cert_file": "{{ _consul.config_dir}}/{{ _consul.crypto.tls.cert_file }}",
"key_file": "{{ _consul.config_dir}}/{{ _consul.crypto.tls.key_file.name }}"
"tls": {
"defaults": {
"ca_file": "{{ _consul.crypto.tls.ca_file }}",
"cert_file": "{{ _consul.config_dir}}/{{ _consul.crypto.tls.cert_file }}",
"key_file": "{{ _consul.config_dir}}/{{ _consul.crypto.tls.key_file.name }}",
"verify_incoming": {{ _consul.crypto.tls.verify_incoming|default("true") }},
"verify_outgoing": {{ _consul.crypto.tls.verify_outgoing|default("true") }}
},
"internal_rpc": {
"verify_server_hostname": {{ _consul.crypto.tls.verify_server_hostname|default("true") }}
}
}
}

0 comments on commit ca7e940

Please sign in to comment.