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

    bastelfreak

    08/04/2022, 1:12 PM
    do you have multiple resolvers configured? is this a continues error or does it disappear if you try an again run again?
  • k

    kovid bhardwaj

    08/04/2022, 1:21 PM
    sometimes disappear
  • b

    bastelfreak

    08/04/2022, 1:22 PM
    sounds like your DNS resolver is a bit broken
  • s

    Slackbot

    08/04/2022, 3:16 PM
    This message was deleted.
    b
    a
    +2
    • 5
    • 6
  • s

    Slackbot

    08/04/2022, 3:43 PM
    This message was deleted.
    j
    c
    • 3
    • 15
  • j

    Joost

    08/04/2022, 3:46 PM
    It does not look like the
    ca_crl.pem
    file was changed while revoking the certificate. Not sure if that could be related?
    Scratch that — it did .. 🙂 so signed cert removed, and crl file got update.
  • j

    Joost

    08/04/2022, 3:47 PM
    It does not look like the
    ca_crl.pem
    file was changed while revoking the certificate. Not sure if that could be related?
    Scratch that — it did .. 🙂 so signed cert removed, and crl file got updated.
  • j

    Joost

    08/04/2022, 3:47 PM
    It does not look like the
    ca_crl.pem
    file was changed while revoking the certificate. Not sure if that could be related?
    Scratch that — it did .. 🙂 so signed cert removed, and crl file got updated. But agent still works 🤔
  • s

    Slackbot

    08/04/2022, 3:59 PM
    This message was deleted.
    b
    r
    • 3
    • 3
  • j

    Joost

    08/04/2022, 4:04 PM
    That’s interesting @csharpsteen — what’s the exact purpose of the
    X-Client-Cert
    header then? I was assuming that it was using this information to still verify this information.
  • c

    csharpsteen

    08/04/2022, 4:04 PM
    Puppet Server parses it to pull out items that get set as variables --- like
    certname
    and
    $trusted
    .
  • c

    csharpsteen

    08/04/2022, 4:05 PM
    Puppet Server parses it to pull out items that get set as variables --- like
    $certname
    and
    $trusted
    .
  • j

    Joost

    08/04/2022, 4:09 PM
    Is that part of the code open source so that I can have a 👀 on it? I’d assume I would find
    X-Client-Cert
    somewhere in the code but I only find https://github.com/puppetlabs/puppetserver/blob/d5889d7322f2a07c110cd340bb75eb09d9[…]lj/puppetlabs/services/request_handler/request_handler_core.clj 🤔
  • c

    csharpsteen

    08/04/2022, 4:33 PM
    I think you're looking in the right place. The rest of the code like refers to that header as
    header-client-cert-name
    .
  • l

    Les Shiner

    08/04/2022, 6:12 PM
    Ok, built a module. I then add that module as a class to my site.pp file in my environment so that my nodes get it?
  • l

    Les Shiner

    08/04/2022, 6:13 PM
    module has pilot_groups.pp in it with this as the code
  • l

    Les Shiner

    08/04/2022, 6:13 PM
    Copy code
    class test_pilot_groups::pilot_groups {
      file { 'C:/test_pilot_groups/':
        ensure => directory,
        path   => 'C:/test_pilot_groups/',
        source => 'puppet:///modules//test_pilot_groups//files//',
      }
    }
  • l

    Les Shiner

    08/04/2022, 6:14 PM
    then in my site.pp i put
  • l

    Les Shiner

    08/04/2022, 6:14 PM
    Copy code
    node default {
      # This is where you can declare classes for all nodes.
      # Example:
      #   class { 'my_class': }
      class { 'test_pilot_groups': }
    }
  • l

    Les Shiner

    08/04/2022, 6:14 PM
    and my agent doesn't like this
  • l

    Les Shiner

    08/04/2022, 6:15 PM
    Copy code
    Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Could not find declared class test_pilot_groups
  • b

    Brian Schonecker

    08/04/2022, 6:15 PM
    You can leave out the path argument if you want. Puppet will use the resource title by default.
  • l

    Les Shiner

    08/04/2022, 6:16 PM
    oh nice, didn't know that
  • s

    Slackbot

    08/04/2022, 6:16 PM
    This message was deleted.
    v
    • 2
    • 1
  • c

    csharpsteen

    08/04/2022, 6:16 PM
    class { 'test_pilot_groups': }
    should be:
    class { 'test_pilot_groups::pilot_groups': }
  • l

    Les Shiner

    08/04/2022, 6:16 PM
    it's that trailing :
  • l

    Les Shiner

    08/04/2022, 6:16 PM
    i literally had exactly that
  • l

    Les Shiner

    08/04/2022, 6:16 PM
    and it was giving me an error
  • l

    Les Shiner

    08/04/2022, 6:16 PM
    you're amazing
  • l

    Les Shiner

    08/04/2022, 6:17 PM
    thank you!
    🍻 1
1...119120121...428Latest