Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CHEF
cookbooks
sys
Commits
35018ee1
Commit
35018ee1
authored
Apr 13, 2022
by
m.pausch
Browse files
Restart firewall only if it is managed
parent
45c5d534
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/firewall.rb
View file @
35018ee1
...
...
@@ -105,6 +105,7 @@ if Gem::Requirement.new('>= 12.15').satisfied_by?(Gem::Version.new(Chef::VERSION
end
action
:restart
do
return
unless
managed?
nftables_service
=
lookup_or_create_service
(
'nftables'
)
nftables_service
.
run_action
(
:restart
)
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment