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

    VoxBot

    08/02/2023, 9:09 PM
    Approved!
  • g

    genebean

    08/02/2023, 9:51 PM
    @ewoud - I’ll be doing a lot of puppet work and some other sysadmin and SRE work
  • v

    VoxBot

    08/02/2023, 9:55 PM
    ah, back in the field
  • g

    genebean

    08/03/2023, 12:10 AM
    Yuuuuup
  • r

    Robert Waffen

    08/03/2023, 7:43 AM
    may i have a review pls? https://github.com/voxpupuli/puppet-catalog-diff-viewer/pull/43
  • m

    Mike Fröhner (crazymind1337)

    08/03/2023, 8:14 AM
    Module is tested works fine for me.
  • b

    bastelfreak

    08/03/2023, 8:46 AM
    @Alex Fisher do you have a fond memory of catalog_diff and file resourced with Deferred() as content?
  • b

    bastelfreak

    08/03/2023, 8:46 AM
    that's represented as a class/object in the catalog and not as string and catalog_diff doesn't like that 😞
  • b

    bastelfreak

    08/03/2023, 8:47 AM
    https://github.com/voxpupuli/puppet-catalog_diff/blob/master/lib/puppet/catalog-diff/comparer.rb#L137
  • b

    bastelfreak

    08/03/2023, 8:47 AM
    here it yells it cannot run md5sum on a class
  • a

    Alex Fisher

    08/03/2023, 9:02 AM
    I can’t remember that coming up… Which version of puppet?
  • a

    Alex Fisher

    08/03/2023, 9:04 AM
    Not with node encrypt and deferred strings anyway.
  • b

    bastelfreak

    08/03/2023, 9:12 AM
    7.24
  • b

    bastelfreak

    08/03/2023, 9:12 AM
    and I got the catalog from curling the puppetserver
  • b

    bastelfreak

    08/03/2023, 9:12 AM
    I don't know if that represents it differently
  • b

    bastelfreak

    08/03/2023, 9:13 AM
    curl "https://$(puppet config print server):8140/puppet/v3/catalog/$(hostname -f)?environment=$(puppet config print environment)" --cert $(puppet config print hostcert) --cacert $(puppet config print localcacert) --key "$(puppet config print hostprivkey)" --silent | jq . > catalog.json
  • b

    bastelfreak

    08/03/2023, 9:13 AM
    catalog_diff supports a hash at that place, maybe it's normally represented as a hash but now it isn't 🤔
  • b

    bastelfreak

    08/03/2023, 10:03 AM
    ah the catalog_diff transforms the json to pson
  • b

    bastelfreak

    08/03/2023, 10:46 AM
    @Alex Fisher https://gist.github.com/bastelfreak/fce82e7f8242781adccac313e56d0006
  • v

    VoxBot

    08/03/2023, 10:50 AM
    test
  • v

    VoxBot

    08/03/2023, 10:50 AM
    ha, fixed the bridge
  • v

    VoxBot

    08/03/2023, 10:50 AM
    so to update irc about latest slack messages: I've a weird issue with catalog_diff where it finds a Deferred function but expects a string: https://gist.github.com/bastelfreak/fce82e7f8242781adccac313e56d0006 . I'm open for ideas :)
  • b

    bastelfreak

    08/03/2023, 11:36 AM
    something seems to be really odd here
  • b

    bastelfreak

    08/03/2023, 11:37 AM
    if I do the curl and save it to a file (without piping through jq) and then try
    PSON.parse()
    like in https://github.com/voxpupuli/puppet-catalog_diff/blob/master/lib/puppet/catalog-diff/compilecatalog.rb#L113 I also get an error
  • c

    csharpsteen

    08/03/2023, 2:37 PM
    The
    /puppet/v4/catalog
    API is the modern way to get catalogs compiled outside of a
    puppet agent
    run: https://www.puppet.com/docs/puppet/7/server/puppet-api/v4/catalog.html That's what CD4PE Impact Analysis uses.
  • b

    bastelfreak

    08/03/2023, 2:37 PM
    yeah, but that works a bit differently
  • b

    bastelfreak

    08/03/2023, 2:38 PM
    we use that in catalog_diff
  • b

    bastelfreak

    08/03/2023, 2:44 PM
    @csharpsteen while you're here! ideas why a node stops printing debug output during the catalog loading while doing
    Adding autorequire relationship
    ? Output freezes and it eats up all available memory. we talked about a similar behaviour in the past that was caused by two file resources with recurse => true. That's not the case at the moment. I've 200 nodes, all with 5 file resources that have recurse => true, but for different paths. and only 5 nodes have this out of memory problem. Any idea how I could debug this? Pe 2021/puppet agent 7.24
  • b

    bastelfreak

    08/03/2023, 2:45 PM
    I can reproduce that when I order a profile
  • b

    bastelfreak

    08/03/2023, 2:46 PM
    which makes little sense to me
1...569570571...648Latest