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

    Yury Bushmelev

    10/29/2024, 10:48 PM
    Make symlink and done
    this 1
    mandalorian 2
    this2 1
    thisdead 1
    ☝️ 1
  • z

    zipkid

    10/30/2024, 7:48 AM
    Is there an ‘easy’ way to generate a CSR, using csr_attributes.yaml but NOT using puppet itself?
  • b

    bastelfreak

    10/30/2024, 7:50 AM
    you can use
    puppet ssl
    . But openssl has no support for the csr_attributes.yaml, so you would need to parse that on your own
    z
    c
    • 3
    • 17
  • b

    Brian Schonecker

    10/30/2024, 1:28 PM
    Is there a CUPS module that's semi-active in development? mosen hasn't been updated in seven years. leoarnold went read only in Jan 2023 and hasn't been updated for two years. I'm sure leoarnold will work for me but I don't want to get stuck using a dead module if I don't have to do so.
    b
    v
    +4
    • 7
    • 28
  • r

    runlolarun

    10/30/2024, 2:48 PM
    Hello, everyone. Can I use regex with erb templates? Thank you.
    Copy code
    <% if @facts['hostname'] !~ /^node\d+/ %>
    b
    • 2
    • 14
  • i

    Ian CB

    10/30/2024, 5:32 PM
    What sort of timeline should I expect for responses to bugs / documentation requests raised for puppet forge modules (they were only raised in the last couple of weeks so I’m not expecting anything yet) ? This particular module author is puppetlabs
    v
    s
    c
    • 4
    • 4
  • b

    Brian Schonecker

    10/30/2024, 6:14 PM
    I'm quite confused as to the right way to do hiera merging inside of my class module. I have a ./data/common.yaml file and a ./data/os/Redhat.yaml file that contains a parameter, 'files'. The files parameters in common.yaml creates a directory called /source and only on Red Hat do I need a /source/RedHat directory created -- which is provided by ./data/os/RedHat.yaml. Unfortunately, I'm getting only the /source/RedHat directory 'assigned' and the /source directory isn't merged in. I know I can change the common.yaml file to lookup_options: file: merge: deep but is there a way to set the class module to merge: deep by default? The documentation states that I should not be overriding the merge behavior in the hiera.yaml file. I'm finding that I need to define merge: deep for more and more parameters as time goes on. What's the proper way to enforce a merge: deep for all of my parameters in my class module?
    b
    n
    l
    • 4
    • 18
  • l

    Lumiere

    10/30/2024, 7:09 PM
    I have a piece of code that uses stdlib's to_yaml function, but I need to use it with pre and post stdlib 9 (so I need stdlib::to_yaml in 9 and to_yaml in pre-9) Is there an accepted way to fall back?
  • b

    bastelfreak

    10/30/2024, 7:14 PM
    you copy the old function into a temporary module
  • b

    bastelfreak

    10/30/2024, 7:15 PM
    or deploy stdlib 8 as oldlib
  • b

    bastelfreak

    10/30/2024, 7:15 PM
    I gave up on asking Puppet to backport the new functions to 8
  • l

    Lumiere

    10/30/2024, 7:30 PM
    is there a way to try one, and try the other if it fails
  • l

    Lumiere

    10/30/2024, 7:30 PM
    or check the namespace for a function's existance
  • v

    vchepkov

    10/30/2024, 7:31 PM
    I do the former, old functions were not namespaced
  • v

    vchepkov

    10/30/2024, 7:31 PM
    Just stick it to a module
  • v

    vchepkov

    10/30/2024, 7:31 PM
    image.png
  • l

    Lumiere

    10/30/2024, 7:34 PM
    I kinda hate that they namespaced
    stdlib::has_function()
  • l

    Lumiere

    10/30/2024, 7:34 PM
    because that seems like it would have been perfect
  • b

    bastelfreak

    10/30/2024, 7:51 PM
    😄
  • b

    bastelfreak

    10/30/2024, 7:51 PM
    but why the hassle? Just deploy both side2side and slowly replace the legacy function calls?
  • a

    Argon Wade

    10/30/2024, 7:56 PM
    Working through some automated STIG checks on RHEL-8 and V-230257 finds a broken symlink at: • /usr/local/bin/pe-man --> /opt/puppetlabs/bin/pe-man --> /opt/puppetlabs/server/bin/pe-man This file won't exist on servers with just puppet agent installed (version we're on is 7.30.0-1, redhat fips). Any reason the agent installer is creating that symlink and if not, can it be removed from the agent installer?
    👍 1
    k
    • 2
    • 1
  • v

    vchepkov

    10/30/2024, 8:07 PM
    I am not familiar with fips version, but I think it's a PE issue, not a an agent
  • v

    vchepkov

    10/30/2024, 8:07 PM
    Copy code
    puppet_enterprise::manage_symlinks: false
    a
    • 2
    • 11
  • v

    vchepkov

    10/30/2024, 8:07 PM
    I have that
  • v

    vchepkov

    10/30/2024, 11:29 PM
    I would use
    Copy code
    unless $version =~ Interer {
  • l

    Lumiere

    10/30/2024, 11:30 PM
    if you can do it, set parameter types and on lookups set the type in the lookup()
    this 1
  • i

    Ian CB

    10/31/2024, 8:09 AM
    For a negative test I believe you can use if ($version !~ Integer) … I understand that validate_legacy is deprecated and will go away soon so I’d advise not to use that ! It will fail if version is a string with a number in it …. you would ned more logic to handle that case !
  • j

    Jamal Yasin

    10/31/2024, 10:03 AM
    Team, working on the deprecation of the
    is_*
    functions for StdLIB 9. Wanted to confirm, for example replacing
    is_integer($somevar)
    with
    $somevar =~ Stdlib::Compat::Integer
    is the way forward ? What is the difference if we use
    $somevar =~ Integer
    ?
    t
    b
    • 3
    • 49
  • a

    Argon Wade

    10/31/2024, 12:34 PM
    In the install.bash script packaged with Puppet Enterprise 2021.7.8 (at the least), there is a function called ensure_agent_links that creates symlinks for a hardcoded list (facter, puppet, hiera, and pe-man). Can this be updated to only create the symlink if the target actually exists? This is in regards to my message yesterday about RHEL-8 STIG checks finding /usr/local/bin/pe-man and since the link is broken, the permissions of the symlink itself get calculated, which are greater than 755 that the STIG requires.
  • y

    yachub

    10/31/2024, 12:37 PM
    Anyone know where the Slack chatlog archive is? I can't seem to remember what platform it was (The URL in the channel description is broken).
    d
    • 2
    • 3
1...420421422...428Latest