Browse Source

Adding a small variable to the OpenSSH sshd_config file so that the service will work correctly on Centos 6.4 and earlier

tags/v0.41.0
Mark Eggert 11 years ago
parent
commit
2e229681c7
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      openssh/files/sshd_config
  2. +1
    -0
      openssh/init.sls

+ 4
- 0
openssh/files/sshd_config View File

#PrintLastLog yes #PrintLastLog yes
#TCPKeepAlive yes #TCPKeepAlive yes
#UseLogin no #UseLogin no
{% if grains['os_family'] == 'RedHat' %}
UsePrivilegeSeparation yes # RedHat/Centos 6.4 and earlier currently ship 5.3 (sandbox introduced in OpenSSH 5.9)
{% else %}
UsePrivilegeSeparation sandbox # Default for new installations. UsePrivilegeSeparation sandbox # Default for new installations.
{% endif %}
#PermitUserEnvironment no #PermitUserEnvironment no
#Compression delayed #Compression delayed
#ClientAliveInterval 0 #ClientAliveInterval 0

+ 1
- 0
openssh/init.sls View File

file.managed: file.managed:
- name: /etc/ssh/sshd_config - name: /etc/ssh/sshd_config
- source: salt://openssh/files/sshd_config - source: salt://openssh/files/sshd_config
- template: jinja
- user: root - user: root
- mode: 600 - mode: 600



Loading…
Cancel
Save