Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- et2448@ubuntu:~/projects/ext/github.com/openssh-formula/openssh$ cat init.sls
- {% from "openssh/map.jinja" import openssh with context %}
- openssh:
- pkg.installed:
- - name: {{ openssh.server }}
- service.running:
- - enable: True
- - name: {{ openssh.service }}
- - require:
- - pkg: {{ openssh.server }}
- iptables.insert:
- - table: filter
- - chain: INPUT
- - position: 1
- - match: state
- - connstate: NEW,ESTABLISHED
- - dport: 22
- - proto: tcp
- - jump: ACCEPT
- - save: True
- ID: openssh
- Function: iptables.insert
- Result: False
- Comment: An exception occurred in this state: Traceback (most recent call last):
- File "/usr/lib/pymodules/python2.7/salt/state.py", line 1378, in call
- **cdata['kwargs'])
- File "/usr/lib/pymodules/python2.7/salt/states/iptables.py", line 328, in insert
- '{1} for {2}'.format(name, command.strip()), family)
- IndexError: tuple index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement