Skip to content
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

How can I generate private key from Foreman ? #26

Open
PandemiK911 opened this issue Apr 20, 2020 · 1 comment
Open

How can I generate private key from Foreman ? #26

PandemiK911 opened this issue Apr 20, 2020 · 1 comment

Comments

@PandemiK911
Copy link

Hello,
This is more a question than a issue (but perhaps a request for feature) : I'm trying to set up wireguard interfaces completely from Foreman.
When the wirguard class is added, the package is installed correctly (tested on Debian 10). But I'm unable to set up an interface due to the lack of private key.
I saw there are some functions to generate private, public and preshared keys but I can't find how to call them for foreman's node definition. And Foreman's documentation does not mention this topic.

Any clue please ? Someone already should had the same need ?

And another tough :
there could be some king of workadound : wireguard allows you to start an interface without a 'privatekey=' line in the interface definition as long as you provide the private key by any mean. For example, on some nodes, I'm using this PostUp trick :
PostUp = wg set %i private-key /etc/wireguard/keys/private.key

But I can't do this because the private_key parameter is required in the interface definition.

Thanks for your work and help !
Julien

@ZS-Man
Copy link

ZS-Man commented May 13, 2020

Hi, I have same question. How to use function for key generate in Foreman.
Thanks.

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

No branches or pull requests

2 participants