https://www.puppet.com/community logo
Join Slack
Powered by
# voxpupuli
  • v

    VoxBot

    10/28/2022, 2:22 PM
    i'm a little confused because the README and REFERENCE show examples where the public_key is explicitly passed, i would have expect that to be somewhat automated
  • v

    VoxBot

    10/28/2022, 2:22 PM
    bastelfreak: oh really
  • v

    VoxBot

    10/28/2022, 2:22 PM
    how do you do that!
  • v

    VoxBot

    10/28/2022, 2:22 PM
    https://puppet.com/docs/puppet/7/configuration.html#resubmit-facts
  • v

    VoxBot

    10/28/2022, 2:23 PM
    that's probably the public key from the peer
  • v

    VoxBot

    10/28/2022, 2:23 PM
    but you can also generate the key somewhere else and pass it to the module I think
  • v

    VoxBot

    10/28/2022, 2:23 PM
    but if you don't pass anything, it will be generated
  • v

    VoxBot

    10/28/2022, 2:23 PM
    wow, thanks!
  • v

    VoxBot

    10/28/2022, 2:24 PM
    the network setup might be a bit opiniated. I use this to generate tunnels and run BGP across it to announce routes
  • v

    VoxBot

    10/28/2022, 2:24 PM
    if it doesn't suit your needs, just send me a PR
  • v

    VoxBot

    10/28/2022, 2:25 PM
    okay, i might just do that
  • v

    VoxBot

    10/28/2022, 2:25 PM
    i'm still a little confused about the public_key thing
  • v

    VoxBot

    10/28/2022, 2:25 PM
    like if the key is autogenerated, why isn't it passed automatically there
  • v

    VoxBot

    10/28/2022, 2:25 PM
    you have it in a fact, why can't it just be reused?
  • v

    VoxBot

    10/28/2022, 2:25 PM
    maybe i need to play with it to figure it out
  • v

    VoxBot

    10/28/2022, 2:25 PM
    ewoud: can I bother you again with https://github.com/voxpupuli/puppet-vault/actions/runs/3346138828/jobs/5542575027 ? I'm not sure why I get all the `undefined method
    parameters' for nil:NilClass
  • v

    VoxBot

    10/28/2022, 2:27 PM
    # @param public_key base64 encoded pubkey from the remote peer
  • v

    VoxBot

    10/28/2022, 2:27 PM
    anarcat: that's for the peer. but you can pass the local private key if you don't want puppet to generate it locally
  • v

    VoxBot

    10/28/2022, 2:27 PM
    https://github.com/voxpupuli/puppet-wireguard/blob/master/manifests/interface.pp#L135
  • v

    VoxBot

    10/28/2022, 2:27 PM
    bastelfreak: probably because the resource is not in the catalog
  • v

    VoxBot

    10/28/2022, 2:28 PM
    ah :D
  • v

    VoxBot

    10/28/2022, 2:28 PM
    bastelfreak: https://github.com/puppetlabs/puppetlabs_spec_helper/blob/a9fcee6adf21079b72e88d5f5bfd4c954c00fd4c/lib/puppetlabs_spec_helper/module_spec_helper.rb#L8
  • v

    VoxBot

    10/28/2022, 2:28 PM
    well
  • v

    VoxBot

    10/28/2022, 2:28 PM
    it's doing nil.send(:parameters)
  • v

    VoxBot

    10/28/2022, 2:28 PM
    bastelfreak: would it make sense to use exported resources to have peers export themselves to each other?
  • v

    VoxBot

    10/28/2022, 2:28 PM
    i gues it depends on the network topology here...
  • v

    VoxBot

    10/28/2022, 2:29 PM
    anarcat: I thought about it. but you can already use a PQL query to get the fact with the public key from all other nodes
  • v

    VoxBot

    10/28/2022, 2:29 PM
    the module will export local pubkeys
  • v

    VoxBot

    10/28/2022, 2:29 PM
    https://github.com/voxpupuli/puppet-wireguard/blob/master/lib/facter/wireguard_pubkeys.rb
  • v

    VoxBot

    10/28/2022, 2:29 PM
    ewoud: ah thanks
1...171172173...648Latest