Skip to content

Commit

Permalink
Fix filename and syslog (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahelal authored Aug 15, 2017
1 parent a8b7b72 commit 5fac770
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/ad-hocs/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
when: consul_adhoc_build_raft_peers

- name: adhocs | include clear data dir
include: clear-data-dir.yml
include: cleardata-dir.yml
when: consul_adhoc_clear_data_dir
8 changes: 8 additions & 0 deletions templates/consul-agent.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@
},
{% endif %}

{# LOGGING #}
{% if consul_syslog is defined and consul_syslog %}
"enable_syslog": true,
{% endif %}
{% if consul_syslog_facility is defined and consul_syslog_facility %}
"syslog_facility": "{{ consul_syslog_facility}}",
{% endif %}

{% if consul_encrypt is defined %}
"encrypt": "{{ consul_encrypt }}",
{% endif %}
Expand Down

0 comments on commit 5fac770

Please sign in to comment.