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

    jhoblitt

    08/31/2022, 11:58 PM
    which more or less sums up every experience I've had with nmcli
  • j

    jhoblitt

    08/31/2022, 11:59 PM
    oh, it wants it prior to subcommands facepalm
  • j

    jhoblitt

    09/01/2022, 12:04 AM
    oh boy, a strange custom format to parse instead of providing json, great choice
  • j

    jhoblitt

    09/01/2022, 12:04 AM
    E.g.
    Copy code
    IP4.ROUTE[18]:dst = 198.32.252.208/31, nh = 10.229.140.134, mt = 408
    IP4.ROUTE[19]:dst = 198.32.252.210/31, nh = 10.229.140.134, mt = 408
  • j

    jhoblitt

    09/01/2022, 12:05 AM
    E.g.
    Copy code
    IP4.ROUTE[18]:dst = 198.32.252.208/31, nh = 10.229.140.134, mt = 408
    IP4.ROUTE[19]:dst = 198.32.252.210/31, nh = 10.229.140.134, mt = 408
  • g

    Grant Diffey

    09/01/2022, 12:05 AM
    did grok ever make it as a library?
  • v

    vchepkov

    09/01/2022, 12:06 AM
    if only systemd-networkd was part of BaseOS
  • j

    jhoblitt

    09/01/2022, 12:06 AM
    I don't understand why it didn't make it into EL9
    🤷‍♂️ 1
  • g

    Grant Diffey

    09/01/2022, 12:07 AM
    unless you feel like rolling your own libgrok could help @jhoblitt
  • j

    jhoblitt

    09/01/2022, 12:07 AM
    looks like it hasn't had an update in 4 years: https://rubygems.org/gems/jls-grok
  • j

    jhoblitt

    09/01/2022, 12:08 AM
    This depends on jls-grok and has frequent updates https://rubygems.org/gems/logstash-filter-grok
  • j

    jhoblitt

    09/01/2022, 12:09 AM
    homepage is google code...
  • j

    jhoblitt

    09/01/2022, 12:09 AM
    https://github.com/jordansissel/ruby-grok
  • j

    jhoblitt

    09/01/2022, 12:09 AM
    https://github.com/jordansissel/ruby-grok
  • g

    Grant Diffey

    09/01/2022, 12:10 AM
    mmm sad. it is far nicer to build parsers in than raw regex.
  • g

    Grant Diffey

    09/01/2022, 12:13 AM
    it's not terribly complicated and it's relied on by logstash users a lot so it might just be you know.. mature software 😉
  • j

    jhoblitt

    09/01/2022, 12:13 AM
    it looks like ruby's dbus bindings are long dead too
  • j

    jhoblitt

    09/01/2022, 12:14 AM
    I think maybe writing out the file and then shelling out to run nmcli to kick interfaces may be the least-worst option
  • j

    jhoblitt

    09/01/2022, 1:45 AM
    https://kellyjonbrazil.github.io/jc/docs/parsers/nmcli
  • s

    Slackbot

    09/01/2022, 5:07 AM
    This message was deleted.
    j
    b
    • 3
    • 8
  • b

    bastelfreak

    09/01/2022, 5:13 AM
    @jhoblitt if you want to write a type/provider, maybe ping @tuxmea, he mentioned it as well
  • t

    towo

    09/01/2022, 8:02 AM
    My brain fails at comprehending exactly how this provider works and how to test it, annoying.
  • b

    bastelfreak

    09/01/2022, 8:03 AM
    the openldap one?
  • t

    towo

    09/01/2022, 8:04 AM
    Yeah, the weird finicky stuff. Haven't quite understood the hoops yet how and when those receives come into play and whatnot
  • t

    towo

    09/01/2022, 8:04 AM
    Literally just randomly shoving code around until it sticks isn't helping 😄
  • t

    towo

    09/01/2022, 8:05 AM
    Should probably open up the documentation and actually figure out how that works in detail
  • t

    towo

    09/01/2022, 8:05 AM
    Because osmosis isn't working 😐
  • v

    VoxBot

    09/01/2022, 8:06 AM
    that's exactly how I feel every time I touch puppet providers 🤷
  • t

    towo

    09/01/2022, 8:08 AM
    Eh, the actual provider isn't the problem, but the whole rspec environment is still a bit of a "yeah, magic somewhere, just write patterns here and it works"
  • t

    towo

    09/01/2022, 8:08 AM
    until it doesn't.
1...137138139...648Latest