20 lines
425 B
Plaintext
20 lines
425 B
Plaintext
{% 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 }}
|