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

    VoxBot

    03/31/2023, 1:34 PM
    wc -l
    returned 38
  • v

    VoxBot

    03/31/2023, 1:34 PM
    bastelfreak: btw, I don't know if you saw but in beaker_puppet_helpers I took the approach of building the module and then run puppet module install /path/to/module.tar.gz which will respect metadata.json
  • v

    VoxBot

    03/31/2023, 1:34 PM
    ah nice. Haven't seen that yet
  • v

    VoxBot

    03/31/2023, 1:35 PM
    and since it's just a single puppet module install invocation, it should be much faster and a single transactino
  • v

    VoxBot

    03/31/2023, 1:35 PM
    and you won't get the issue where it tries to install stdlib 8 but then a later module only accepts stdlib 7
  • v

    VoxBot

    03/31/2023, 1:35 PM
    so you create a .tar.gz from the module we're testing and pmt will install that + all deps?
  • v

    VoxBot

    03/31/2023, 1:36 PM
    correct
  • v

    VoxBot

    03/31/2023, 1:36 PM
    neat
  • v

    VoxBot

    03/31/2023, 1:36 PM
    using puppet-modulebuilder, so it doesn't sync the whole module anymore either
  • v

    VoxBot

    03/31/2023, 1:36 PM
    didn't know pmt supports that
  • v

    VoxBot

    03/31/2023, 1:37 PM
    https://github.com/voxpupuli/beaker_puppet_helpers/blob/422c1ec0dce9a391927a6e0b2c1f7f040fff49bd/lib/beaker_puppet_helpers/module_utils.rb#L31-L57
  • v

    VoxBot

    03/31/2023, 1:37 PM
    I thought it was a very elegant solution
  • v

    VoxBot

    03/31/2023, 1:38 PM
    yes it is
  • v

    VoxBot

    03/31/2023, 3:25 PM
    there isn't such a thing as named arguments in a function call, right?
  • v

    VoxBot

    03/31/2023, 5:55 PM
    https://github.com/voxpupuli/puppet-systemd/pull/324 I could use a release :)
  • v

    VoxBot

    03/31/2023, 6:51 PM
    ewoud: can I help with any wrt https://github.com/theforeman/puppet-puppet/pull/869 and https://github.com/theforeman/puppet-puppet/pull/868 ?
  • v

    VoxBot

    03/31/2023, 6:51 PM
    once the former is fixed I can fixup the latter and the tests should pass
  • v

    VoxBot

    03/31/2023, 7:02 PM
    lavamind: I really need to wrap up a migration first, then I can take a look
  • v

    VoxBot

    03/31/2023, 7:03 PM
    gotcha
  • v

    VoxBot

    03/31/2023, 7:03 PM
    but I think I'm closing to migrating our backups from Dirvish, which is unmaintained since 2014 or so, to Restic
  • v

    VoxBot

    03/31/2023, 7:03 PM
    then I can turn off the old backup server
  • v

    VoxBot

    03/31/2023, 7:04 PM
    nice
  • v

    VoxBot

    03/31/2023, 7:07 PM
    but adapting an existing puppet module, still not sure it saved me time :P
  • v

    VoxBot

    03/31/2023, 7:14 PM
    :D
  • v

    VoxBot

    03/31/2023, 7:18 PM
    it did taught me bout the lest() function, which can be like a better pick() (which doesn't deal with undef well)
  • y

    Yury Bushmelev

    03/31/2023, 7:33 PM
    lest() is nice! I’m using it frequently (
    $x = $a.dig('foo', 'bar').lest || { 'default value' }
    )
  • y

    Yury Bushmelev

    03/31/2023, 7:33 PM
    though can use
    get()
    in this particular example I think..
  • v

    VoxBot

    04/01/2023, 1:34 PM
    morning
  • v

    VoxBot

    04/01/2023, 1:35 PM
    morning
  • v

    VoxBot

    04/02/2023, 2:17 PM
    can I get a review for https://github.com/voxpupuli/puppet-nginx/pull/1541
1...397398399...648Latest