OP#561 add notification

This commit is contained in:
2026-04-05 15:52:15 +02:00
parent c9bf4a8b5a
commit cb50502233
4 changed files with 4 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ class confdroid_ssh::main::files (
seltype => etc_t, seltype => etc_t,
seluser => system_u, seluser => system_u,
content => template($sshd_config_erb), content => template($sshd_config_erb),
notify => Service[$sshd_service],
} }
if $ssh_manage_config { if $ssh_manage_config {
@@ -32,6 +33,7 @@ class confdroid_ssh::main::files (
seltype => etc_t, seltype => etc_t,
seluser => system_u, seluser => system_u,
content => template($sshd_custom_erb), content => template($sshd_custom_erb),
notify => Service[$sshd_service],
} }
} }
} }

View File

@@ -38,8 +38,8 @@ class confdroid_ssh::params (
$sshd_config_path = "${ssh_etc_path}/sshd_config" $sshd_config_path = "${ssh_etc_path}/sshd_config"
$sshd_custom_path = "${ssh_etc_path}/sshd_config.d" $sshd_custom_path = "${ssh_etc_path}/sshd_config.d"
$sshd_custom_conf = "${sshd_custom_path}/10-custom.conf" $sshd_custom_conf = "${sshd_custom_path}/10-custom.conf"
$sshd_custom_erb = 'confdroid_ssh/ssh_custom_conf.erb' $sshd_custom_erb = 'confdroid_ssh/sshd_custom_conf.erb'
$sshd_config_erb = 'confdroid_ssh/ssh_config.erb' $sshd_config_erb = 'confdroid_ssh/sshd_config.erb'
# includes must be last # includes must be last
include confdroid_ssh::main::config include confdroid_ssh::main::config