Skip to content

Commit 1384567

Browse files
committed
vault: Add logs and file volumes
These volumes are defined by default in the Dockerfile, therefore if not defined - they get a new volume every restart ([1]). [1]: https://github.com/hashicorp/docker-vault/blob/152f49d818b2764c437ee1fd20ee4d13791a8296/ubi/Dockerfile#L70
1 parent 816b19f commit 1384567

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roles/vault/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ consul_container: {}
7171
# Default volume mapping
7272
_vault_default_volumes:
7373
- "{{ vault_config_dir }}:/vault/config"
74+
- "vault_file:/vault/file"
75+
- "vault_logs:/vault/logs"
7476
_consul_default_volumes:
7577
- "{{ consul_docker_volume }}:/consul/data"
7678

0 commit comments

Comments
 (0)