mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-02-22 07:55:01 +01:00
21 lines
437 B
Plaintext
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
|