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

    VoxBot

    07/05/2023, 8:48 PM
    s
  • v

    VoxBot

    07/06/2023, 1:59 AM
    I had a thing where trying to run acceptance tests on CentOS locally in Docker (with CentOS 8) was making Docker crash, and now is erroring with "EOFError (EOFError)" after the first phase runs and /sbin/init runs... not seeing anything obvious about it from a web search. ring a bell for anyone?
  • v

    VoxBot

    07/06/2023, 2:00 AM
    Also, I logged into an old screen session, and... wowzers. I was the only person left in the channel, and there were all kinds of offensive messages going on. Did something get messed up with one of the libera nodes?
  • v

    VoxBot

    07/06/2023, 5:55 AM
    morning
  • v

    VoxBot

    07/06/2023, 5:55 AM
    wby: sounds odd. You can always report that to #libera
  • t

    tuxmea

    07/06/2023, 9:36 AM
    Are there any other forge-server implementations besides unibet/kindregroup forge-server? Both dont receive updates for quite some time. Are there any other alternatives besides JFrog or Nexus?
  • j

    johan

    07/06/2023, 9:49 AM
    Just created https://github.com/voxpupuli/puppet-mongodb/pull/677 Is it appropriate to post this here ? Still work in process, currently making it past all tests. Any advise/comments are welcome. Still in 'it works for me now' state
  • s

    Slackbot

    07/06/2023, 11:22 AM
    This message was deleted.
    ❤️ 1
    b
    y
    +3
    • 6
    • 5
  • v

    VoxBot

    07/06/2023, 11:59 AM
    all the best
  • v

    VoxBot

    07/06/2023, 11:59 AM
    and what are your plans for the future?
  • v

    VoxBot

    07/06/2023, 12:15 PM
    bastelfreak: https://github.com/voxpupuli/rspec-puppet-facts/pull/151 I think it's now ready and I feel confident in the tests, but would appreciate it if someone did some testing on real modules
  • v

    VoxBot

    07/06/2023, 12:17 PM
    I think the solution ended up being fairly elegant with first a strict filter and then a loose fallback so it's doable to follow
  • v

    VoxBot

    07/06/2023, 12:19 PM
    I will try to check that
  • v

    VoxBot

    07/06/2023, 12:21 PM
    and please look at the loose requirement conversion: I chose to ignore patch versions in loose requirements, allowing it to use 3.9.6 if 3.9.5 was requested but not found, but perhaps there should be an intermediate selection too where it prefers 3.9.[0-4]
  • v

    VoxBot

    07/06/2023, 12:22 PM
    since facter 3 I don't think this is much of a concern for us
  • v

    VoxBot

    07/06/2023, 12:23 PM
    so 3.9.5 could be: try ~> 3.9.5.0, fall back to >= 3.9.0 <= 3.9.5 (with warning that it's falling back), fall back to <= 3.9.5 (with warning that it's falling back)
  • v

    VoxBot

    07/06/2023, 12:23 PM
    I had the same thought
  • s

    simonhoenscheid

    07/06/2023, 1:03 PM
    @ewoud: do you have some experience with https://github.com/puppetlabs/puppet/blob/main/lib/puppet/util/fileparsing.rb?
  • v

    VoxBot

    07/06/2023, 1:21 PM
    can't say that I do
  • n

    Nick Bertrand

    07/06/2023, 4:23 PM
    How do people mock Puppet 4x API Ruby functions in rspec? All of the existing examples I could find were for the old Ruby function API, e.g.
    Puppet::Parser::Functions.newfunction
    . I'm specifically trying to override the function code of an existing 4x API Ruby function. This seems to work, but I'm wondering if there's an easier/better way:
    Copy code
    RSpec.configure do |c|
      c.before :each do
        allow(Puppet::Pops::Loader::RubyFunctionInstantiator).to receive(:create).and_wrap_original do |original, loader, typed_name, source_ref, ruby_code_string, &_block|
          if typed_name.name == 'mocked_function'
            ruby_code_string = 'Puppet::Functions.create_function(:mocked_function) do
              def mocked_function(*_args)
                'mocked value'
              end
            end'
          end
          original.call(loader, typed_name, source_ref, ruby_code_string)
        end
      end
    end
  • v

    VoxBot

    07/06/2023, 4:23 PM
    can I get a review for https://github.com/voxpupuli/voxpupuli.github.io/pull/303/files
  • v

    VoxBot

    07/06/2023, 5:53 PM
    https://voxpupuli.org/sponsoring/ nice, impressive list
  • v

    VoxBot

    07/06/2023, 8:50 PM
    bastelfreak: thanks for the review :). I wanna get https://github.com/voxpupuli/puppet-falco/pull/25 and https://github.com/voxpupuli/puppet-falco/pull/26 out for solving the same issues I'm running into, and might as well include https://github.com/voxpupuli/puppet-falco/pull/23 from the same user. Looks like you're good with #26 & #23, so anything more about #25 to update?
  • v

    VoxBot

    07/06/2023, 8:53 PM
    Hunner: when its wrapped in a condition, is ensure_packages required or could we drop that?
  • v

    VoxBot

    07/06/2023, 8:54 PM
    because thats deprecated in stdlib 9
  • v

    VoxBot

    07/06/2023, 8:56 PM
    Oh it's deprecated? What pattern replaces ensure_packages()?
  • v

    VoxBot

    07/06/2023, 8:56 PM
    It's got the condition around it now
  • v

    VoxBot

    07/06/2023, 8:57 PM
    But I totally agree with you that clang/llvm/dkms are kind of generic. But they're also required for this thing to work
  • v

    VoxBot

    07/06/2023, 8:57 PM
    it is now namespaced as stdlib::ensure_packages
  • v

    VoxBot

    07/06/2023, 8:58 PM
    Ooo just a namespaced function. If that was introduced long enough ago I can just substitute that
1...542543544...647Latest