0
0
mirror of https://github.com/saltstack-formulas/openssh-formula.git synced 2025-04-20 04:42:08 +02:00

try to pillarize the port

This commit is contained in:
David J. M. Karlsen 2014-04-24 08:24:53 +02:00
parent 8702781e3f
commit c8986d34b8

View File

@ -1,3 +1,7 @@
{% from "openssh/map.jinja" import openssh with context %}
{% set openssh_pillar = pillar.get('openssh', {}) %}
{% set listen_port = openssh_pillar.get('listen_port', '22') %}
sshd.iptables.input:
iptables.insert:
- table: filter
@ -5,7 +9,7 @@ sshd.iptables.input:
- position: 1
- match: state
- connstate: NEW,ESTABLISHED
- dport: 22
- dport: {{ listen_port }}
- proto: tcp
- jump: ACCEPT
- save: True