Merge "Don't reload ssh service in a chroot"
This commit is contained in:
commit
b6c6d37948
@ -5,10 +5,16 @@ class ssh ($trusted_ssh_source = 'puppetmaster.openstack.org') {
|
|||||||
package { $::ssh::params::package_name:
|
package { $::ssh::params::package_name:
|
||||||
ensure => present,
|
ensure => present,
|
||||||
}
|
}
|
||||||
service { $::ssh::params::service_name:
|
if ($::in_chroot) {
|
||||||
ensure => running,
|
notify { 'sshd in chroot':
|
||||||
hasrestart => true,
|
message => 'sshd not refreshed, running in chroot',
|
||||||
subscribe => File['/etc/ssh/sshd_config'],
|
}
|
||||||
|
} else {
|
||||||
|
service { $::ssh::params::service_name:
|
||||||
|
ensure => running,
|
||||||
|
hasrestart => true,
|
||||||
|
subscribe => File['/etc/ssh/sshd_config'],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
file { '/etc/ssh/sshd_config':
|
file { '/etc/ssh/sshd_config':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user