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

    Slackbot

    08/04/2023, 2:04 PM
    This message was deleted.
    d
    b
    +2
    • 5
    • 14
  • m

    matt

    08/04/2023, 2:26 PM
    I've got a little home lab that's got 20 puppet agents checking into a master, I've just noticed a glitch on 2 nodes, all the nodes check in and request a certificate from the puppet master as $node.$fqdn, and all nodes have a valid certificate, however 2 nodes, (which have a signed certificate on the puppet master as $node.$fqdn) continue to make a request to the puppet master for a certificate of just $node (so no fqdn suffix) puppet.conf on the client has certname as $node.$fqdn so that's fine, but in /etc/puppetlabs/puppet/ssl/certificate_requests on the client there is a $node.pem file, if I delete it, it comes back, if I delete the certificate request from the puppet master, it gets rerequested
  • m

    matt

    08/04/2023, 2:27 PM
    I don't understand why 2 nodes that have valid certificates are also requesting an additional certificate without the fqdn suffix, and what's causing that certificate request file to be recreated
  • m

    matt

    08/04/2023, 2:28 PM
    any thoughts on what could be driving the client to a.) request a second certificate even though it's got a valid cert on the master and the catalogue is being executed just fine b.) why the client's second request is from hostname, not hostname -f
  • r

    Robert Vincent

    08/04/2023, 2:29 PM
    Does anyone know how to submit a Puppet documentation change suggestion? I tried submitting a Pull Request, but it got rejected because I didn't begin the commit message with a reference to a tickets.puppetlabs.com issue. When I go to https://tickets.puppetlabs.com/ I see a message saying (sic):
    The migration to Perforce's Jira Cloud instance is complete. This Jira instance has now been made read-only.
    For a short period of time, public issues will unavailable. Updates will be posted here and the Puppet Community Slack when they are available.
    The https://perforce.atlassian.net page gives no clue as to how I should raise a Puppet ticket. Searching for "puppet" on that page yields a suggestion that I open a case with HR Service Desk.
  • v

    vchepkov

    08/04/2023, 2:29 PM
    puppet uses DNS to determine certname, if it's not configured
  • v

    vchepkov

    08/04/2023, 2:29 PM
    so these two nodes have different dns configuration or settings
  • m

    matt

    08/04/2023, 2:31 PM
    dns is working just fine from what I can see, what lookup function would determine the certificate name ?
  • m

    matt

    08/04/2023, 2:31 PM
    I although thought the certificate name would have to be what was set in certname in puppet.conf
  • v

    vchepkov

    08/04/2023, 2:31 PM
    that last statement is correct
  • v

    vchepkov

    08/04/2023, 2:32 PM
    and what is set there?
  • m

    matt

    08/04/2023, 2:32 PM
    $node.$fqdn
  • b

    bastelfreak

    08/04/2023, 2:32 PM
    in which section did you set it?
  • b

    bastelfreak

    08/04/2023, 2:32 PM
    can you share the whole puppt.conf?
  • m

    matt

    08/04/2023, 2:32 PM
    just validated puppetmaster and puppet client can both forward and reverse lookup the hostname
  • m

    matt

    08/04/2023, 2:32 PM
    of course
  • c

    csharpsteen

    08/04/2023, 2:32 PM
    certname
    set in the
    main
    section of
    puppet.conf
    should be what gets used.
  • c

    csharpsteen

    08/04/2023, 2:33 PM
    If
    certname
    is not set, the default is determined from DNS on the agent.
  • m

    matt

    08/04/2023, 2:33 PM
    # puppet.conf managed by puppet class cfg_puppet_conf
    # do not put changes in here - they will be overwritten [main] [agent] pluginsync = true report = true ca_server = jarvis.no-dns.co.uk certname = tain.no-dns.co.uk environment = production server = jarvis.no-dns.co.uk runinterval = 5m ~
  • c

    csharpsteen

    08/04/2023, 2:33 PM
    Set it in
    main
    .
    👍 1
  • m

    matt

    08/04/2023, 2:33 PM
    WOW
  • m

    matt

    08/04/2023, 2:34 PM
    all this time, I'd set it in agent
  • m

    matt

    08/04/2023, 2:34 PM
    been a long time since I needed to look up the config like that, I should have looked it up sooner
  • m

    matt

    08/04/2023, 2:34 PM
    thank you
  • m

    matt

    08/04/2023, 2:34 PM
    I'll set it now
  • c

    csharpsteen

    08/04/2023, 2:35 PM
    Note: You must set the certname in the main section of the puppet.conf file. Setting it in a different section causes errors.
    https://www.puppet.com/docs/puppet/7/configuration.html#certname
  • m

    matt

    08/04/2023, 2:35 PM
    although.....if it's missing (as it is because it's set incorrectly in agent) it should fall back to DNS ?
  • m

    matt

    08/04/2023, 2:35 PM
    DNS resolves as the fqdn
  • m

    matt

    08/04/2023, 2:35 PM
    so even then it should have the fqdn (I'll still correct my error of course)
  • v

    vchepkov

    08/04/2023, 2:36 PM
    I think it uses
    hostname -f
1...401402403...428Latest