Skip to content

Commit

Permalink
Invert the logic for variable dependency for service disabled rules
Browse files Browse the repository at this point in the history
  • Loading branch information
teacup-on-rockingchair committed May 21, 2024
1 parent ca9fefa commit 87ba124
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ template:
packagename: firewalld
servicename: firewalld
variable: var_network_filtering_service
value: nftables|iptables
operation: pattern match
value: firewalld
{{%- else %}}
template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,18 @@ ocil: |-
<br /><br />
{{{ ocil_service_enabled(service="ip6tables") }}}
{{%- if product in [ "sle12", "sle15" ] %}}
template:
name: service_enabled_guard_var
vars:
packagename: iptables
servicename: iptables
variable: var_network_filtering_service
value: iptables
{{%- else %}}
template:
name: service_enabled
vars:
servicename: ip6tables
packagename: iptables-ipv6
{{%- endif %}}
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ ocil: |-
template:
name: service_enabled_guard_var
vars:
packagename: iptables
servicename: iptables
packagename: ip6tables
servicename: iptables-ipv6
variable: var_network_filtering_service
value: iptables
{{%- else %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ template:
packagename: nftables
servicename: nftables
variable: var_network_filtering_service
value: firewalld|iptables
operation: pattern match
value: nftables
{{%- else %}}
template:
name: service_disabled
Expand Down

0 comments on commit 87ba124

Please sign in to comment.