Browse Source

Test config before applying it

master
Alexander Weidinger 7 years ago
parent
commit
162705c7ce
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      openssh/config.sls
  2. +1
    -0
      openssh/defaults.yaml

+ 1
- 0
openssh/config.sls View File

@@ -12,6 +12,7 @@ sshd_config:
- user: {{ openssh.sshd_config_user }}
- group: {{ openssh.sshd_config_group }}
- mode: {{ openssh.sshd_config_mode }}
- check_cmd: {{ openssh.sshd_binary }} -t -f
- watch_in:
- service: {{ openssh.service }}
{% endif %}

+ 1
- 0
openssh/defaults.yaml View File

@@ -1,5 +1,6 @@
openssh:
sshd_enable: True
sshd_binary: /usr/sbin/sshd
sshd_config: /etc/ssh/sshd_config
sshd_config_src: salt://openssh/files/sshd_config
sshd_config_user: root

Loading…
Cancel
Save