Merge branch 'master' into ortiche
This commit is contained in:
commit
85b43a2379
11 changed files with 34 additions and 16 deletions
|
@ -25,21 +25,9 @@ class sshd::base {
|
|||
case $::sshrsakey {
|
||||
'': { info("no sshrsakey on ${::fqdn}") }
|
||||
default: {
|
||||
@@sshkey{$::fqdn:
|
||||
ensure => present,
|
||||
tag => 'fqdn',
|
||||
type => ssh-rsa,
|
||||
key => $::sshrsakey,
|
||||
}
|
||||
# In case the node has uses a shared network address,
|
||||
# we don't define a sshkey resource using an IP address
|
||||
if $sshd::shared_ip == 'no' {
|
||||
@@sshkey{$sshd::sshkey_ipaddress:
|
||||
ensure => present,
|
||||
tag => 'ipaddress',
|
||||
type => ssh-rsa,
|
||||
key => $::sshrsakey,
|
||||
}
|
||||
# only export sshkey when storedconfigs is enabled
|
||||
if $::sshd::use_storedconfigs {
|
||||
include ::sshd::sshkey
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,8 @@ class sshd(
|
|||
$hostkey_type = versioncmp($::ssh_version, '6.5') ? {
|
||||
/(1|0)/ => [ 'rsa', 'ed25519' ],
|
||||
/-1/ => [ 'rsa', 'dsa' ]
|
||||
}
|
||||
},
|
||||
$use_storedconfigs = true
|
||||
) {
|
||||
|
||||
validate_bool($manage_shorewall)
|
||||
|
|
21
manifests/sshkey.pp
Normal file
21
manifests/sshkey.pp
Normal file
|
@ -0,0 +1,21 @@
|
|||
# deploys the
|
||||
class sshd::sshkey {
|
||||
|
||||
@@sshkey{$::fqdn:
|
||||
ensure => present,
|
||||
tag => 'fqdn',
|
||||
type => 'ssh-rsa',
|
||||
key => $::sshrsakey,
|
||||
}
|
||||
|
||||
# In case the node has uses a shared network address,
|
||||
# we don't define a sshkey resource using an IP address
|
||||
if $sshd::shared_ip == 'no' {
|
||||
@@sshkey{$::sshd::sshkey_ipaddress:
|
||||
ensure => present,
|
||||
tag => 'ipaddress',
|
||||
type => 'ssh-rsa',
|
||||
key => $::sshrsakey,
|
||||
}
|
||||
}
|
||||
}
|
1
templates/sshd_config/Ubuntu_quantal.erb
Symbolic link
1
templates/sshd_config/Ubuntu_quantal.erb
Symbolic link
|
@ -0,0 +1 @@
|
|||
Ubuntu.erb
|
1
templates/sshd_config/Ubuntu_raring.erb
Symbolic link
1
templates/sshd_config/Ubuntu_raring.erb
Symbolic link
|
@ -0,0 +1 @@
|
|||
Ubuntu.erb
|
1
templates/sshd_config/Ubuntu_saucy.erb
Symbolic link
1
templates/sshd_config/Ubuntu_saucy.erb
Symbolic link
|
@ -0,0 +1 @@
|
|||
Ubuntu.erb
|
1
templates/sshd_config/Ubuntu_trusty.erb
Symbolic link
1
templates/sshd_config/Ubuntu_trusty.erb
Symbolic link
|
@ -0,0 +1 @@
|
|||
Ubuntu.erb
|
1
templates/sshd_config/Ubuntu_utopic.erb
Symbolic link
1
templates/sshd_config/Ubuntu_utopic.erb
Symbolic link
|
@ -0,0 +1 @@
|
|||
Ubuntu.erb
|
1
templates/sshd_config/Ubuntu_vivid.erb
Symbolic link
1
templates/sshd_config/Ubuntu_vivid.erb
Symbolic link
|
@ -0,0 +1 @@
|
|||
Ubuntu.erb
|
1
templates/sshd_config/Ubuntu_wily.erb
Symbolic link
1
templates/sshd_config/Ubuntu_wily.erb
Symbolic link
|
@ -0,0 +1 @@
|
|||
Ubuntu.erb
|
1
templates/sshd_config/Ubuntu_xenial.erb
Symbolic link
1
templates/sshd_config/Ubuntu_xenial.erb
Symbolic link
|
@ -0,0 +1 @@
|
|||
Ubuntu.erb
|
Loading…
Reference in a new issue