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

    VoxBot

    05/11/2023, 3:11 PM
    maybe something with mocked facts updating!
  • v

    VoxBot

    05/11/2023, 3:42 PM
    What I'm seeing is that the issue seems to be with expectations around things like "$facts['os']['family']"
  • v

    VoxBot

    05/11/2023, 3:43 PM
    https://gist.github.com/wyardley/adc6ca4ba28dc79cffc79acf3c8caade < the tests made pending in the diff are the ones that fail. the code itself (see below the diff for a snippet of one relevant section) seems Ok?
  • v

    VoxBot

    05/11/2023, 4:02 PM
    unrelated: anyone seen a case where the changelog generator associates an issue with the wrong release? (in this case, https://github.com/voxpupuli/puppet-rabbitmq/issues/930 is getting attached to 12.1.0 (last release) vs upcoming 13.0.0
  • v

    VoxBot

    05/11/2023, 4:03 PM
    (if the 'bug' label is not attached, it's in the right release, but not in the fixed bugs section anymore)
  • v

    VoxBot

    05/11/2023, 4:05 PM
    https://github.com/voxpupuli/puppet-rabbitmq/blob/master/spec/classes/rabbitmq_spec.rb#L204 that should never be true
  • v

    VoxBot

    05/11/2023, 4:05 PM
    all the listed operating systems use systemd
  • v

    VoxBot

    05/11/2023, 4:07 PM
    yeah, was wondering about that - may be able to simplify some of the code now that everything is using systemd
  • v

    VoxBot

    05/11/2023, 4:07 PM
    yep
  • v

    VoxBot

    05/11/2023, 4:08 PM
    https://github.com/voxpupuli/puppet-rabbitmq/blob/master/spec/classes/rabbitmq_spec.rb#L9 and rename facts to os_facts
  • v

    VoxBot

    05/11/2023, 4:08 PM
    to not confuse it with
    let :facts
  • v

    VoxBot

    05/11/2023, 4:12 PM
    just in there and in the let block, right?
  • v

    VoxBot

    05/11/2023, 4:14 PM
    oh, ok, do have to update all the places where facts is used
  • v

    VoxBot

    05/11/2023, 4:16 PM
    I guess I can see some benefit in keeping the systemd conditional and the tests for it, even though no supported OSes don't use systemd
  • v

    VoxBot

    05/11/2023, 4:17 PM
    FreeBSD and OpenBSD are listed as supported, I think, whether or not we unit test them
  • v

    VoxBot

    05/11/2023, 4:21 PM
    if we get this other stuff sorted out, I can see how much effort it would be to get tests working for FreeBSD 13. Looks like there may be some code changes needed anyway, so that would be a win / win, and we'd have those specs get run again
  • v

    VoxBot

    05/11/2023, 5:03 PM
    https://github.com/voxpupuli/puppet-rabbitmq/pull/932 open to suggestions on making the conditionals less messy. this would also implement bastelfreak's suggestions for os_facts
  • v

    VoxBot

    05/11/2023, 5:55 PM
    ewoud: Zhenech https://www.githubstatus.com/incidents/nf7s6933tnn8 I am really looking forward to the post mortem report next month
  • v

    VoxBot

    05/11/2023, 8:40 PM
    With data in modules, is it an antipattern to have the default for a module param defined both in the class spec and in, e.g., data/common.yaml? Ran into a confusing case from that happening, and only figured it out by grepping for the parameter name
  • v

    VoxBot

    05/11/2023, 8:45 PM
    I would only put it in one place yeah
  • v

    VoxBot

    05/11/2023, 8:45 PM
    if without further config one of the places already gets ignored (the class spec), I'd say, why put a copy there then
  • v

    VoxBot

    05/11/2023, 8:53 PM
    wby: best practice is to have the defaults in init.pp
  • v

    VoxBot

    05/11/2023, 8:53 PM
    and if required, move as few data as possible into hiera in modules
  • v

    VoxBot

    05/11/2023, 9:11 PM
    bastelfreak: so would you say removing it entirely from data/common.yaml is the right answer?
  • v

    VoxBot

    05/11/2023, 9:12 PM
    yes!
  • v

    VoxBot

    05/11/2023, 9:12 PM
    and I can explain it :D
  • v

    VoxBot

    05/11/2023, 9:12 PM
    if the data moves to a puppet clas, puppet-strings is able to pick it up and add it to the reference.md
  • v

    VoxBot

    05/11/2023, 9:12 PM
    Looks like https://github.com/voxpupuli/puppet-rabbitmq/commit/e90dcbdeb3e8d0d0fe13f1f089a8a832d8435786 moved it entirely into data :/
  • v

    VoxBot

    05/11/2023, 9:12 PM
    That's going to be an awful pain to unwind....
  • v

    VoxBot

    05/11/2023, 9:13 PM
    yeah I also did it a few times in the past :(
1...473474475...642Latest