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

    Lumiere

    01/20/2023, 3:34 PM
    if you need to,
    pdk bundle exec rake spec
    can be helpful as well
  • l

    Lumiere

    01/20/2023, 3:34 PM
    if you need to,
    pdk bundle exec rake spec
    can be helpful as well
  • b

    Brian Schonecker

    01/20/2023, 3:34 PM
    I'm not using PDK for anything real. When I tried using it, it changed the spec file which then make it a problem to contribute back to the original github repository.
  • l

    Lumiere

    01/20/2023, 3:35 PM
    I'd look at the docs for the module then
  • l

    Lumiere

    01/20/2023, 3:35 PM
    specifically for voxpupuli there's https://voxpupuli.org/docs/how_to_run_tests/
  • b

    bastelfreak

    01/20/2023, 3:36 PM
    ^ this if you use the vox pupuli tools (which I recommend)
  • b

    Brian Schonecker

    01/20/2023, 3:45 PM
    prepending "pdk" to all of the "bundle" commands from voxpupuli docs is giving me some results. I see an awful lot of red, however. I'm farther along than ten minutes ago!
  • l

    Lumiere

    01/20/2023, 3:46 PM
    so, if you're not in a pdk converted module, pdk bundle may not do what you expect (but close enough)
  • b

    Brian Schonecker

    01/20/2023, 3:48 PM
    Should I still use PDK for not-yet-converted modules then?
  • l

    Lumiere

    01/20/2023, 3:50 PM
    I'm of the opinion that if it works use it
  • y

    Yury Bushmelev

    01/20/2023, 3:52 PM
    I’m using PDK for all my modules and control repos (including bolt homelab repo).. it may need some workarounds but it works well for me
  • b

    Brian Schonecker

    01/20/2023, 3:52 PM
    I'm trying to start contributing to voxpupuli. If I stick with PDK, will I be ok?
  • y

    Yury Bushmelev

    01/20/2023, 3:52 PM
    voxpupuli is not using PDK AFAIK
  • b

    Brian Schonecker

    01/20/2023, 3:53 PM
    Grrrr....
  • y

    Yury Bushmelev

    01/20/2023, 3:53 PM
    they invented their own modulesync for the template management.. but better to ask on #C0W1Y5VL0
  • l

    Lumiere

    01/20/2023, 4:03 PM
    modulesync and the vox design predate pdk
  • b

    Brian Schonecker

    01/20/2023, 4:12 PM
    Thanks, everyone. I finally managed to get some spec tests working -- if only "expect to compile" on a completely blank module! 😉
  • s

    Slackbot

    01/20/2023, 4:13 PM
    This message was deleted.
    🙇🏻 1
    d
    b
    • 3
    • 2
  • l

    Lumiere

    01/20/2023, 4:21 PM
    thanks for the correction
  • l

    Lumiere

    01/20/2023, 4:21 PM
    it all predates me 😄
  • b

    Brian Schonecker

    01/20/2023, 4:52 PM
    ....Annnnnd on a different topic: Am I correct in the generalized statement that this bit of containment effectively says, "Treat chrony::install resources as a bundle, chrony:config resources as a different bundle, chrony::service resources as a third bundle and then initialize the install ::resources first, the ::config resources second and the service resources ::third? I'm trying to wrap my head around containment.
  • b

    Brian Schonecker

    01/20/2023, 4:52 PM
    ....Annnnnd on a different topic: Am I correct in the generalized statement that this bit of containment effectively says, "Treat chrony::install resources as a bundle, chrony:config resources as a different bundle, chrony::service resources as a third bundle and then initialize the install ::resources first, the ::config resources second and the service resources ::third? I'm trying to wrap my head around containment.
  • l

    Lumiere

    01/20/2023, 5:56 PM
    it more says "include this class and the resources in this class are part of this class for dependency management"
  • l

    Lumiere

    01/20/2023, 5:57 PM
    https://www.puppet.com/docs/puppet/7/lang_containment.html#contain-funtion
  • r

    ripienaar

    01/20/2023, 5:59 PM
    if you
    require => Class["chrony"]
    it will also by relation include all `contain`’d other classes, this helps you say “do this thing once chrony is fully available
  • r

    ripienaar

    01/20/2023, 6:00 PM
    then it says do all things in
    install
    before
    config
    and should
    config
    change notiy all things in
    service
    (which would restart the service resource) and also ensures ordering is such that service is after config
  • r

    ripienaar

    01/20/2023, 6:01 PM
    however if install upgrades a rpm and the config doesnt change service wont restart (afaik)
  • r

    ripienaar

    01/20/2023, 6:01 PM
    however if install upgrades a rpm and the config doesnt change service wont restart (afaik)
  • s

    Slackbot

    01/20/2023, 7:13 PM
    This message was deleted.
    b
    b
    l
    • 4
    • 17
  • b

    bastelfreak

    01/20/2023, 7:17 PM
    check this readme.md: https://github.com/puppetlabs/puppetlabs_spec_helper
1...281282283...428Latest