https://www.puppet.com/community logo
Join Slack
Powered by
# puppet-enterprise
  • b

    bastelfreak

    05/09/2023, 5:50 PM
    and you could query it through puppet facts show... with a custom fact
  • e

    erik

    05/09/2023, 6:02 PM
    hmmmm.
    X509v3 extensions:
    1.3.6.1.4.1.34380.1.3.13:
    ..pe_compiler
  • e

    erik

    05/09/2023, 6:19 PM
    this isn't necessarily the most elegant solution, but:
    Copy code
    #!/bin/bash
    FQDN=$(hostname).$(dnsdomainname)
    CERTPATH=/etc/puppetlabs/puppet/ssl/certs/$FQDN.pem
    if openssl x509 -in $CERTPATH -text | grep -q "pe_compiler"; then
      echo "is compiler"
    else
      echo "is not compiler"
    fi
  • v

    vchepkov

    05/09/2023, 6:19 PM
    trusted hash is exposed to puppet, I think
  • v

    vchepkov

    05/09/2023, 6:21 PM
    and
    Copy code
    CERTPATH=$(puppet config print hostcert)
  • e

    erik

    05/09/2023, 6:21 PM
    oh good point.
  • e

    erik

    05/09/2023, 6:21 PM
    I should not be relying on absolute paths
  • v

    vchepkov

    05/09/2023, 6:23 PM
    And, you can use jesse/certificate_extensions_facts module, it will convert certificate to facts
  • d

    Dr Bunsen Honeydew

    05/09/2023, 6:23 PM
    See the
    jesse-certificate_extensions_facts
    module at https://forge.puppet.com/jesse/certificate_extensions_facts?src=slack&channel=puppet-enterprise
  • v

    vchepkov

    05/09/2023, 6:25 PM
    Copy code
    # facter -p certificate_extension_1_3_6_1_4_1_34380_1_1_9812
    puppet/server
  • b

    bastelfreak

    05/11/2023, 3:09 PM
    mhm
  • b

    bastelfreak

    05/11/2023, 3:09 PM
    https://www.puppet.com/docs/pe/2023.1/commands_endpoint.html#post_v1_commands_unpin_from_all that api endpoint is indeed a bit slow with a few node groups
  • s

    Slackbot

    05/11/2023, 3:09 PM
    This message was deleted.
    j
    b
    c
    • 4
    • 18
  • s

    Slackbot

    05/12/2023, 7:59 AM
    This message was deleted.
    b
    m
    • 3
    • 44
  • s

    Slackbot

    05/12/2023, 4:57 PM
    This message was deleted.
    k
    c
    t
    • 4
    • 3
  • s

    Slackbot

    05/12/2023, 4:57 PM
    This message was deleted.
    c
    t
    • 3
    • 3
  • s

    Slackbot

    05/15/2023, 9:30 AM
    This message was deleted.
    c
    s
    • 3
    • 4
  • s

    Slackbot

    05/16/2023, 2:52 PM
    This message was deleted.
    b
    j
    • 3
    • 7
  • s

    Slackbot

    05/17/2023, 10:28 AM
    This message was deleted.
    j
    b
    j
    • 4
    • 15
  • s

    Slackbot

    05/18/2023, 7:36 PM
    This message was deleted.
    m
    b
    c
    • 4
    • 18
  • s

    Slackbot

    05/18/2023, 8:20 PM
    This message was deleted.
    j
    b
    • 3
    • 2
  • m

    Mossman

    05/21/2023, 10:29 PM
    can anyone tell me what
    puppet_admin_certs
    means in this part of the docs? https://www.puppet.com/docs/pe/2021.7/config_puppetserver.html#add_certificates_to_the_puppet_admin_certificate_allowlist
  • s

    Slackbot

    05/22/2023, 9:28 AM
    This message was deleted.
    m
    • 2
    • 1
  • d

    daloran

    05/22/2023, 12:34 PM
    Is there a plug in for ingesting reports to ELK stack or are most people just pulling from logs?
  • m

    Moe

    05/22/2023, 7:56 PM
    When following the documentation Regenerate the agent certificate of your Puppet primary server and add DNS alt-names or other certificate extensions on the latest Puppet PE primary server I am running into some issues. When following it step by step i am running into the following output:
    Copy code
    root@puppet-primary:[~] #: puppetserver ca clean --certname puppet-primary.home.arpa
    Certificate for puppet-primary.home.arpa has been revoked
    Cleaned files related to puppet-primary.home.arpa
    root@puppet-primary:[~] #:
    
    
    root@puppet-primary:[~] #: puppet ssl clean
    Error: Could not run: Failed to connect to the CA to determine if certificate puppet-primary.home.arpa has been cleaned
    Wrapped exception:
    certificate verify failed [certificate revoked for CN=puppet-primary.home.arpa]
    root@puppet-primary:[~] #:
    This makes it seem that I need to manually remove the files in
    /etc/puppetlabs/puppet/ssl/
    . (Also the docs should say
    pe-puppetserver
    instead of
    puppetserver
    but this something I might bring up with support.
  • v

    vchepkov

    05/22/2023, 8:02 PM
    You are in PE channel, PE has special infrastructure plans
  • v

    vchepkov

    05/22/2023, 8:03 PM
    https://www.puppet.com/docs/pe/2021.7/regenerate_certificates.html
  • m

    Moe

    05/22/2023, 8:18 PM
    Ah, haven't thought about looking at the PE tasks and plans. That link above was just was Google listed at the top when searching for it.
  • m

    Moe

    05/22/2023, 8:18 PM
    Thanks, will try that out!
    👍 1
  • m

    Moe

    05/22/2023, 8:57 PM
    Worked flawlessly
    mandalorian 1
1...525354...73Latest