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

    matt

    12/14/2022, 5:13 PM
    god no
  • m

    matt

    12/14/2022, 5:13 PM
    https://github.com/voxpupuli/puppet-consul/pull/599
  • m

    matt

    12/14/2022, 5:13 PM
    https://github.com/voxpupuli/puppet-consul/pull/599
  • b

    bastelfreak

    12/14/2022, 5:16 PM
    ah yes. so version is defined in the init.pp and params.pp doesnt know that because it is evaluated befire init.pp
  • m

    matt

    12/14/2022, 5:16 PM
    ahhhhhhh
  • m

    matt

    12/14/2022, 5:16 PM
    that's the bit I'm missing, BEFORE
  • b

    bastelfreak

    12/14/2022, 5:16 PM
    so $version should be moved to init.pp
  • m

    matt

    12/14/2022, 5:17 PM
    oh wait
  • m

    matt

    12/14/2022, 5:17 PM
    it's in init.pp
  • b

    bastelfreak

    12/14/2022, 5:17 PM
    at least I think so, because init.pp inherits params.pp
  • b

    bastelfreak

    12/14/2022, 5:17 PM
    *should b3 moved to params.pp, not init, sorry :D
  • b

    bastelfreak

    12/14/2022, 5:17 PM
    shouldnt type and cook
  • m

    matt

    12/14/2022, 5:17 PM
    I may need to look at this again then, as params.pp is not setting version, it's getting it from init.pp (or where it's set say hiera)
  • m

    matt

    12/14/2022, 5:17 PM
    you're cooking, I'm distracting you, go do that
  • b

    bastelfreak

    12/14/2022, 5:19 PM
    check $manage_repo for example
  • m

    matt

    12/14/2022, 5:19 PM
    thnaks
  • b

    bastelfreak

    12/14/2022, 5:19 PM
    defined in params.pp, referenced in init.pp
  • m

    matt

    12/14/2022, 5:20 PM
    yeah, that's how I have it now, but I managed to get it working without that (it shouldn't work) hence my interest
  • t

    tuxmea

    12/14/2022, 5:32 PM
    are their plans or discussion regarding dropping params.pp and move to module hiera data?
  • t

    tuxmea

    12/14/2022, 5:32 PM
    are their plans or discussion regarding dropping params.pp and move to module hiera data?
  • s

    smortex

    12/14/2022, 5:35 PM
    @tuxmea I did this from time to time to a few modules, and as far as i can tell the situation was always better after than before so for me: 💯 ! But I do not thing there was a discussion about if we want to "nomalize" one way or the other.
  • s

    smortex

    12/14/2022, 5:35 PM
    s/thing/think/
  • b

    bastelfreak

    12/14/2022, 5:36 PM
    for new parameters we require them to be defined in init.pp, not params.pp
    👍 2
  • t

    tuxmea

    12/14/2022, 5:38 PM
    good approach for new parameters. any idea in how to automate hiera examples? or should these be part of the readme? or do we refer people to reference?
  • m

    matt

    12/14/2022, 6:07 PM
    when puppet was in early versions, didn't params used to be in init.pp then the module changed where everyone insisted they where in params.pp
  • b

    bastelfreak

    12/14/2022, 6:08 PM
    that were the old and oldold days!
  • m

    matt

    12/14/2022, 6:09 PM
    "model" changed, not module
  • m

    matt

    12/14/2022, 6:09 PM
    I'm thinking puppet 3-ish time
  • b

    bastelfreak

    12/14/2022, 6:09 PM
    everything that is static should go into init.pp, because puppet-lint will pick it up for the reference.md
  • s

    smortex

    12/14/2022, 6:16 PM
    Regarding hiera examples (you are talking about documentation in REAME.md right?), my personal opinion: kill it with fire 🔥(They are barely readable and my feeling is that if you do put everything in hiera, you will know how to translate a puppet configuration in some yaml mess)
1...214215216...648Latest