Advertisement
Guest User

Untitled

a guest
May 27th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. salt-ssh --output=yaml '*' pillar.items sysctl
  2. clover:
  3. retcode: null
  4. stderr: ''
  5. stdout: '{"net.ipv4.conf.all.rp_filter": 1, "net.ipv6.conf.eth0.disable_ipv6": 1,
  6. "net.ipv4.icmp_echo_ignore_broadcasts": 1}'
  7.  
  8.  
  9.  
  10. template file:
  11. {% if pillar['sysctl'] is defined %}
  12. {% for key, value in pillar['sysctl'].iteritems() %}
  13. {{ key }}={{ value }}
  14. {% endfor %}
  15. {% else %}
  16. a,skdjlaksdj
  17. {% endif %}
  18.  
  19. just goes to else and fills the file with
  20. a,skdjlaksdj
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement