chore 📦: Update file path for non-clustered environments in fail2ban.yml #52
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This commit updates the file path configuration for non-clustered environments in the
fail2ban.ymlfile. This ensures that the correct paths are used when running fail2ban outside of a clustered environment.Review Summary
@@ -153,3 +153,3 @@'/etc/pve/firewall/cluster.fw'if clustered.stat.existselse '/etc/pve/nodes/' + pve_node + '.fw'else '/etc/pve/nodes/' + pve_node + '/host.fw'[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'