Ver código fonte

Make sure directories for config files exists

tags/v2.1.1
Michal Hrusecky 4 anos atrás
pai
commit
c2f27e81f7
1 arquivos alterados com 2 adições e 0 exclusões
  1. +2
    -0
      wireguard/init.sls

+ 2
- 0
wireguard/init.sls Ver arquivo

@@ -27,12 +27,14 @@ restart wg-quick@{{interface_name}}:
wireguard_interface_{{interface_name}}_config:
file.managed:
- name: /etc/wireguard/{{interface_name}}.conf
- makedirs: True
- contents_pillar: wireguard:interfaces:{{interface_name}}:raw_config
- mode: 600
{% else %}
wireguard_interface_{{interface_name}}_config:
file.managed:
- name: /etc/wireguard/{{interface_name}}.conf
- makedirs: True
- source: salt://wireguard/files/wg.conf
- template: jinja
- context:

Carregando…
Cancelar
Salvar