From cb50502233b0db6d0d6975e322099c77d8f98492 Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Sun, 5 Apr 2026 15:52:15 +0200 Subject: [PATCH] OP#561 add notification --- manifests/main/files.pp | 2 ++ manifests/params.pp | 4 ++-- templates/{ssh_config.erb => sshd_config.erb} | 0 templates/{ssh_custom_conf.erb => sshd_custom_conf.erb} | 0 4 files changed, 4 insertions(+), 2 deletions(-) rename templates/{ssh_config.erb => sshd_config.erb} (100%) rename templates/{ssh_custom_conf.erb => sshd_custom_conf.erb} (100%) diff --git a/manifests/main/files.pp b/manifests/main/files.pp index 5ba3bba..de10f4f 100644 --- a/manifests/main/files.pp +++ b/manifests/main/files.pp @@ -18,6 +18,7 @@ class confdroid_ssh::main::files ( seltype => etc_t, seluser => system_u, content => template($sshd_config_erb), + notify => Service[$sshd_service], } if $ssh_manage_config { @@ -32,6 +33,7 @@ class confdroid_ssh::main::files ( seltype => etc_t, seluser => system_u, content => template($sshd_custom_erb), + notify => Service[$sshd_service], } } } diff --git a/manifests/params.pp b/manifests/params.pp index cf54a25..2d7a55d 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -38,8 +38,8 @@ class confdroid_ssh::params ( $sshd_config_path = "${ssh_etc_path}/sshd_config" $sshd_custom_path = "${ssh_etc_path}/sshd_config.d" $sshd_custom_conf = "${sshd_custom_path}/10-custom.conf" - $sshd_custom_erb = 'confdroid_ssh/ssh_custom_conf.erb' - $sshd_config_erb = 'confdroid_ssh/ssh_config.erb' + $sshd_custom_erb = 'confdroid_ssh/sshd_custom_conf.erb' + $sshd_config_erb = 'confdroid_ssh/sshd_config.erb' # includes must be last include confdroid_ssh::main::config diff --git a/templates/ssh_config.erb b/templates/sshd_config.erb similarity index 100% rename from templates/ssh_config.erb rename to templates/sshd_config.erb diff --git a/templates/ssh_custom_conf.erb b/templates/sshd_custom_conf.erb similarity index 100% rename from templates/ssh_custom_conf.erb rename to templates/sshd_custom_conf.erb