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

    bastelfreak

    10/16/2025, 2:59 PM
    bundle exec rake spec
    should work
  • b

    Brian Schonecker

    10/16/2025, 2:59 PM
    I'm still getting the same "........................." output as the tests run.
  • b

    bastelfreak

    10/16/2025, 2:59 PM
    or
    bundle exec rspec spec/foo/bla_spec.rb
  • b

    bastelfreak

    10/16/2025, 3:00 PM
    mhm I think the format is hardcoded to progress (which are those dots)
  • b

    bastelfreak

    10/16/2025, 3:00 PM
    but there's a summary of all failures after the test is done
  • b

    Brian Schonecker

    10/16/2025, 3:01 PM
    Is there a 'fail fast' option? I've tried --fail-fast but that's not an option.
  • b

    Brian Schonecker

    10/16/2025, 3:02 PM
    I'm trying to submit a pull request to puppet-chrony but my tests are failing and it's taking 2 minutes to run the tests before the errors are displayed.
  • b

    bastelfreak

    10/16/2025, 3:02 PM
    you can always abort it and then it will print all the failures that already happened
  • b

    Brian Schonecker

    10/16/2025, 3:25 PM
    Thank you.
  • b

    Brian Schonecker

    10/16/2025, 3:35 PM
    Here is my puppet-chrony pull request for a feature request (manage /etc/sysconfig/chronyd on RHEL family). I got all kinds of errors about "memoized helper". I tried to re-paramater-itize the spec file but there wasn't anything I could do to fix the rubocop warning. I was forced to put in the absolutepath to the /etc/sysconfig/chronyd file (part of the pull request). Can anyone recommend a change that will pass the rubocop checks AND eliminate the hard coding of the path I had to do in ./spec/classes/chrony_spec.rb?
    b
    • 2
    • 12
  • g

    gary

    10/17/2025, 7:49 AM
    Will there be a new release of stdlib anytime soon? Running into the
    has_ip_address()/has_ip_network()
    issue and would just like to use a released version vs git
  • t

    tuxmea

    10/17/2025, 10:20 AM
    Kind reminder for next week: Wednesday, October 22nd 2025: https://puppet.run Event in Hamburg, Germany. Talks will be done in English, unluckily no recording. You can use our Voucher Code “betadotsFREE” to get a ticket without costs. I am talking about different ways to test Puppet DSL code, Robert will talk about containers in Puppet development and Lennart will run a demo on automating icinga2. Besides this there will be presentations on Puppet Edge (a new feature in Puppet Core) , automating NIS2 compliance and managing systems in distributed infrastructure.
  • b

    bastelfreak

    10/17/2025, 12:36 PM
    @Lukas Audzevicius hey, any chance you can merge https://github.com/puppetlabs/forge-ruby/pull/129 or point some people at it?
    l
    • 2
    • 1
  • j

    josh

    10/17/2025, 4:33 PM
    Hi folks, we've backported facter 4.15 to the public repo: https://github.com/puppetlabs/facter/pull/2795 It includes all changes from private facter except automation relating to puppetcore.
    👏 5
    👏🏻 1
    🙌 2
    b
    • 2
    • 2
  • s

    smortex

    10/18/2025, 7:07 AM
    @josh maybe related: puppetserver-ca 2.7.1 was released to rubygems.org (https://rubygems.org/gems/puppetserver-ca/versions/2.7.1) on July 10th, but the repo was not updated since Feb 8th… 2024 (date of the release of version 2.7.0). I saw that unexpectedly working on the legacy Puppet ports on FreeBSD, not a big deal for me, just so that you are aware 😉.
  • t

    tuxmea

    10/18/2025, 7:42 AM
    Maybe from the private fork and it was forgotten to push the changes to the public repo?
  • r

    redat

    10/20/2025, 2:32 PM
    Hi everyone ! Since doing the following :
    Copy code
    if defined(Class['my_super_class']) {
         class { 'my_other_super_class': }
      }
    Might result in an issue if the ordering in Puppet is not at our advantage, how would do the same thing ? I want to include a class, only if another class is already present.
  • b

    bastelfreak

    10/20/2025, 2:41 PM
    Why?
  • b

    bastelfreak

    10/20/2025, 2:42 PM
    That looks like an anti pattern
  • r

    redat

    10/20/2025, 2:43 PM
    I have a main class that defines an application, and I want to make sure that if the node we apply on, has the log retrieval mechanism that we use, then we should add the small snippet of configuration for this application logs to be retrieved.
  • r

    redat

    10/20/2025, 2:43 PM
    It might be an anti-pattern, but I don't really see a way to do that properly
  • c

    csharpsteen

    10/20/2025, 2:47 PM
    The resource that adds the small snippet should fail with an informative error (and no change) if the overall mechanism is not present.
  • r

    redat

    10/20/2025, 2:49 PM
    But I don't want the small snippet to be required for the application.. It's like that
    Copy code
    [my_application_class]              [my_global_logs_conf_class]
       if my_global_logs_conf_class
         [my_small_logs_class]
    But
    my_application_class
    should not fail because the
    my_global_logs_conf_class
    is not declared.. Maybe on this node we don't want to have the log mechanism that we have on other nodes
  • t

    tuxmea

    10/20/2025, 2:54 PM
    is this an application config settings ng? make a template.
  • v

    vchepkov

    10/21/2025, 6:09 PM
    vscode extension says that it uses puppet-lint and yet the editor is unhappy with idents and latest puppet-lint is fine. Some setting is missing?
  • b

    bastelfreak

    10/21/2025, 6:41 PM
    Different linter versions?
  • v

    vchepkov

    10/21/2025, 8:08 PM
    It seems extension bundles it. I don't see a way to tell it to use a new one
  • r

    runlolarun

    10/23/2025, 5:36 PM
    Hello, everyone. What is a recommended approach to cleaning up puppet code? I have tried puppet-lint with
    --only-checks ghostbuster_classes,ghostbuster_files,ghostbuster_templates
    , but, for some reason, not getting any results. I’m sure i have some unused templates, manifests, etc… My google search is not pointing to any else useful. Any suggestions? Thank you!
  • a

    Adrian Parreiras Horta

    10/23/2025, 6:24 PM
    VoxBox is probably your best bet long term https://github.com/voxpupuli/container-voxbox. But I and many others are still using the latest public release of the PDK.
    pdk validate
    will run the linters, and adding
    -a
    will do autocorrect
  • a

    Adrian Parreiras Horta

    10/23/2025, 6:25 PM
    Also the community Slack is more active and a better place to get feedback these days https://voxpupuli.org/connect/