Bug fixing slspath-2
This commit is contained in:
parent
9ed7643009
commit
4051bf2dee
4 changed files with 5 additions and 2 deletions
|
@ -5,6 +5,8 @@ vault-config:
|
|||
- name: /etc/vault.d/config.hcl
|
||||
- source: salt://vault/files/config.hcl
|
||||
- template: jinja
|
||||
- context:
|
||||
statepath: {{ slspath }}
|
||||
- user: {{ vault.user }}
|
||||
- group: {{ vault.group }}
|
||||
- mode: 0640
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{%- from slspath + '/map.jinja' import vault with context -%}
|
||||
{%- from statepath + '/map.jinja' import vault with context -%}
|
||||
|
||||
listener "{{ vault.config.listen_protocol }}" {
|
||||
address = "{{ vault.config.listen_address }}:{{ vault.config.listen_port }}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{%- from slspath + '/map.jinja' import vault with context -%}
|
||||
{%- from statepath + '/map.jinja' import vault with context -%}
|
||||
[Unit]
|
||||
Description=vault server
|
||||
Requires=network-online.target
|
||||
|
|
|
@ -42,6 +42,7 @@ vault-init-file:
|
|||
- context:
|
||||
user: {{ vault.user }}
|
||||
group: {{ vault.group }}
|
||||
statepath: {{ slspath }}
|
||||
- mode: 0644
|
||||
{%- elif salt['test.provider']('service') == 'upstart' %}
|
||||
- source: salt://{{ slspath }}/files/vault.upstart
|
||||
|
|
Loading…
Reference in a new issue