chore 📦: Update file path for non-clustered environments in fail2ban.yml #52
@@ -152,7 +152,7 @@
|
||||
{{
|
||||
'/etc/pve/firewall/cluster.fw'
|
||||
if clustered.stat.exists
|
||||
else '/etc/pve/nodes/' + pve_node + '.fw'
|
||||
else '/etc/pve/nodes/' + pve_node + '/host.fw'
|
||||
|
|
||||
}}
|
||||
when: pve_installed.stat.exists | default(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user
[Score: 2] Addition of host-specific firewall configuration file path for non-clustered environments, which helps avoid potential confusion or errors in differentiating between cluster and non-cluster configurations. However, it would be more consistent to also update the
elseclause in line 154 for better symmetry, as suggested below:OLD: - else '/etc/pve/nodes/' + pve_node + '.fw'
NEW: + else '/etc/pve/nodes/' + pve_node + '/host.fw'