mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-05-20 22:15:33 +02:00
try to pillarize the port
This commit is contained in:
parent
8702781e3f
commit
c8986d34b8
@ -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:
|
sshd.iptables.input:
|
||||||
iptables.insert:
|
iptables.insert:
|
||||||
- table: filter
|
- table: filter
|
||||||
@ -5,7 +9,7 @@ sshd.iptables.input:
|
|||||||
- position: 1
|
- position: 1
|
||||||
- match: state
|
- match: state
|
||||||
- connstate: NEW,ESTABLISHED
|
- connstate: NEW,ESTABLISHED
|
||||||
- dport: 22
|
- dport: {{ listen_port }}
|
||||||
- proto: tcp
|
- proto: tcp
|
||||||
- jump: ACCEPT
|
- jump: ACCEPT
|
||||||
- save: True
|
- save: True
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user