Skip to content

Commit c9e58c2

Browse files
Avoid duplicate resource declaration
Signed-off-by: Artem Sidorenko <[email protected]>
1 parent e092f11 commit c9e58c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

recipes/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
# limitations under the License.
2121
#
2222

23-
ohai 'reload' do
23+
ohai 'reload openssh-client' do
2424
action :nothing
2525
end
2626

2727
package 'openssh-client' do
2828
package_name node['ssh-hardening']['sshclient']['package']
2929
# we need to reload the package version, otherwise we get the version that was installed before cookbook execution
30-
notifies :reload, 'ohai[reload]', :immediate
30+
notifies :reload, 'ohai[reload openssh-client]', :immediately
3131
end
3232

3333
directory 'openssh-client ssh directory /etc/ssh' do

recipes/server.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040
directory cache_dir
4141

4242
# installs package name
43-
ohai 'reload' do
43+
ohai 'reload openssh-server' do
4444
action :nothing
4545
end
4646

4747
package 'openssh-server' do
4848
package_name node['ssh-hardening']['sshserver']['package']
4949
# we need to reload the package version, otherwise we get the version that was installed before cookbook execution
50-
notifies :reload, 'ohai[reload]', :immediate
50+
notifies :reload, 'ohai[reload openssh-server]', :immediately
5151
end
5252

5353
# Handle addional SELinux policy on RHEL/Fedora for different UsePAM options

0 commit comments

Comments
 (0)