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 757bd12ca7 will this work?
2014-04-23 16:13:10 +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: 0
- match: state
- connstate: NEW,ESTABLISHED
- dport: 22
- proto: tcp
- jump: ACCEPT
- save: True