## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }} {% set blackips = salt["bl.get_ips"]() %} {% if blackips|length > 0 %} define blacklist = { {{ blackips|join(", ") }} } {% else %} define blacklist = { 127.255.255.255 } {% endif %}