mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2022-08-09 13:00
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
data_dir = "{{ consul_root_dir }}/data"
|
||||
log_level = "{{ consul_conf.log_level }}"
|
||||
bind_addr = "0.0.0.0"
|
||||
client_addr = "0.0.0.0"
|
||||
|
||||
@@ -13,12 +12,6 @@ datacenter = "{{ consul_conf.datacenter }}"
|
||||
node_name = {{ consul_conf.node_name }}
|
||||
{% endif %}
|
||||
|
||||
node_meta {
|
||||
{% for meta in consul_conf.node_meta.keys() | list %}
|
||||
{{ meta }} = "{{ consul_conf.node_meta[meta] }}"
|
||||
{% endfor %}
|
||||
}
|
||||
|
||||
ports {
|
||||
{% for service in consul_services.keys() | list %}
|
||||
{% if service not in ['sidecar', 'expose'] and consul_services[service].port is defined %}
|
||||
|
@@ -10,7 +10,7 @@ Type=notify
|
||||
EnvironmentFile=-{{ consul_root_dir }}/etc/consul.env
|
||||
User={{ consul_user }}
|
||||
Group={{ consul_user }}
|
||||
ExecStart={{ consul_root_dir }}/bin/consul agent -config-file={{ consul_root_dir }}/etc/consul.hcl
|
||||
ExecStart={{ consul_root_dir }}/bin/consul agent -config-dir={{ consul_root_dir }}/etc/
|
||||
ExecReload=/bin/kill --signal HUP $MAINPID
|
||||
SuccessExitStatus=1
|
||||
Restart=on-failure
|
||||
|
8
roles/consul/templates/reload.hcl.j2
Normal file
8
roles/consul/templates/reload.hcl.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
log_level = "{{ consul_conf.log_level }}"
|
||||
|
||||
node_meta {
|
||||
{% for meta in consul_conf.node_meta.keys() | list %}
|
||||
{{ meta }} = "{{ consul_conf.node_meta[meta] }}"
|
||||
{% endfor %}
|
||||
}
|
||||
|
Reference in New Issue
Block a user