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

    Alex Fisher

    02/28/2023, 8:01 PM
    The only code change I made whilst in there was to remove some
    validate_
    functions. eg. https://github.com/voxpupuli/puppet-varnish/pull/12/files#diff-1bc4e5692ece2b3ab3fde3dacf7619481f95c1fffd8966fc133c1f6c4cf40acbL119
  • a

    Alex Fisher

    02/28/2023, 8:01 PM
    The datatypes cover all of these, so they're redundant.
  • a

    Alex Fisher

    02/28/2023, 8:03 PM
    Where the doc strings mentioned a default, I removed those as puppet-strings will work this out automatically and you only want a single source of truth.
  • a

    Alex Fisher

    02/28/2023, 8:05 PM
    I could probably find a bunch more things to tweak, but that's plenty for one PR.
  • v

    VoxBot

    02/28/2023, 8:06 PM
    how would you move manifests/vcl/includefile.pp to vcl.pp?
  • a

    Alex Fisher

    02/28/2023, 8:06 PM
    With some iteration (that probably didn't exist when the module was first written)
  • v

    VoxBot

    02/28/2023, 8:07 PM
    ok, will have a look at that ..
  • a

    Alex Fisher

    02/28/2023, 8:08 PM
    As I see it, it's private to
    vcl.pp
    and the create_resources stuff in that class (which could also be refactored), depends on that type having be included once per 'thing'
  • v

    VoxBot

    02/28/2023, 8:10 PM
    jup, thats the case... but thats also very old code thats still working ;) so something to refacor
  • v

    VoxBot

    02/28/2023, 8:11 PM
    should I merge those PR or anybody of you?
  • a

    Alex Fisher

    02/28/2023, 8:14 PM
    I mean that's the idea behind me saying it could be moved into the vcl class anyway. It's a shame it's not 100% consistently a perfect mapping.
  • a

    Alex Fisher

    02/28/2023, 8:15 PM
    eg. https://github.com/voxpupuli/puppet-varnish/blob/4426269f7447f1a12dff36869ca85751195cd068/manifests/vcl.pp#L153
    backendselection
    vs
    selectors
    https://github.com/voxpupuli/puppet-varnish/blob/4426269f7447f1a12dff36869ca85751195cd068/manifests/vcl.pp#L180
  • a

    Alex Fisher

    02/28/2023, 8:15 PM
    eg. https://github.com/voxpupuli/puppet-varnish/blob/4426269f7447f1a12dff36869ca85751195cd068/manifests/vcl.pp#L153
    backendselection
    vs
    selectors
    https://github.com/voxpupuli/puppet-varnish/blob/4426269f7447f1a12dff36869ca85751195cd068/manifests/vcl.pp#L180
  • v

    VoxBot

    02/28/2023, 8:18 PM
    backendselection contains selectors...
  • v

    VoxBot

    02/28/2023, 8:18 PM
    naming is not 100% perfect here... true..
  • v

    VoxBot

    02/28/2023, 8:22 PM
    are you normally adding some kind of tests of the actual results? For example if the resulting VCL compiles with varnish 6 here
  • a

    Alex Fisher

    02/28/2023, 11:19 PM
    I’m not a subject matter expert, but perhaps you can verify config files with https://github.com/puppetlabs/puppetlabs-concat/blob/main/REFERENCE.md#-concat--validate_cmd ?
  • a

    Alex Fisher

    02/28/2023, 11:22 PM
    Maybe that’s not going to work though unless all the config were to be written to a single file.
  • a

    Alex Fisher

    02/28/2023, 11:24 PM
    If you want to write tests, you could look at adding some beaker based acceptance tests.
  • v

    VoxBot

    03/01/2023, 7:51 AM
    morning
  • v

    VoxBot

    03/01/2023, 7:51 AM
    acceptance tests for the k8s module would be awesome
    👍 2
  • v

    VoxBot

    03/01/2023, 8:27 AM
    voxpupuli-test 5.6 is out which uses voxpupuli-puppet-lint-plugins 4 which uses puppet-lint 3.2 \o/
  • b

    bastelfreak

    03/01/2023, 8:28 AM
    @Craig Gumbley ^
    ❤️ 1
  • v

    VoxBot

    03/01/2023, 8:33 AM
    The k8s module still needs to have a bunch of documentation written, and some unfinished areas need to be properly marked as such as well
  • v

    VoxBot

    03/01/2023, 8:33 AM
    Ananace: o/
  • v

    VoxBot

    03/01/2023, 8:33 AM
    it's doing k8s, is there anything ever finished in that area? :D
  • v

    VoxBot

    03/01/2023, 8:34 AM
    :D
  • v

    VoxBot

    03/01/2023, 8:34 AM
    Well, I don't see them moving away from YAML any time soon, so the markup language choice is probably finished
  • v

    VoxBot

    03/01/2023, 8:35 AM

    https://media4.giphy.com/media/Ow59c0pwTPruU/giphy.gif▾

  • v

    VoxBot

    03/01/2023, 9:18 AM
    Really feels like there should be some kind of Ensure type in stdlib
    👍 1
1...336337338...648Latest