Showing with 15 additions and 20 deletions.
  1. +1 −1 Modulefile
  2. +8 −0 README.md
  3. +3 −16 manifests/init.pp
  4. +1 −1 metadata.json
  5. +2 −2 templates/ssh_config.erb
2 changes: 1 addition & 1 deletion Modulefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name 'ghoneycutt-ssh'
version '3.19.0'
version '3.19.1'
source 'git://github.com/ghoneycutt/puppet-module-ssh.git'
author 'ghoneycutt'
license 'Apache License, Version 2.0'
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ Boolean to enable SendEnv options for specifying environment variables. Default

- *Default*: 'USE_DEFAULTS'

ssh_gssapidelegatecredentials
-----------------------------
*string* For GSSAPIDelegateCredentials setting in ssh_config. Valid values are
'yes' and 'no' or to leave undef which will ensure the setting is not present
in ssh_config.

- *Default*: undef

sshd_config_path
----------------
Path to sshd_config.
Expand Down
19 changes: 3 additions & 16 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
$ssh_config_macs = undef,
$ssh_config_template = 'ssh/ssh_config.erb',
$ssh_sendenv = 'USE_DEFAULTS',
$ssh_gssapidelegatecredentials = 'USE_DEFAULTS',
$ssh_gssapidelegatecredentials = undef,
$sshd_config_path = '/etc/ssh/sshd_config',
$sshd_config_owner = 'root',
$sshd_config_group = 'root',
Expand Down Expand Up @@ -87,7 +87,6 @@
$default_ssh_package_source = undef
$default_ssh_package_adminfile = undef
$default_ssh_sendenv = true
$default_ssh_gssapidelegatecredentials = undef
$default_sshd_config_subsystem_sftp = '/usr/libexec/openssh/sftp-server'
$default_sshd_config_mode = '0600'
$default_sshd_config_use_dns = 'yes'
Expand All @@ -107,7 +106,6 @@
$default_ssh_package_source = undef
$default_ssh_package_adminfile = undef
$default_ssh_sendenv = true
$default_ssh_gssapidelegatecredentials = undef
$default_ssh_config_forward_x11_trusted = 'yes'
$default_sshd_config_mode = '0600'
$default_sshd_config_use_dns = 'yes'
Expand Down Expand Up @@ -140,7 +138,6 @@
$default_ssh_package_source = undef
$default_ssh_package_adminfile = undef
$default_ssh_sendenv = true
$default_ssh_gssapidelegatecredentials = undef
$default_sshd_config_subsystem_sftp = '/usr/lib/openssh/sftp-server'
$default_sshd_config_mode = '0600'
$default_sshd_config_use_dns = 'yes'
Expand Down Expand Up @@ -176,7 +173,6 @@
$default_service_name = 'ssh'
$default_service_hasstatus = true
$default_ssh_package_source = undef
$default_ssh_gssapidelegatecredentials = 'yes'
}
'5.10': {
$default_packages = ['SUNWsshcu',
Expand All @@ -187,7 +183,6 @@
$default_service_name = 'ssh'
$default_service_hasstatus = true
$default_ssh_package_source = '/var/spool/pkg'
$default_ssh_gssapidelegatecredentials = undef
}
'5.9' : {
$default_packages = ['SUNWsshcu',
Expand All @@ -198,7 +193,6 @@
$default_service_name = 'sshd'
$default_service_hasstatus = false
$default_ssh_package_source = '/var/spool/pkg'
$default_ssh_gssapidelegatecredentials = undef
}
default: {
fail('ssh module supports Solaris kernel release 5.9, 5.10 and 5.11.')
Expand Down Expand Up @@ -324,13 +318,6 @@
}
}

if $ssh_gssapidelegatecredentials == 'USE_DEFAULTS' {
$ssh_gssapidelegatecredentials_real = $default_ssh_gssapidelegateredentials
} else {
$ssh_gssapidelegatecredentials_real = $ssh_gssapidelegatecredentials
}


if $sshd_acceptenv == 'USE_DEFAULTS' {
$sshd_acceptenv_real = $default_sshd_acceptenv
} else {
Expand Down Expand Up @@ -405,8 +392,8 @@
fail('ssh::sshd_config_banner must be set to be able to use sshd_banner_content.')
}

if $ssh_gssapidelegatecredentials_real != undef {
validate_re($ssh_gssapidelegatecredentials_real, '^(yes|no)$', "ssh::ssh_gssapidelegatecredentials may be either 'yes' or 'no' and is set to <${ssh_gssapidelegatecredentials_real}>.")
if $ssh_gssapidelegatecredentials != undef {
validate_re($ssh_gssapidelegatecredentials, '^(yes|no)$', "ssh::ssh_gssapidelegatecredentials may be either 'yes' or 'no' and is set to <${ssh_gssapidelegatecredentials}>.")
}

if $sshd_gssapiauthentication != undef {
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ghoneycutt-ssh",
"version": "3.19.0",
"version": "3.19.1",
"author": "ghoneycutt",
"summary": "Manages SSH",
"license": "Apache License, Version 2.0",
Expand Down
4 changes: 2 additions & 2 deletions templates/ssh_config.erb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
<% end -%>
Host *
GSSAPIAuthentication yes
<% if @ssh_gssapidelegatecredentials_real != nil -%>
GSSAPIDelegateCredentials <%= @ssh_gssapidelegatecredentials_real %>
<% if @ssh_gssapidelegatecredentials != nil -%>
GSSAPIDelegateCredentials <%= @ssh_gssapidelegatecredentials %>
<% end -%>
# If this option is set to yes then remote X11 clients will have full access
# to the original X11 display. As virtually no X11 client supports the untrusted
Expand Down