Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. et2448@ubuntu:~/projects/ext/github.com/openssh-formula/openssh$ cat init.sls
  2. {% from "openssh/map.jinja" import openssh with context %}
  3.  
  4. openssh:
  5. pkg.installed:
  6. - name: {{ openssh.server }}
  7. service.running:
  8. - enable: True
  9. - name: {{ openssh.service }}
  10. - require:
  11. - pkg: {{ openssh.server }}
  12. iptables.insert:
  13. - table: filter
  14. - chain: INPUT
  15. - position: 1
  16. - match: state
  17. - connstate: NEW,ESTABLISHED
  18. - dport: 22
  19. - proto: tcp
  20. - jump: ACCEPT
  21. - save: True
  22.  
  23.  
  24. ID: openssh
  25. Function: iptables.insert
  26. Result: False
  27. Comment: An exception occurred in this state: Traceback (most recent call last):
  28. File "/usr/lib/pymodules/python2.7/salt/state.py", line 1378, in call
  29. **cdata['kwargs'])
  30. File "/usr/lib/pymodules/python2.7/salt/states/iptables.py", line 328, in insert
  31. '{1} for {2}'.format(name, command.strip()), family)
  32. IndexError: tuple index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement