38 lines
996 B
Puppet
38 lines
996 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 => $sshd_user,
|
|
group => $sshd_user,
|
|
mode => '0640',
|
|
selrange => s0,
|
|
selrole => object_r,
|
|
seltype => etc_t,
|
|
seluser => system_u,
|
|
content => template($sshd_config_erb),
|
|
}
|
|
|
|
if $ssh_manage_config {
|
|
file { $sshd_custom_conf:
|
|
ensure => file,
|
|
path => $sshd_custom_conf,
|
|
owner => $sshd_user,
|
|
group => $sshd_user,
|
|
mode => '0755',
|
|
selrange => s0,
|
|
selrole => object_r,
|
|
seltype => etc_t,
|
|
seluser => system_u,
|
|
content => template($sshd_custom_erb),
|
|
}
|
|
}
|
|
}
|