Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions recipes/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down