style edits to puppet config files
Change-Id: I4f7314bcb1cb58f94ff7a78aebe27ec4591fc11c Reviewed-on: https://review.openstack.org/14187 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
30acf8f70f
commit
cb328cabe5
|
@ -1,19 +1,19 @@
|
|||
class ssh {
|
||||
package { openssh-server: ensure => present }
|
||||
service { ssh:
|
||||
ensure => running,
|
||||
hasrestart => true,
|
||||
subscribe => File["/etc/ssh/sshd_config"],
|
||||
package { 'openssh-server':
|
||||
ensure => present,
|
||||
}
|
||||
file { "/etc/ssh/sshd_config":
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => 444,
|
||||
ensure => 'present',
|
||||
source => [
|
||||
"puppet:///modules/ssh/sshd_config.$operatingsystem",
|
||||
"puppet:///modules/ssh/sshd_config"
|
||||
],
|
||||
replace => 'true',
|
||||
service { 'ssh':
|
||||
ensure => running,
|
||||
hasrestart => true,
|
||||
subscribe => File['/etc/ssh/sshd_config'],
|
||||
}
|
||||
file { '/etc/ssh/sshd_config':
|
||||
ensure => present,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0444',
|
||||
source => [ "puppet:///modules/ssh/sshd_config.${::operatingsystem}",
|
||||
'puppet:///modules/ssh/sshd_config' ],
|
||||
replace => true,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue