OP#561 add custom conf file

This commit is contained in:
2026-04-05 15:40:23 +02:00
parent 29fdd46341
commit 80cf3c0d47
3 changed files with 17 additions and 8 deletions

View File

@@ -10,8 +10,8 @@ class confdroid_ssh::main::files (
file { $sshd_config_path:
ensure => file,
path => $sshd_config_path,
owner => 'root',
group => 'root',
owner => $sshd_user,
group => $sshd_user,
mode => '0640',
selrange => s0,
selrole => object_r,
@@ -21,11 +21,17 @@ class confdroid_ssh::main::files (
}
if $ssh_manage_config {
file { "${ssh_etc_path}/sshd_config.d":
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755',
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),
}
}
}