chore 📦: Update file path for non-clustered environments in fail2ban.yml #52

Merged
Jose merged 1 commits from dev into main 2026-03-02 19:03:49 +01:00
Owner

This commit updates the file path configuration for non-clustered environments in the fail2ban.yml file. This ensures that the correct paths are used when running fail2ban outside of a clustered environment.

This commit updates the file path configuration for non-clustered environments in the `fail2ban.yml` file. This ensures that the correct paths are used when running fail2ban outside of a clustered environment.
Jose added 1 commit 2026-03-02 19:02:31 +01:00
chore 📦: Update file path for non-clustered environments in fail2ban.yml
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 15s
Gitleaks Scan / gitleaks (push) Successful in 5s
Markdown Lint / markdown-lint (push) Successful in 5s
ai-reviews / Review PR (pull_request) Successful in 12s
PR check / Gitleaks (pull_request) Successful in 4s
PR check / lint tests (pull_request) Successful in 15s
PR check / labeler (pull_request) Successful in 3s
PR check / handle_failures (pull_request) Has been skipped
PR check / handle_success (pull_request) Successful in 2s
ded4fb8270
This commit updates the file path configuration for non-clustered environments in the `fail2ban.yml` file. This ensures that the correct paths are used when running fail2ban outside of a clustered environment.
gitea-actions bot reviewed 2026-03-02 19:03:04 +01:00
gitea-actions bot left a comment

Review Summary

  • tasks/fail2ban.yml: Addition of host-specific firewall configuration file path for non-clustered environments (moderate improvement in maintainability).
# Review Summary * **tasks/fail2ban.yml**: Addition of host-specific firewall configuration file path for non-clustered environments (moderate improvement in maintainability).
@@ -153,3 +153,3 @@
'/etc/pve/firewall/cluster.fw'
if clustered.stat.exists
else '/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 else clause 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'

[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 `else` clause 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'
gitea-actions bot added the sourceci-pass labels 2026-03-02 19:03:30 +01:00
Jose merged commit 0e8abb4d38 into main 2026-03-02 19:03:49 +01:00
Sign in to join this conversation.