You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into another issue with two dependencies on this module, puppetlabs-firewall and puppet-firewalld. After switching to the GitHub repo in my Puppetfile, I've consistently been getting errors with the two modules duplicating a service declaration for firewalld. I ran into this before with this module, but updating to 3.0.0 on the Puppet Forge fixed it.
Here's the error:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Service[firewalld] is already declared at (file: /etc/puppetlabs/code/environments/development/modules/firewall/manifests/linux/redhat.pp, line: 54); cannot redeclare (file: /etc/puppetlabs/code/environments/development/modules/firewalld/manifests/init.pp, line: 78) (file: /etc/puppetlabs/code/environments/development/modules/firewalld/manifests/init.pp, line: 78, column: 3) on node [redacted]
I've tried disabling the ensure_firewalld_service_is_enabled_and_running rule as I think that's the main cause of the conflict, but haven't had any luck. A quick grep of the rest of the rules points to ensure_a_firewall_package_is_installed.pp as a potential problem, but I don't believe my code is triggering its else conditional.
Disabling both ensure_firewalld_service_is_enabled_and_running and ensure_a_firewall_package_is_installed fixed this particular issue, however I also needed to disable the following rules to get a full Puppet run. All ran into duplicate declaration errors.
ensure_nftables_is_not_enabled (Service[nftables] in the firewall module)
ensure_iptables_is_not_enabled (Package[iptables-services] in the firewall module)
ensure_sudo_is_installed (Package[sudo] in the sudo module)
I'm running into another issue with two dependencies on this module,
puppetlabs-firewall
andpuppet-firewalld
. After switching to the GitHub repo in my Puppetfile, I've consistently been getting errors with the two modules duplicating a service declaration for firewalld. I ran into this before with this module, but updating to 3.0.0 on the Puppet Forge fixed it.Here's the error:
I've tried disabling the
ensure_firewalld_service_is_enabled_and_running
rule as I think that's the main cause of the conflict, but haven't had any luck. A quick grep of the rest of the rules points toensure_a_firewall_package_is_installed.pp
as a potential problem, but I don't believe my code is triggering its else conditional.The text was updated successfully, but these errors were encountered: