Skip to content

Commit

Permalink
fix module on gentoo linux
Browse files Browse the repository at this point in the history
  • Loading branch information
saz committed Mar 8, 2014
1 parent 8df221d commit b01984c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
$ssh_config = '/etc/ssh/ssh_config'
$ssh_known_hosts = '/etc/ssh/ssh_known_hosts'
$service_name = 'ssh'
$sftp_server_path = '/usr/lib/openssh/sftp-server'
}
redhat: {
$server_package_name = 'openssh-server'
Expand All @@ -17,6 +18,7 @@
$ssh_config = '/etc/ssh/ssh_config'
$ssh_known_hosts = '/etc/ssh/ssh_known_hosts'
$service_name = 'sshd'
$sftp_server_path = '/usr/lib/openssh/sftp-server'
}
freebsd: {
$server_package_name = undef
Expand All @@ -25,6 +27,7 @@
$ssh_config = '/etc/ssh/ssh_config'
$ssh_known_hosts = '/etc/ssh/ssh_known_hosts'
$service_name = 'sshd'
$sftp_server_path = '/usr/lib/openssh/sftp-server'
}
default: {
case $::operatingsystem {
Expand All @@ -36,6 +39,7 @@
$ssh_config = '/etc/ssh/ssh_config'
$ssh_known_hosts = '/etc/ssh/ssh_known_hosts'
$service_name = 'sshd'
$sftp_server_path = '/usr/lib/misc/sftp-server'
}
default: {
fail("Unsupported platform: ${::osfamily}/${::operatingsystem}")
Expand All @@ -49,15 +53,14 @@
'X11Forwarding' => 'yes',
'PrintMotd' => 'no',
'AcceptEnv' => 'LANG LC_*',
'Subsystem' => 'sftp /usr/lib/openssh/sftp-server',
'Subsystem' => "sftp ${sftp_server_path}",
'UsePAM' => 'yes',
}

$ssh_default_options = {
'Host *' => {
'SendEnv' => 'LANG LC_*',
'HashKnownHosts' => 'yes',
'GSSAPIAuthentication' => 'yes',
},
}
}

0 comments on commit b01984c

Please sign in to comment.