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

    VoxBot

    09/16/2022, 11:45 AM
    ah well, left a comment, otherwise we can open a JIRA issue
  • v

    VoxBot

    09/16/2022, 12:06 PM
    and let's see if I can finally get a new release of puppet-jenkins out, with the systemd changes
  • d

    Dr Bunsen Honeydew

    09/16/2022, 12:06 PM
    See the
    puppet-jenkins
    module at https://forge.puppet.com/puppet/jenkins?src=slack&channel=voxpupuli
  • v

    VoxBot

    09/16/2022, 3:01 PM
    bleh, the helper now fails on unable to resolve class org.jenkinsci.main.modules.cli.auth.ssh.UserPropertyImpl and I don't know how to solve that
  • s

    Slackbot

    09/16/2022, 3:03 PM
    This message was deleted.
    v
    a
    s
    • 4
    • 12
  • a

    Alex Fisher

    09/16/2022, 3:03 PM
    Anyone else ever tried to wrap their head around https://github.com/puppetlabs/puppetlabs-java/blob/2d9ff91e1c118c3877a9dbac36af95573689d43f/manifests/init.pp#L54-L73 ?
  • v

    VoxBot

    09/16/2022, 3:04 PM
    I think it's because the sshd plugin is no longer present
  • v

    VoxBot

    09/16/2022, 3:05 PM
    afisher: just today; it's this structure: https://github.com/puppetlabs/puppetlabs-java/blob/2d9ff91e1c118c3877a9dbac36af95573689d43f/manifests/params.pp#L55-L64
  • a

    Alex Fisher

    09/16/2022, 3:05 PM
    The code reads badly enough for someone to write comments in an if/else style, but oddly they didn't rewrite the code itself to avoid the selectors.
  • v

    VoxBot

    09/16/2022, 3:05 PM
    afisher: jdk and jre are distributions there
  • v

    vchepkov

    09/16/2022, 3:06 PM
    seems fine to me, but package could have just set sensible default to parameters instead of this contraption
  • v

    VoxBot

    09/16/2022, 3:06 PM
    afisher: I think some of that can use pick()
  • v

    VoxBot

    09/16/2022, 3:14 PM
    afisher: https://github.com/ekohl/puppetlabs-java/blob/simplify-logic/manifests/init.pp I think that's the simplified version
  • a

    Alex Fisher

    09/16/2022, 3:18 PM
    ewoud: I daren't actually try to fix it up. Was just trying to work out how to enforce one version of java is the default when I have 2 openjdk packages installed.
  • a

    Alex Fisher

    09/16/2022, 3:19 PM
    https://github.com/ekohl/puppetlabs-java/blob/simplify-logic/manifests/init.pp#L49 I think that since this can resolve to
    undef
    the following line would need
    pick_default
    ???
  • a

    Alex Fisher

    09/16/2022, 3:19 PM
    https://github.com/ekohl/puppetlabs-java/blob/simplify-logic/manifests/init.pp#L49 I think that since this can resolve to
    undef
    the following line would need
    pick_default
    ???
  • v

    VoxBot

    09/16/2022, 3:19 PM
    afisher: yes, I just noticed that too
  • a

    Alex Fisher

    09/16/2022, 3:20 PM
    Was hoping that whatever version I installed using the module would already get set as the default and that I could just install 'the other' jdk using a simple package resource.
  • v

    VoxBot

    09/16/2022, 3:21 PM
    yes, it doesn't appear to update alternatives
  • v

    VoxBot

    09/16/2022, 3:22 PM
    had the same thing with Jenkins earlier
  • a

    Alex Fisher

    09/16/2022, 3:22 PM
    First checked if I had a
    Exec['update-java-alternatives']
    in my catalog, and I don't. Then was trying to work out why not and how to 'fix' that.
  • a

    Alex Fisher

    09/16/2022, 3:23 PM
    If
    java::config
    doesn't bring in variables via class parameters, so that didn't give me anything to inspect there either.
  • a

    Alex Fisher

    09/16/2022, 3:24 PM
    The README doesn't mention anything, and the parameter docs just talk about Debian. https://github.com/puppetlabs/puppetlabs-java/blob/2d9ff91e1c118c3877a9dbac36af95573689d43f/manifests/init.pp#L22
  • a

    Alex Fisher

    09/16/2022, 3:24 PM
    The README doesn't mention anything, and the parameter docs just talk about Debian. https://github.com/puppetlabs/puppetlabs-java/blob/2d9ff91e1c118c3877a9dbac36af95573689d43f/manifests/init.pp#L22
  • a

    Alex Fisher

    09/16/2022, 3:24 PM
    (I'm using CentOS 7 here)
  • v

    VoxBot

    09/16/2022, 3:24 PM
    afisher: I think it relies on Puppet 3 style variable passing for those
  • v

    VoxBot

    09/16/2022, 3:24 PM
    afisher: or was it Puppet 2 which had the inheritance
  • v

    VoxBot

    09/16/2022, 3:24 PM
    either way, it looks like this never made it to Puppet 4+
  • v

    VoxBot

    09/16/2022, 3:25 PM
    other than data types being added, but the alternatives bit …
  • a

    Alex Fisher

    09/16/2022, 3:30 PM
    It's a private class so honestly can do what it wants. It chooses to access the calling class's variables directly. This is fine. In this particular instance it might have helped me understand my existing catalogs if it didn't, but that's not a good enough reason to suggest private classes should have parameters.
1...143144145...648Latest