diff --git a/recipes/client.rb b/recipes/client.rb index afa6cb5..3735bdc 100644 --- a/recipes/client.rb +++ b/recipes/client.rb @@ -20,14 +20,14 @@ # limitations under the License. # -ohai 'reload' do +ohai 'client_reload' do action :nothing end package 'openssh-client' do package_name node['ssh-hardening']['sshclient']['package'] # we need to reload the package version, otherwise we get the version that was installed before cookbook execution - notifies :reload, 'ohai[reload]', :immediate + notifies :reload, 'ohai[client_reload]', :immediate end directory 'openssh-client ssh directory /etc/ssh' do diff --git a/recipes/server.rb b/recipes/server.rb index 9b93e4b..9a3c0ac 100644 --- a/recipes/server.rb +++ b/recipes/server.rb @@ -40,14 +40,14 @@ directory cache_dir # installs package name -ohai 'reload' do +ohai 'server_reload' do action :nothing end package 'openssh-server' do package_name node['ssh-hardening']['sshserver']['package'] # we need to reload the package version, otherwise we get the version that was installed before cookbook execution - notifies :reload, 'ohai[reload]', :immediate + notifies :reload, 'ohai[server_reload]', :immediate end # Handle addional SELinux policy on RHEL/Fedora for different UsePAM options