Colleen Murphy 291be82364 Add Gemfile and puppet 4 checks
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins. Also fix lint
errors caught by the puppet-lint-absolute_classname-check gem

Change-Id: Icff84f837a99856a3b5321fc9200b726877c6de9
2015-08-13 18:11:23 -07:00

28 lines
710 B
Puppet

# == Class: ssh
#
class ssh ($trusted_ssh_source = 'puppetmaster.openstack.org') {
include ::ssh::params
package { $::ssh::params::package_name:
ensure => present,
}
if ($::in_chroot) {
notify { 'sshd in chroot':
message => 'sshd not refreshed, running in chroot',
}
} else {
service { $::ssh::params::service_name:
ensure => running,
hasrestart => true,
subscribe => File['/etc/ssh/sshd_config'],
}
}
file { '/etc/ssh/sshd_config':
ensure => present,
owner => 'root',
group => 'root',
mode => '0444',
content => template('ssh/sshd_config.erb'),
replace => true,
}
}