|
|
|
|
|
|
|
|
wireguard_interface_{{interface_name}}_config: |
|
|
wireguard_interface_{{interface_name}}_config: |
|
|
file.managed: |
|
|
file.managed: |
|
|
- name: /etc/wireguard/{{interface_name}}.conf |
|
|
- name: /etc/wireguard/{{interface_name}}.conf |
|
|
|
|
|
- makedirs: True |
|
|
- contents_pillar: wireguard:interfaces:{{interface_name}}:raw_config |
|
|
- contents_pillar: wireguard:interfaces:{{interface_name}}:raw_config |
|
|
- mode: 600 |
|
|
- mode: 600 |
|
|
{% else %} |
|
|
{% else %} |
|
|
wireguard_interface_{{interface_name}}_config: |
|
|
wireguard_interface_{{interface_name}}_config: |
|
|
file.managed: |
|
|
file.managed: |
|
|
- name: /etc/wireguard/{{interface_name}}.conf |
|
|
- name: /etc/wireguard/{{interface_name}}.conf |
|
|
|
|
|
- makedirs: True |
|
|
- source: salt://wireguard/files/wg.conf |
|
|
- source: salt://wireguard/files/wg.conf |
|
|
- template: jinja |
|
|
- template: jinja |
|
|
- context: |
|
|
- context: |