0
0
mirror of https://github.com/saltstack-formulas/openssh-formula.git synced 2026-02-22 07:55:01 +01:00
David J. M. Karlsen 1fda731e40 reorder and cleanup
2014-04-23 09:27:06 +02:00

20 lines
423 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
- protocol: tcp
- dport: 22
- jump: ACCEPT
- match: state
- connstate: NEW,ESTABLISHED
- save: True