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

    VoxBot

    07/19/2023, 9:28 AM
    https://yum.puppetlabs.com/puppet/el/7/aarch64/index.html is there a reason 7.25.0 wasn't published?
  • v

    VoxBot

    07/19/2023, 9:36 AM
    also, if someone is interested: I'm playing with a script to derive the Ruby testing matrix from the required_ruby_version field in the gemspec: https://github.com/theforeman/actions/pull/3
  • v

    VoxBot

    07/19/2023, 9:38 AM
    so similar to gha-puppet where you just set the Puppet requirement in metadata.json and CI is updated, you'll just make sure required_ruby_version is correct
  • v

    VoxBot

    07/19/2023, 11:46 AM
    playing with creating more actions: https://github.com/marketplace/actions/derive-ruby-versions - and I just realized I should have added an example
  • v

    VoxBot

    07/19/2023, 11:53 AM
    ewoud: nice
  • v

    VoxBot

    07/19/2023, 11:55 AM
    and https://github.com/theforeman/actions/pull/3/files uses that, https://github.com/ekohl/metadata_json_deps/pull/21/files is a complete example
  • v

    VoxBot

    07/20/2023, 3:22 PM
    I rebased https://github.com/voxpupuli/rspec-puppet-facts/pull/152 and now it's green
  • s

    Slackbot

    07/20/2023, 3:45 PM
    This message was deleted.
    y
    b
    +2
    • 5
    • 51
  • v

    VoxBot

    07/20/2023, 3:50 PM
    bastelfreak: and I just realized I found another way to shave off a second (3,5 → 2,5): https://github.com/voxpupuli/rspec-puppet-facts/pull/158
  • v

    VoxBot

    07/20/2023, 3:51 PM
    very hacky, needs work but the concept is simple
  • v

    VoxBot

    07/20/2023, 3:51 PM
    ah neat
  • v

    VoxBot

    07/20/2023, 3:52 PM
    if we enhance FacterDB to support returning just string keys then it's easier - may even be better to move the whole string vs symbol keys from FacterDB to rspec-puppet-facts
  • y

    Yury Bushmelev

    07/20/2023, 3:53 PM
    nice!
  • v

    VoxBot

    07/20/2023, 3:54 PM
    on the currently released version it took 5,89 seconds to load the same result, for comparison
  • v

    VoxBot

    07/21/2023, 10:25 AM
    https://github.com/voxpupuli/facterdb/pull/282 feels hacky - I wonder if we should accept the JSON.parse(db.to_json) overhead
  • v

    VoxBot

    07/21/2023, 10:25 AM
    ewoud: looks like you went down the performance rabbithole :D
  • v

    VoxBot

    07/21/2023, 10:26 AM
    yes I did
  • v

    VoxBot

    07/21/2023, 10:26 AM
    and I also noticed JGrep has its own implementation of .dig() and wonder how much of an overhead that is
  • v

    VoxBot

    07/21/2023, 10:28 AM
    and I'm doing my best to resist diving in further ;)
  • v

    VoxBot

    07/21/2023, 10:38 AM
    :
  • v

    VoxBot

    07/21/2023, 10:38 AM
    :D
  • r

    Ricard Valverde

    07/21/2023, 11:06 AM
    Hi there, does anyone know if it's possible to use the catalog_diff tool in a local puppet
    gem
    installation ? The idea is to use 2 already generated catalogs. The problem is that puppet installed as a gem does not have the
    puppetdb
    requirement that catalog_diff apparently uses:
    Copy code
    $ bundle exec puppet catalog diff --version
    Error: Could not autoload puppet/face/catalog/diff: cannot load such file -- puppet/util/puppetdb
    Error: Could not parse application options: Could not autoload puppet/face/catalog/diff: cannot load such file -- puppet/util/puppetdb
  • s

    Slackbot

    07/21/2023, 11:11 AM
    This message was deleted.
    r
    b
    d
    • 4
    • 61
  • v

    VoxBot

    07/21/2023, 11:16 AM
    sighs
  • v

    VoxBot

    07/21/2023, 12:40 PM
    can I get a review for https://github.com/voxpupuli/puppet-catalog_diff/pull/100 ?
    ✅ 1
  • y

    Yury Bushmelev

    07/21/2023, 1:02 PM
    JFYI, if you’d like to simplify a
    Variant[String, Array[String]]
    to just
    Array[String]
    you can use
    Array.new($x, true)
  • y

    Yury Bushmelev

    07/21/2023, 1:02 PM
    Thanks to ewoud for the idea (
    true
    is important, see https://github.com/puppetlabs/puppet-specifications/blob/master/language/types_values_variables.md#arraynew)
  • y

    Yury Bushmelev

    07/21/2023, 1:03 PM
    ah, I don’t need
    .new()
    even.. can be just
    Array($x, true)
  • y

    Yury Bushmelev

    07/21/2023, 1:07 PM
    now I can drop all those [$x].flatten finally!
  • v

    VoxBot

    07/21/2023, 1:35 PM
    oh, the true argument is a good one - certainly important
1...557558559...648Latest