Make sshd PermitRootLogin configurable
Make this configurable so that it can be enabled for images used by nodepool. Change-Id: I704453c6d3091a24e68509650c61efb638aea601
This commit is contained in:
parent
1d88ae1dd4
commit
5d55606789
@ -1,6 +1,9 @@
|
|||||||
# == Class: ssh
|
# == Class: ssh
|
||||||
#
|
#
|
||||||
class ssh ($trusted_ssh_source = 'puppetmaster.openstack.org') {
|
class ssh (
|
||||||
|
$trusted_ssh_source = 'puppetmaster.openstack.org',
|
||||||
|
$permit_root_login = 'no',
|
||||||
|
) {
|
||||||
include ::ssh::params
|
include ::ssh::params
|
||||||
package { $::ssh::params::package_name:
|
package { $::ssh::params::package_name:
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
@ -23,7 +23,7 @@ LogLevel INFO
|
|||||||
|
|
||||||
# Authentication:
|
# Authentication:
|
||||||
LoginGraceTime 120
|
LoginGraceTime 120
|
||||||
PermitRootLogin no
|
PermitRootLogin <%= @permit_root_login %>
|
||||||
StrictModes yes
|
StrictModes yes
|
||||||
|
|
||||||
RSAAuthentication yes
|
RSAAuthentication yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user