Closed hggh closed 3 years ago
Interesting, I do that slightly different: https://github.com/duritong/puppet-wireguard/tree/master/lib/puppet/functions/wireguard
But yeah I see why you like to have it in trocla.
ah, I did not know that. also a good way.
I don't know if its a good idea to require the wg binary by trocla.
The binary is only required if you want to use the format, so I think it's ok.
add format to generate WireGuard public and private keys and store it into trocla. the wg binary needs to be present on the trocla (puppetserver) to generate a keypair. it uses YAML to store the pub and private key into trocla