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

    VoxBot

    11/02/2022, 8:19 PM
    er
  • v

    VoxBot

    11/02/2022, 8:20 PM
    https://paste.anarc.at/publish/2022-11-02-HjqeL2ZDAGTdc58FFQ_iGqGEMJMnbce_h32PzO0lVSs/stdin.txt rather
  • v

    VoxBot

    11/02/2022, 8:20 PM
    my problem is figuring out which pubkey i export there
  • v

    VoxBot

    11/02/2022, 8:21 PM
    curie in this case
  • v

    VoxBot

    11/02/2022, 8:21 PM
    so
  • v

    VoxBot

    11/02/2022, 8:21 PM
    make a pql query to get all nodes with your wireguard profile (if all of them should mesh)
  • v

    VoxBot

    11/02/2022, 8:22 PM
    iterate on that list. for each node get their wireguard_keys and networking.ip6 or whatever is the public ip, and come up with a naming scheme for the in-tunnel ips.
  • v

    VoxBot

    11/02/2022, 8:22 PM
    e.g. an internal subnet and the last octett is from their networking.ip6
  • v

    VoxBot

    11/02/2022, 8:23 PM
    and in their wireguard_keys list, you look for an entry named with the local hostname
  • v

    VoxBot

    11/02/2022, 8:23 PM
    that will require a few puppet runs on each box, but it should be fully automated to mesh itself
  • v

    VoxBot

    11/02/2022, 8:24 PM
    on top glue some BGP with bird, done
  • v

    VoxBot

    11/02/2022, 8:24 PM
    ah yes, i need pql for this, that would work
  • v

    VoxBot

    11/02/2022, 8:24 PM
    now i just need a puppetdb backend :p
  • v

    VoxBot

    11/02/2022, 8:24 PM
    i'm using some bespoke redis thing because puppetdb is hosed in debian
  • v

    VoxBot

    11/02/2022, 8:24 PM
    I feel sorry for you
  • v

    VoxBot

    11/02/2022, 8:24 PM
    shrugs
  • v

    VoxBot

    11/02/2022, 8:24 PM
    get a puppetdb :D
  • l

    Lumiere

    11/02/2022, 8:24 PM
    use the aio?
  • v

    VoxBot

    11/02/2022, 8:24 PM
    puppetdb 7 actually made it to experimental, it might be backportable
  • v

    VoxBot

    11/02/2022, 8:24 PM
    what's aio?
  • l

    Lumiere

    11/02/2022, 8:25 PM
    all in one/puppetlabs repos
  • v

    VoxBot

    11/02/2022, 8:25 PM
    i did want to avoid puppetdb, in general, it seems like quite a monster, just to get exported resources
  • l

    Lumiere

    11/02/2022, 8:25 PM
    and 7 is in testing
  • v

    VoxBot

    11/02/2022, 8:25 PM
    there is a well working puppetdb module "include puppetdb" tadaaaa puppetdb working :D
  • v

    VoxBot

    11/02/2022, 8:25 PM
    but of course, i often need more than exported resources
  • v

    VoxBot

    11/02/2022, 8:25 PM
    Spritzgebaeck: hilarious :p
  • v

    VoxBot

    11/02/2022, 8:25 PM
    i am aware of the existence of upstream packages, thanks
  • v

    VoxBot

    11/02/2022, 8:25 PM
    it's really a small software
  • v

    VoxBot

    11/02/2022, 8:25 PM
    puppetdb?!
  • v

    VoxBot

    11/02/2022, 8:25 PM
    yes
1...178179180...648Latest