2018-05-15 02:02:03 -04:00
|
|
|
{%- from slspath + '/map.jinja' import vault with context -%}
|
|
|
|
|
|
|
|
vault-config:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/vault.d/config.hcl
|
|
|
|
- source: salt://vault/files/config.hcl
|
|
|
|
- template: jinja
|
2018-05-15 02:28:16 -04:00
|
|
|
- context:
|
2018-05-15 02:36:50 -04:00
|
|
|
self_signed_cert: {{ vault.self_signed_cert }}
|
|
|
|
config: {{ vault.config }}
|
2018-05-15 02:02:03 -04:00
|
|
|
- user: {{ vault.user }}
|
|
|
|
- group: {{ vault.group }}
|
|
|
|
- mode: 0640
|
|
|
|
- require:
|
|
|
|
- user: vault-user
|
|
|
|
{%- if vault.service %}
|
|
|
|
- watch_in:
|
|
|
|
- service: vault
|
|
|
|
{%- endif %}
|