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

    VoxBot

    04/09/2024, 9:10 AM
    Part of the reasons behind my questions are that there's a module I really like, and seem to use often enough, that's been abandoned by its creator for a few years now
  • v

    VoxBot

    04/09/2024, 9:10 AM
    what does the module do? Is it public?
  • v

    VoxBot

    04/09/2024, 9:11 AM
    ah a third party one
  • v

    VoxBot

    04/09/2024, 9:12 AM
    I have PRs in on GH for it but the first one I filed was over two years ago now and hasn't been touched.  It's also mostly using older idioms and I think still on the v3 Ruby API?  And I kinda want to grab it and bring it up to date and at least hand it off to someone who'll occasionally check a PR queue
  • v

    VoxBot

    04/09/2024, 9:12 AM
    (and I don't say that to judge - I mean if I weren't regularly working with Puppet for gainful employment, I don't know how responsive I'd be, either)
  • v

    VoxBot

    04/09/2024, 9:12 AM
    bastelfreak it's
    inkblot-ipcalc
  • d

    Dr Bunsen Honeydew

    04/09/2024, 9:13 AM
    See the
    inkblot-ipcalc
    module at https://forge.puppet.com/inkblot/ipcalc?src=slack&channel=voxpupuli
  • v

    VoxBot

    04/09/2024, 9:13 AM
    I think it was GPL, I forget
  • v

    VoxBot

    04/09/2024, 9:14 AM
    ...oh, or it was Apache.  Thanks, VoxBot.
  • v

    VoxBot

    04/09/2024, 9:16 AM
    didn't we port a lot of that to extlib
  • v

    VoxBot

    04/09/2024, 9:17 AM
    ah from Yelp/netstdlib we ported some stuff
  • d

    Dr Bunsen Honeydew

    04/09/2024, 9:17 AM
    See the
    yelp-netstdlib
    module at https://forge.puppet.com/yelp/netstdlib?src=slack&channel=voxpupuli
  • v

    VoxBot

    04/09/2024, 9:17 AM
    https://github.com/voxpupuli/puppet-extlib/tree/master/lib/puppet/functions/extlib
  • v

    VoxBot

    04/09/2024, 9:18 AM
    and there's also https://github.com/voxpupuli/puppet-extlib/pull/222
  • v

    VoxBot

    04/09/2024, 9:18 AM
    so maybe you could just provide a PR to extlib if something is missing for you
  • v

    VoxBot

    04/09/2024, 9:19 AM
    Possibly - this was the thing I JUST did: https://github.com/inkblot/puppet-ipcalc/pull/15
  • v

    VoxBot

    04/09/2024, 9:20 AM
    That's been a shockingly huge portion of my night and I'm about to go collapse into bed - it's nearly 2:30am here and I'm just good at making bad decisions today, apparently
  • v

    VoxBot

    04/09/2024, 9:21 AM
    I needed to sort an array of IP addresses into native binary order because that's how
    nmcli
    returns them when asked, and I needed to have any reasonable expectation at all that things would match without manually pre-sorting all the addresses and ranges involved
  • v

    VoxBot

    04/09/2024, 9:22 AM
    So I wrote ip_compare() and then went "y'know, while I'm in here..." and now it's 2:30 and wheeeeee faceplant
  • v

    VoxBot

    04/09/2024, 9:23 AM
    :D
  • v

    VoxBot

    04/09/2024, 9:23 AM
    classic
  • v

    VoxBot

    04/09/2024, 9:23 AM
    been there …
  • v

    VoxBot

    04/09/2024, 9:24 AM
    But yeah if those would be helpful in extlib, I can smash something together for extlib
  • v

    VoxBot

    04/09/2024, 9:24 AM
    well at extlib they PR would get a review and extlib in general is maintained
  • v

    VoxBot

    04/09/2024, 9:24 AM
    I'm not sure we use extlib but I remember seeing it before and thinking it looked darn handy
  • v

    VoxBot

    04/09/2024, 9:24 AM
    and it already contains related network functios
  • v

    VoxBot

    04/09/2024, 9:24 AM
    it's the cool sister of stdlib really
  • v

    VoxBot

    04/09/2024, 9:26 AM
    The nmcli stuff I was writing was also one of those things where I was like "surely someone's got a module for this," and that turned out to be a great deal less sure than expected
  • v

    VoxBot

    04/09/2024, 9:26 AM
    everything about nmcli is awful :(
  • v

    VoxBot

    04/09/2024, 9:27 AM
    so...the "okay how does advanced module and will I foot-gun myself if I try thing" questions may have more than one anticipated use
1...592593594...648Latest