0
0
mirror of https://github.com/saltstack-formulas/openssh-formula.git synced 2026-02-22 05:44:57 +01:00
David J. M. Karlsen 1972c41b74 Revert "will this work?"
This reverts commit 757bd12ca7d8938b4e32a47c5fcf87eea6c550d4.
2014-04-23 16:54:47 +02:00

21 lines
437 B
Plaintext

{% 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