paulbsd-salt/states/tests/mine_test.sls

20 lines
425 B
Plaintext
Raw Normal View History

2023-08-26 09:51:03 +02:00
{% set minion_ips = salt['mine.get'](
tgt='G@lb:true',
fun='internal_ip_addrs',
tgt_type='compound') %}
#pkg-repo-test-absent:
# pkgrepo.absent:
# - name: deb http://repository.spotify.com stable non-free
{% set a = [] %}
{%- for k,v in minion_ips.items() %}
{%- if k != salt['grains.get']('fqdn') %}
{%- for i in v %}
{% set _ = a.append(i) %}
{%- endfor %}
{%- endif %}
{%- endfor %}
{{ a|sort|unique }}