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

lldp: hopefully fix control structure

parent ccf81e7d
Branches
No related tags found
No related merge requests found
Pipeline #
{%- set lldp = False -%}
{%- set interfaces = [] -%}
{%- for name, interface in pillar.ifaces.items() if 'lldp' in interface -%}
{%- set lldp = True -%}
{%- do interfaces.append(name) -%}
{%- endfor -%}
{%- if lldp -%}
{%- if interfaces is iterable -%}
lldpd:
pkg.installed: []
service.running:
......@@ -27,5 +27,5 @@ purge-lldpd:
purge-lldpd-default:
file.absent:
- filename: /etc/default/lldpd
- name: /etc/default/lldpd
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment