1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'manifests/params.pp', line 1
class ssh::params {
$print_motd = 'no'
case $::osfamily {
'Debian': {
$service_name = 'ssh'
}
'RedHat': {
$service_name = 'sshd'
}
default: {
fail("Unsupported osfamily ${::osfamily}, currently only supports Debian and RedHat")
}
}
case $::operatingsystem {
'Debian': {
case $::operatingsystemrelease {
/^[78].*$/ : {
$host_keys=['/etc/ssh/ssh_host_rsa_key','/etc/ssh/ssh_host_dsa_key','/etc/ssh/ssh_host_ecdsa_key']
}
default : {
$host_keys=['/etc/ssh/ssh_host_rsa_key','/etc/ssh/ssh_host_dsa_key']
}
}
}
default : {
$host_keys=['/etc/ssh/ssh_host_rsa_key','/etc/ssh/ssh_host_dsa_key']
}
}
}
|