Skip to content

Conversation

olifre
Copy link

@olifre olifre commented Feb 10, 2023

When disabling Wireguard, the config file must be purged only after the service is stopped, not before. Otherwise, stopping the service fails and the interface remains, and also re-enabling the service fails, since the interface is already there.

Fix this by flipping the order of dependencies for absent vs. present.

When ensuring "absent", the service must be stopped before the config is removed,
otherwise, stopping the service fails and the interface remains.
sorrison pushed a commit to NeCTAR-RC/puppet-wireguard that referenced this pull request Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant