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

    Yury Bushmelev

    04/22/2023, 11:15 AM
    looks like I found a bug while reading some random beaker provider’s code: https://github.com/voxpupuli/beaker-google/blob/main/lib/beaker/hypervisor/google_compute.rb#L20
  • y

    Yury Bushmelev

    04/22/2023, 11:16 AM
    this line should be
    public_keyfile
    I believe
  • y

    Yury Bushmelev

    04/22/2023, 11:17 AM
    well.. maybe not that easy.. but something is wrong there.. 🤔
  • y

    Yury Bushmelev

    04/22/2023, 11:18 AM
    maybe just naming issue though..
  • b

    bastelfreak

    04/22/2023, 11:23 AM
    possible that nobody uses that plugin at the moment
  • y

    Yury Bushmelev

    04/22/2023, 11:25 AM
    well.. I guess as long as
    BEAKER_gce_ssh_public_key
    points to private key actually it should be fine
  • y

    Yury Bushmelev

    04/22/2023, 11:26 AM
    so looks like a documentation issue
  • b

    bastelfreak

    04/22/2023, 12:08 PM
    so volunteers to drop Puppet 6 from our metadata.json?
  • b

    bastelfreak

    04/22/2023, 12:08 PM
    I think we should also update rubocop, but that should be another PR
  • a

    Alex Fisher

    04/22/2023, 12:12 PM
    Could you leave puppet_certificate alone until I get at least 1 release out ‘as is’? (and please keep pinging me throughout the week!)
  • b

    bastelfreak

    04/22/2023, 12:20 PM
    yeah sure
  • b

    bastelfreak

    04/22/2023, 12:21 PM
    in theory we could also release all modules with unreleased enhancements/bugfixes, then drop puppet 6, release again. But that is a huge amount of work
  • b

    bastelfreak

    04/22/2023, 12:26 PM
    and we need to check if we can use voxpupuli-rubocop for our modules as well
  • b

    bastelfreak

    04/22/2023, 12:26 PM
    well, should check
  • b

    bastelfreak

    04/22/2023, 12:33 PM
    @Alex Fisher have you used puppet_certificate? how bad is the idea to use that to mansge the puppetserver cert?
  • a

    Alex Fisher

    04/22/2023, 12:35 PM
    BTW, you realise puppetserver 7 is only ruby 2.6 compatible right?
  • a

    Alex Fisher

    04/22/2023, 12:38 PM
    So make sure you don’t go beyond that in the module rubocop rules or you will break stuff.
  • b

    bastelfreak

    04/22/2023, 12:57 PM
    Puppetlabs lints for Ruby 2.7 on their modules
  • y

    Yury Bushmelev

    04/22/2023, 2:37 PM
    PDK default is 2.7 in rubocop rules IIRC
  • a

    Alex Fisher

    04/22/2023, 3:19 PM
    IMO that's a mistake then! @Craig Gumbley ?
  • b

    bastelfreak

    04/22/2023, 3:28 PM
    during the puppet 6 days, they also linted for the ruby version in the agent, not the older puppetserver
  • b

    bastelfreak

    04/22/2023, 3:28 PM
    (so do we)
  • a

    Alex Fisher

    04/22/2023, 4:57 PM
    And I remember the bug reports… The only extra recommendations rubocop will give are the ones guaranteed to break stuff in functions and types.
  • s

    Slackbot

    04/22/2023, 7:28 PM
    This message was deleted.
    c
    a
    • 3
    • 9
  • a

    Alex Fisher

    04/22/2023, 7:30 PM
    https://github.com/puppetlabs/pdk-templates/blob/main/moduleroot/.rubocop.yml.erb#L10
  • a

    Alex Fisher

    04/22/2023, 7:34 PM
    They do run the spec tests against 2.7 which is perhaps a bit risky (and better options might be a bit limited), but at least the code rubocop has looked at is valid Ruby 2.5.
  • a

    Alex Fisher

    04/22/2023, 7:37 PM
    You’re going to make rubocop deliberately use ruby 2.7 compatible only code if it prefers the new style and this will break modules for puppetserver 7 users (and 8 isn’t out yet)
  • a

    Alex Fisher

    04/22/2023, 7:42 PM
    It was more annoying with puppetserver 5? as you had a choice of two jruby implementations leading to issues like this https://github.com/voxpupuli/puppet-firewalld/issues/250
  • y

    Yury Bushmelev

    04/22/2023, 8:21 PM
    Ah.. so I was wrong about the ruby version in pdk..
  • b

    bastelfreak

    04/22/2023, 8:21 PM
    @Alex Fisher https://github.com/puppetlabs/puppetlabs-postgresql/blob/main/.rubocop.yml#L12
1...424425426...647Latest