Skip to content
Snippets Groups Projects
Commit f5a56ab5 authored by skorpy's avatar skorpy :construction_worker:
Browse files

wireguard: ignore empty pillars

parent d2671bcd
Branches
No related tags found
No related merge requests found
Pipeline #
{%- for peer in pillar.dn42.peers if peer.tunnel.type == 'wireguard' %}
{%- for peer in pillar.dn42.get('peers', []) if peer.tunnel.type == 'wireguard' %}
{% if peer.name == "intern" %}
{% set iface_prefix = "tun" %}
......
{%- for peer in pillar.dn42.peers if peer.tunnel.type == 'wireguard' %}
{%- for peer in pillar.dn42.get('peers', []) if peer.tunnel.type == 'wireguard' %}
{% if peer.name == "intern" %}
{% set iface_prefix = "tun" %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment