From 4b4f4b5d3dc1fd6db7f9a16bbf0a11f09af3269b Mon Sep 17 00:00:00 2001 From: matthew-parlette Date: Sun, 27 Apr 2014 14:52:58 -0400 Subject: [PATCH] Explicitly defined options as strings. This fixes an issue where PyYAML was converting yes and no into True and False in the generated sshd_config file. --- pillar.example | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pillar.example b/pillar.example index 58a404c..1e46152 100644 --- a/pillar.example +++ b/pillar.example @@ -5,30 +5,30 @@ sshd_config: - /etc/ssh/ssh_host_rsa_key - /etc/ssh/ssh_host_dsa_key - /etc/ssh/ssh_host_ecdsa_key - UsePrivilegeSeparation: yes + UsePrivilegeSeparation: 'yes' KeyRegenerationInterval: 3600 ServerKeyBits: 768 SyslogFacility: AUTH LogLevel: INFO LoginGraceTime: 120 - PermitRootLogin: yes - PasswordAuthentication: no - StrictModes: yes - RSAAuthentication: yes - PubkeyAuthentication: yes - IgnoreRhosts: yes - RhostsRSAAuthentication: no - HostbasedAuthentication: no - PermitEmptyPasswords: no - ChallengeResponseAuthentication: no - X11Forwarding: yes + PermitRootLogin: 'yes' + PasswordAuthentication: 'no' + StrictModes: 'yes' + RSAAuthentication: 'yes' + PubkeyAuthentication: 'yes' + IgnoreRhosts: 'yes' + RhostsRSAAuthentication: 'no' + HostbasedAuthentication: 'no' + PermitEmptyPasswords: 'no' + ChallengeResponseAuthentication: 'no' + X11Forwarding: 'yes' X11DisplayOffset: 10 - PrintMotd: no - PrintLastLog: yes - TCPKeepAlive: yes + PrintMotd: 'no' + PrintLastLog: 'yes' + TCPKeepAlive: 'yes' AcceptEnv: "LANG LC_*" Subsystem: "sftp /usr/lib/openssh/sftp-server" - UsePAM: yes + UsePAM: 'yes' openssh: auth: