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

    VoxBot

    03/17/2023, 10:12 AM
    I always keep this rule in my head: syncing code is an anti-pattern, but sometimes a necessary evil
  • c

    Craig Gumbley

    03/17/2023, 10:12 AM
    I like the way module sync handles things and I like the fact that it is optional
  • v

    VoxBot

    03/17/2023, 10:13 AM
    so in practice that means using gems to ship code if you can
  • v

    VoxBot

    03/17/2023, 10:13 AM
    build instructions for pdk against system ruby would also help. pdk ships ancient ruby and packages aren't provided for all platforms
  • v

    VoxBot

    03/17/2023, 10:13 AM
    (same for bolt)
  • v

    VoxBot

    03/17/2023, 10:14 AM
    and reusable GitHub workflows, so I wrote https://github.com/voxpupuli/gha-puppet
  • v

    VoxBot

    03/17/2023, 10:14 AM
    but if you have questions, I'd be happy to help you get rid of synced code
    👍 1
    ❤️ 2
  • v

    VoxBot

    03/17/2023, 10:15 AM
    and https://github.com/voxpupuli/voxpupuli-test carries a rubocop config, so you only need 2 lines in your .rubocop.yml
  • c

    Craig Gumbley

    03/17/2023, 10:15 AM
    the feedback I have seen suggests that some people don’t like PDK controlling the whole module by default… it will be a fun journey. Re system build. The gem seems to work alright for 2.7 for the most part.. but largely would need work to make sure the version selection doesn’t become confusing
  • v

    VoxBot

    03/17/2023, 10:17 AM
    with the more minimal synced files it becomes much easier to avoid syncing a file altogether
  • c

    Craig Gumbley

    03/17/2023, 10:18 AM
    Yeah agree
  • v

    VoxBot

    03/17/2023, 10:20 AM
    and I worked hard to make sure that adding an OS version as supported is just adding it to metadata.json, though I think PDK is also at that level now, which is an excellent place to be in
  • s

    Slackbot

    03/17/2023, 10:36 AM
    This message was deleted.
    c
    b
    • 3
    • 5
  • v

    VoxBot

    03/17/2023, 11:04 AM
    bastelfreak: given you're awake I guess you're back in a European timezone
  • v

    VoxBot

    03/17/2023, 11:05 AM
    back: yes. Awake? kinda
  • v

    VoxBot

    03/17/2023, 11:06 AM
    I didn't travel to the US and I'm not sure I'm quite awake :P
  • v

    VoxBot

    03/17/2023, 11:09 AM
    :D
  • v

    VoxBot

    03/17/2023, 11:12 AM
    bastelfreak: https://github.com/voxpupuli/rspec-puppet-facts/pull/146 it's rather large now, but I kind of prefer this
  • v

    VoxBot

    03/17/2023, 11:15 AM
    I'm totally fine with it
  • v

    VoxBot

    03/17/2023, 12:45 PM
    bastelfreak: FYI: I'm taking a stab at running beaker acceptance tests in CI, but I'm start to realize my removal of deprecated methods didn't look at that
  • v

    VoxBot

    03/17/2023, 12:45 PM
    ah
  • v

    VoxBot

    03/17/2023, 12:59 PM
    https://github.com/voxpupuli/beaker/pull/1784 worked locally with vagrant_libvirt as hypervisor, let's see about CI
  • v

    VoxBot

    03/17/2023, 1:00 PM
    bleh, 3.2 fails because of beaker-docker
  • v

    VoxBot

    03/17/2023, 1:02 PM
    yeah, same problem I saw in beaker-rspec :(
  • y

    Yury Bushmelev

    03/17/2023, 1:22 PM
    Back to PDK thread (I’m not using the threads as those are not really good for our IRC users).. I like that puppet agent, PDK and Bolt all have Ruby bundled with them.. So my strong opinion is to keep it distributed in this way. Though it might be good idea to simplify using them as Ruby gems. Then those who would like to use their own Ruby can do it easily… Just my $2c
  • y

    Yury Bushmelev

    03/17/2023, 1:23 PM
    Wrt default_facts I agree as there is nice
    on_supported_os
    which should be used everywhere 🙂
  • v

    VoxBot

    03/17/2023, 1:23 PM
    If you need to support legacy systems it's good to vendor ruby. but on modern systems I prefer to use system ruby/openssl/curl
  • y

    Yury Bushmelev

    03/17/2023, 1:23 PM
    I don’t want to manage Ruby on my MacOS or Windows 🙂
  • v

    VoxBot

    03/17/2023, 1:23 PM
    and I would be happy if Puppet would provide build instructions against system ruby/openssl/curl
    👍🏻 1
  • y

    Yury Bushmelev

    03/17/2023, 1:25 PM
    And then yes, we need some common GHA for PDK-based module validating/testing (no rocket science but still someone should spent some time on it..)
    👍 1
1...363364365...648Latest