-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exported peers #82
base: master
Are you sure you want to change the base?
Exported peers #82
Conversation
Declaring everything in hiera is not always convenient. This commit gives the choice to use exported resources so that peers declare themselves on each other.
I updated the requested files notably REFERENCES.md but it is still marked outdated. Not sure what can be done to fix it |
Before relying on it we need to check for its presence. The facts is actually available only after a Puppet pass which will deploy the keys on the target host
This usually happen when your bundle is outdated. Run |
if 'wireguard_pubkeys' in $facts { | ||
if $interface in $facts['wireguard_pubkeys'] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a benefit for checking if wireguard_pubkeys
is in $facts
and not directly using if $interface in $facts['wireguard_pubkeys']
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wireguard_pubkeys
fact is not present in facts on first run , so we cannot check is $interface
is present in it
Pull Request (PR) description
This Pull Request (PR) fixes the following issues