2022-01-02 17:39:23 +01:00
|
|
|
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
2022-01-02 18:01:47 +01:00
|
|
|
{% set blackips = salt["bl.get_ips"]() %}
|
|
|
|
|
2022-01-02 18:04:29 +01:00
|
|
|
{% if blackips|length > 0 %}
|
2022-01-02 18:09:13 +01:00
|
|
|
define blacklist = { {{ blackips|join(", ") }} }
|
2022-01-02 18:01:47 +01:00
|
|
|
{% else %}
|
2022-01-02 17:39:23 +01:00
|
|
|
define blacklist = { 127.255.255.255 }
|
2022-01-02 18:01:47 +01:00
|
|
|
{% endif %}
|