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

    tvaughan

    12/14/2022, 2:23 PM
    Copy code
    $location_api_access = (
      if $....
  • a

    Alex Fisher

    12/14/2022, 2:23 PM
    oh, are you saying it wasn't even valid before? Oops.
  • v

    VoxBot

    12/14/2022, 2:24 PM
    I'd also suggest a helper function so you can use something like apache_unified_access($zabbix_api_access), but I'm not sure how generic that would be
  • v

    VoxBot

    12/14/2022, 2:25 PM
    I suggest to only support apache 2.4
  • v

    VoxBot

    12/14/2022, 2:26 PM
    we're just playing the theory game here ;)
  • v

    VoxBot

    12/14/2022, 2:26 PM
    I just want to be sure :D
  • a

    Alex Fisher

    12/14/2022, 2:26 PM
    @tvaughan It's valid with or without the parentheses. I guess they would coerce the strict indent plugin into being happy though!
  • t

    tvaughan

    12/14/2022, 2:26 PM
    Yeah, that was the idea
  • a

    Alex Fisher

    12/14/2022, 2:26 PM
    Wednesday Puppet golf.
  • t

    tvaughan

    12/14/2022, 2:27 PM
    It looks less horribad 😄
  • a

    Alex Fisher

    12/14/2022, 2:30 PM
    ha, maybe. Pretty subjective though. I dislike redundant parentheses (I have colleagues who seem to add them everywhere!) And not having them aligns a bit better with the ruby style guide we follow for our facts/types/functions/tests etc.
  • y

    Yury Bushmelev

    12/14/2022, 2:47 PM
    I’d use intermediate variable (or function as suggested above) in the code
  • v

    VoxBot

    12/14/2022, 2:47 PM
    afisher: do you have LISP programmers as colleagues? ;)))
  • y

    Yury Bushmelev

    12/14/2022, 2:48 PM
    (((
  • y

    Yury Bushmelev

    12/14/2022, 2:49 PM
    Opening parentheses (sorry) :)
  • v

    VoxBot

    12/14/2022, 2:54 PM
    (
  • m

    matt

    12/14/2022, 5:07 PM
    @bastelfreak are you round ?
  • b

    bastelfreak

    12/14/2022, 5:07 PM
    always
  • b

    bastelfreak

    12/14/2022, 5:07 PM
    how can I help /what did I break
  • m

    matt

    12/14/2022, 5:09 PM
    you posted a really helpful comment in a premature PR from me, took it to heart and fixed it, but while I was working it through I had a situation where the class was 'working' when it shouldn't be, and wondered if you could just clarify your comment a little for me to see if I've miss-understood,
  • m

    matt

    12/14/2022, 5:09 PM
    it was against the puppet-consul module and the version parameter set in init.pp not being available to the parms.pp class
  • d

    Dr Bunsen Honeydew

    12/14/2022, 5:09 PM
    See the
    puppet-consul
    module at https://forge.puppet.com/puppet/consul?src=slack&channel=voxpupuli
  • b

    bastelfreak

    12/14/2022, 5:09 PM
    yeah
  • m

    matt

    12/14/2022, 5:10 PM
    if I reference consul::version as the parameter in params.pp - why would params.pp not be aware of "version"
  • m

    matt

    12/14/2022, 5:10 PM
    I'm looking at install.pp and that evaluates consul::version in that class without having it set locally
  • m

    matt

    12/14/2022, 5:11 PM
    so I wasn't sure if I'd miss-understood your comment or just not understood how data is encapsulated in general
  • b

    bastelfreak

    12/14/2022, 5:13 PM
    do you have a link to the pr?
  • b

    bastelfreak

    12/14/2022, 5:13 PM
    did we meege that already?
  • b

    bastelfreak

    12/14/2022, 5:13 PM
    *merge
  • m

    matt

    12/14/2022, 5:13 PM
    I do, it's closed as it was premature,
1...213214215...648Latest