mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-03 23:26:58 +02:00
Update to 2022-09-04 18:00
This commit is contained in:
@@ -35,7 +35,6 @@ template {
|
||||
exec {
|
||||
command = "systemctl reload nomad"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
{% if nomad_conf.server.enabled %}
|
||||
@@ -54,3 +53,32 @@ template {
|
||||
perms = 0640
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
{% if nomad_conf.client.enabled and nomad_conf.consul.ssl %}
|
||||
template {
|
||||
source = "{{ nomad_root_dir }}/consul-template/consul.crt.tpl"
|
||||
left_delimiter = "[["
|
||||
right_delimiter = "]]"
|
||||
destination = "{{ nomad_conf.consul.cert_file }}"
|
||||
}
|
||||
|
||||
template {
|
||||
source = "{{ nomad_root_dir }}/consul-template/consul.key.tpl"
|
||||
left_delimiter = "[["
|
||||
right_delimiter = "]]"
|
||||
destination = "{{ nomad_conf.consul.key_file }}"
|
||||
perms = 0640
|
||||
}
|
||||
|
||||
template {
|
||||
source = "{{ nomad_root_dir }}/consul-template/consul_ca.crt.tpl"
|
||||
left_delimiter = "[["
|
||||
right_delimiter = "]]"
|
||||
destination = "{{ nomad_conf.consul.ca_file }}"
|
||||
perms = 0644
|
||||
exec {
|
||||
command = "systemctl reload nomad"
|
||||
}
|
||||
}
|
||||
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user