OP#561 add custom conf dir

This commit is contained in:
2026-04-05 15:35:39 +02:00
parent 9729f09388
commit 29fdd46341
4 changed files with 31 additions and 0 deletions

View File

@@ -18,4 +18,15 @@ class confdroid_ssh::main::dirs (
seltype => etc_t,
seluser => system_u,
}
file { $sshd_custom_path:
ensure => directory,
owner => $sshd_user,
group => $sshd_user,
mode => '0755',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
}
}

View File

@@ -19,4 +19,13 @@ class confdroid_ssh::main::files (
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',
}
}
}