OP#561 add custom conf file
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user