fix: move volume opts to config
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2023-07-31 22:16:26 +02:00
parent d5b3b7283f
commit 372c67767c
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 3 additions and 4 deletions

View File

@ -2,9 +2,6 @@
vault_image: "docker.io/hashicorp/vault:latest"
vault_url: "http://localhost:8200"
vault_restart_policy: always
vault_service_stopped: False
vault_config_volume: "vault-config"
vault_data_volume: "vault-data"
@ -20,8 +17,10 @@ vault_data_volume: "vault-data"
vault_volumes:
- name: "{{ vault_config_volume }}"
dest: /vault/config
opts: Z
- name: "{{ vault_data_volume }}"
dest: /vault/file
opts: Z
# @var vault_network:description: >
# Name of the container network. If the name ends with `.network`, the network will be created with the specified configuration.

View File

@ -15,7 +15,7 @@ ContainerName={{ __vault_container_name }}
Exec=/usr/local/bin/docker-entrypoint.sh server
EnvironmentFile=/etc/containers/systemd/vault.env
{% for item in vault_volumes %}
Volume={{ item.name }}:{{ item.dest }}:Z
Volume={{ item.name }}:{{ item.dest }}{{ ":" + item.opts if item.opts is defined else "" }}
{% endfor %}
{% if vault_cap_add | length > 0 %}