Advertisement
tinkster

add_minion.sls

Apr 28th, 2014
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. {% set new_minion = salt['pillar.get']('new_minion') %}
  2. add_minion_ufw:
  3. cmd.run:
  4. - comment: {{ salt['mine.get']( 'new_minion' , 'grains.items') }}
  5. - name: {% for grain in salt['mine.get']( new_minion , 'grains.items').items() %}
  6. - /usr/sbin/ufw allow proto tcp from {{ grains['main_ip'][0] }} to any port 9997
  7. {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement