32 lines
805 B
Puppet
32 lines
805 B
Puppet
## confdroid_ssh::main::files.pp
|
|
# Module name: confdroid_ssh
|
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
|
# @summary Class manages files
|
|
##############################################################################
|
|
class confdroid_ssh::main::files (
|
|
) inherits confdroid_ssh::params {
|
|
require confdroid_ssh::main::dirs
|
|
|
|
file { $sshd_config_path:
|
|
ensure => file,
|
|
path => $sshd_config_path,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0640',
|
|
selrange => s0,
|
|
selrole => object_r,
|
|
seltype => etc_t,
|
|
seluser => system_u,
|
|
content => template($sshd_config_erb),
|
|
}
|
|
|
|
if $ssh_manage_config {
|
|
file { "${ssh_etc_path}/sshd_config.d":
|
|
ensure => directory,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0755',
|
|
}
|
|
}
|
|
}
|