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

    vchepkov

    03/09/2023, 8:11 PM
    that how it comes with puppet agent, by the way
  • v

    vchepkov

    03/09/2023, 8:12 PM
    so, see else what you don't need in /etc/puppetlabs/puppet/pupet.conf
  • s

    Slackbot

    03/09/2023, 8:36 PM
    This message was deleted.
    h
    b
    • 3
    • 3
  • w

    wil.rodriguez

    03/09/2023, 8:48 PM
    So, I have made it past the earlier error. I found the
    puppetdb ssl-setup
    command, which fixed the ssl errors. I now get this error:
    Copy code
    2023-03-09T14:44:15.710-06:00 ERROR [p.t.internal] Error during service start!!!
    org.bouncycastle.openssl.PEMException: unable to convert key pair: RSA KeyFactory not available
    ...
    Caused by: java.security.NoSuchAlgorithmException: RSA KeyFactory not available
    ...
    Even using your code, I couldn't get it to work. I'm wondering if it has something to do with my system being DISA STIG hardened... I might see if I can try the same code on a system that's not hardened.
  • w

    wil.rodriguez

    03/09/2023, 8:49 PM
    So, I have made it past the earlier error. I found the
    puppetdb ssl-setup
    command, which fixed the ssl errors. I now get this error:
    Copy code
    2023-03-09T14:44:15.710-06:00 ERROR [p.t.internal] Error during service start!!!
    org.bouncycastle.openssl.PEMException: unable to convert key pair: RSA KeyFactory not available
    ...
    Caused by: java.security.NoSuchAlgorithmException: RSA KeyFactory not available
    ...
    Even using your code, I couldn't get it to work. I even fully uninstalled and reinstalled and got to the exact same error (after fixing a bunch of file permissions resulting from my restrictive umask). I'm wondering if it has something to do with my system being DISA STIG hardened... I might see if I can try the same code on a system that's not hardened.
  • d

    Dr Bunsen Honeydew

    03/09/2023, 9:45 PM
    waiting 🧑‍🏫PE Console is about to start up in #CFD8Z9A4T
  • z

    ziggy

    03/09/2023, 10:18 PM
    Does anyone know how to do a regsubstr such that I can replace all the
    .
    except to for the very last one? e.g $host = puppet.domain.internal.crt .crt I want to keep. I want to replace
    .
    for everything else to get puppet_domain_internal.crt something like
    regsubstr($host, '[.]', '_', G)
    , but obviously that isnt right.
  • k

    kenyon

    03/09/2023, 10:23 PM
    make your filenames have dots instead of underscores 😉
  • z

    ziggy

    03/09/2023, 10:28 PM
    yeah, Im not going to update 200 files 😄. Actually, they arent files, they are secrets stored in a password management system.
  • z

    ziggy

    03/09/2023, 10:28 PM
    thanks though
  • z

    ziggy

    03/09/2023, 10:29 PM
    well the files already have dots. Thats the issue. I want them to have underscores.
  • z

    ziggy

    03/09/2023, 10:29 PM
    yeah, Im not going to update 200 files 😄
  • z

    ziggy

    03/09/2023, 10:31 PM
    yeah, Im not going to update 200 files 😄. Actually, they arent files, they are secrets stored in a password management system.
  • k

    kenyon

    03/09/2023, 10:32 PM
    you could split the string at the
    .crt
    , regsubst the first part, then put the
    .crt
    back on
  • z

    ziggy

    03/09/2023, 10:56 PM
    oh yeah... that might work
  • z

    ziggy

    03/09/2023, 10:56 PM
    good idea. Thanks
  • n

    natemccurdy

    03/09/2023, 10:58 PM
    Yeah, like this.... though this is kind of messy.
    Untitled.pp
    👍 1
  • z

    ziggy

    03/09/2023, 10:59 PM
    ah ha!
  • z

    ziggy

    03/09/2023, 10:59 PM
    thank you!
  • s

    Slackbot

    03/10/2023, 7:25 AM
    This message was deleted.
    b
    r
    • 3
    • 4
  • b

    brokencode

    03/10/2023, 7:25 AM
    Is anyone here using official puppetlabs haproxy module and is able to configure stats endpoint? The configurations looks like:
    Copy code
    frontend stats
      bind *:8404
      mode http
      stats refresh 10s
      stats enable
      stats uri /stats
    Looking at the module's frontend manifest and template, there seems to only exists an option to pass hash values for extra options and since there is the same key in my case, only the last option gets an entry. How are you solving this problem? Module: https://github.com/puppetlabs/puppetlabs-haproxy
  • b

    brokencode

    03/10/2023, 7:26 AM
    Never mind, I found an example under examples:) https://github.com/puppetlabs/puppetlabs-haproxy/blob/main/examples/init.pp#L57
  • s

    Slackbot

    03/10/2023, 4:44 PM
    This message was deleted.
    b
    c
    +2
    • 5
    • 20
  • s

    Slackbot

    03/10/2023, 5:12 PM
    This message was deleted.
    h
    l
    k
    • 4
    • 12
  • l

    Les Shiner

    03/10/2023, 5:43 PM
    interesting
  • k

    kenyon

    03/10/2023, 7:05 PM
    you need https://github.com/voxpupuli/puppet-windowsfeature/issues/141
  • r

    redat

    03/10/2023, 9:26 PM
    Hi everyone ! I was wondering if someone could help me.. I'm having some trouble with environments deployment and I don't know what I'm missing ! I created a r10k configuration which bases himself on GitHub repository.. Then I just run the following command :
    Copy code
    r10k deploy environment -c /etc/puppetlabs/r10k.yaml
    It does work as intended, meaning that when this command is run, folders are created corresponding to the differents branch on the git repository :
    Copy code
    root@puppet:/etc/puppetlabs/code# ls
    production  testing
    However, I have this error with puppet agent :
    Copy code
    puppet agent --environment=testing --test --noop
    Info: Using environment 'testing'
    Notice: Environment 'testing' not found on server, skipping initial pluginsync.
    Notice: Local environment: 'testing' doesn't match server specified environment 'production', restarting agent run with environment 'production'
    Info: Retrieving pluginfacts
    Info: Retrieving plugin
    Info: Applying configuration version '1678314056'
    Notice: Applied catalog in 0.02 seconds
    If someone could tell me what I might be missing, or point me in the good direction, thanks in advance !
  • r

    redat

    03/10/2023, 9:27 PM
    Hi everyone ! I was wondering if someone could help me.. I'm having some trouble with environments deployment and I don't know what I'm missing ! I created a r10k configuration which bases himself on GitHub repository.. Then I just run the following command :
    Copy code
    r10k deploy environment -c /etc/puppetlabs/r10k.yaml
    It does work as intended, meaning that when this command is run, folders are created corresponding to the differents branch on the git repository :
    Copy code
    root@puppet:/etc/puppetlabs/code# ls
    production  testing
    However, I have this error with puppet agent :
    Copy code
    puppet agent --environment=testing --test --noop
    Info: Using environment 'testing'
    Notice: Environment 'testing' not found on server, skipping initial pluginsync.
    Notice: Local environment: 'testing' doesn't match server specified environment 'production', restarting agent run with environment 'production'
    Info: Retrieving pluginfacts
    Info: Retrieving plugin
    Info: Applying configuration version '1678314056'
    Notice: Applied catalog in 0.02 seconds
    If someone could tell me what I might be missing, or point me in the good direction, thanks in advance !
  • s

    Slackbot

    03/10/2023, 9:29 PM
    This message was deleted.
    r
    v
    • 3
    • 4
  • s

    Slackbot

    03/10/2023, 11:50 PM
    This message was deleted.
    b
    n
    c
    • 4
    • 7
1...323324325...428Latest