Files
confdroid_ssh/manifests/main/files.pp

32 lines
805 B
ObjectPascal
Raw Normal View History

2026-04-05 14:39:09 +02:00
## confdroid_ssh::main::files.pp
# Module name: confdroid_ssh
# Author: 12ww1160 (12ww1160@confdroid.com)
2025-04-22 15:58:46 +02:00
# @summary Class manages files
##############################################################################
2026-04-05 14:39:09 +02:00
class confdroid_ssh::main::files (
) inherits confdroid_ssh::params {
require confdroid_ssh::main::dirs
2025-04-22 15:58:46 +02:00
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),
}
2026-04-05 15:35:39 +02:00
if $ssh_manage_config {
file { "${ssh_etc_path}/sshd_config.d":
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755',
}
}
2025-04-22 15:58:46 +02:00
}