mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2022-09-02 10:00
This commit is contained in:
@@ -4,7 +4,7 @@ set -eo pipefail
|
||||
|
||||
{% if vault_letsencrypt_cert is defined %}
|
||||
|
||||
if [ $1 == "{{ pg_letsencrypt_cert }}" ]; then
|
||||
if [ $1 == "{{ vault_letsencrypt_cert }}" ]; then
|
||||
cp /var/lib/dehydrated/certificates/certs/{{ vault_letsencrypt_cert }}/fullchain.pem {{ vault_root_dir }}/tls/vault.crt
|
||||
cp /var/lib/dehydrated/certificates/certs/{{ vault_letsencrypt_cert }}/privkey.pem {{ vault_root_dir }}/tls/vault.key
|
||||
chown root:vault {{ vault_root_dir }}/tls/vault.key
|
||||
|
8
roles/vault/templates/logrotate.conf.j2
Normal file
8
roles/vault/templates/logrotate.conf.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
{{ vault_root_dir }}/log/*.log {{ vault_root_dir }}/log/*.json {
|
||||
daily
|
||||
rotate 365
|
||||
compress
|
||||
missingok
|
||||
copytruncate
|
||||
su {{ vault_user }} {{ vault_user }}
|
||||
}
|
@@ -51,11 +51,7 @@ service_registration "consul" {
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if vault_conf.service_registration.service_tags is defined %}
|
||||
service_tags = [
|
||||
{% for tag in vault_conf.service_registration.service_tags %}
|
||||
"{{ tag }}",
|
||||
{% endfor %}
|
||||
]
|
||||
service_tags = "{{ vault_conf.service_registration.service_tags | join(',') }}"
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user