Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set new_minion = salt['pillar.get']('new_minion') %}
- add_minion_ufw:
- cmd.run:
- - comment: {{ salt['mine.get']( 'new_minion' , 'grains.items') }}
- - name: {% for grain in salt['mine.get']( new_minion , 'grains.items').items() %}
- - /usr/sbin/ufw allow proto tcp from {{ grains['main_ip'][0] }} to any port 9997
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement