fuel-library/deployment/puppet/ssh/manifests/server.pp
Tomasz 'Zen' Napierala 4c5df22e5d Updated ssh module
Updated ssh module to fix sftp subsystem bug in CenOS

Upstream version: 2.4.0
Upstream SHA: e5cfeae06a16497382072d80c65c901aa0e696ea

Change-Id: I7f72aab77d982a3e47618a82f7dda9312c8699b9
Closes-bug: #1415078
2015-01-28 11:43:38 +01:00

38 lines
1.1 KiB
Puppet

class ssh::server(
$ensure = present,
$storeconfigs_enabled = true,
$options = {}
) inherits ssh::params {
$merged_options = merge($ssh::params::sshd_default_options, $options)
include ssh::server::install
include ssh::server::config
include ssh::server::service
File[$ssh::params::sshd_config] ~> Service[$ssh::params::service_name]
anchor { 'ssh::server::start': }
anchor { 'ssh::server::end': }
# Provide option to *not* use storeconfigs/puppetdb, which means not managing
# hostkeys and knownhosts
if ($storeconfigs_enabled) {
include ssh::hostkeys
include ssh::knownhosts
Anchor['ssh::server::start'] ->
Class['ssh::server::install'] ->
Class['ssh::server::config'] ~>
Class['ssh::server::service'] ->
Class['ssh::hostkeys'] ->
Class['ssh::knownhosts'] ->
Anchor['ssh::server::end']
} else {
Anchor['ssh::server::start'] ->
Class['ssh::server::install'] ->
Class['ssh::server::config'] ~>
Class['ssh::server::service'] ->
Anchor['ssh::server::end']
}
}