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

    Slackbot

    07/05/2023, 12:53 PM
    This message was deleted.
    🚀 1
    🎉 2
    r
    d
    • 3
    • 2
  • s

    Slackbot

    07/05/2023, 12:55 PM
    This message was deleted.
    y
    s
    +2
    • 5
    • 17
  • d

    Dr Bunsen Honeydew

    07/05/2023, 12:55 PM
    See the
    puppetlabs-postgresql
    module at https://forge.puppet.com/puppetlabs/postgresql?src=slack&channel=puppet
  • r

    Raj Parpani

    07/05/2023, 4:12 PM
    Hi puppeteers, My private key on agent does not match the root certificate. Any suggestions on how could I resolve this? I have tried puppet ssl clean and regenerate the certificate again but no luck
  • n

    n3snah

    07/05/2023, 4:13 PM
    You will need to do a clean on the primary server as well as the agent. On server
    puppetserver ca clean --certname=name.of.cert.of.agent
  • r

    Raj Parpani

    07/05/2023, 4:24 PM
    It says hostcert not found
  • r

    Raj Parpani

    07/05/2023, 4:31 PM
    @n3snah Any suggestion?
  • n

    Nick Bertrand

    07/05/2023, 4:48 PM
    @Raj Parpani try removing the cached CA cert from the agent host:
    /etc/puppetlabs/puppet/ssl/certs/ca.pem
  • c

    Collen McCoy

    07/05/2023, 5:03 PM
    Hi all, i have been attempting to use the package resource to install a .deb file with the dpkg provider. whenever my code is run, I am informed that my package is created (corrective). upon running puppet resource package <package that installs deb> it returns this:
  • c

    Collen McCoy

    07/05/2023, 5:04 PM
    package { 'package name removed': ensure => 'purged', provider => 'apt', }
  • c

    Collen McCoy

    07/05/2023, 5:04 PM
    is this some form of misconfiguration on my end? or is this expected?
  • s

    Slackbot

    07/05/2023, 5:05 PM
    This message was deleted.
    h
    c
    • 3
    • 7
  • r

    Raj Parpani

    07/05/2023, 5:44 PM
    @Nick Bertrand I removed it
  • r

    Raj Parpani

    07/05/2023, 5:44 PM
    What about after removing it?
  • r

    Raj Parpani

    07/05/2023, 5:45 PM
    I do see a private key listed as well in the ssl folder. Should I remove what is inside it
  • n

    Nick Bertrand

    07/05/2023, 5:50 PM
    @Raj Parpani if you want to try starting from scratch, you could remove the agent private key and cert as well. I think a command like this should do it:
    find /etc/puppetlabs/puppet/ssl -name $(hostname -f).pem -delete
    . If you still have trouble, could you paste the output of
    puppet agent -t
    ?
  • r

    Raj Parpani

    07/05/2023, 5:55 PM
    Info: Creating a new RSA SSL key for us03cpt1.ppe.nxtravel.com Info: csr_attributes file loading from C:/ProgramData/PuppetLabs/puppet/etc/csr_attributes.yaml Info: Creating a new SSL certificate request for us03cpt1.ppe.nxtravel.com Info: Certificate Request fingerprint (SHA256): 9C5FA0f58E561B5689C8E0E7B09E498C980F8BC92B7B0457F4982E68F0F80D:1F Info: Downloaded certificate for us03cpt1.ppe.nxtravel.com from https://us03pup01.pacific.nxtravel.com:8140/puppet-ca/v1 Error: The certificate for 'CN=us03cpt1.ppe.nxtravel.com' does not match its private key Error: The certificate for 'CN=us03cpt1.ppe.nxtravel.com' does not match its private key
  • r

    Raj Parpani

    07/05/2023, 5:56 PM
    Looks like I'm still getting that error after removing the ca and private key
  • n

    Nick Bertrand

    07/05/2023, 5:59 PM
    OK, it looks like the issue is that there is already a cert for that node on the puppet server. What happens when you run
    puppetserver ca clean --certname <http://us03cpt1.ppe.nxtravel.com|us03cpt1.ppe.nxtravel.com>
    on us03pup01.pacific.nxtravel.com?
  • r

    Raj Parpani

    07/05/2023, 6:04 PM
    Could not find 'hostcert' at '/home/rparpani@pacific.nxtravel.com/.puppetlabs/etc/puppet/ssl/certs/us03pup01.pacific.nxtravel.com.pem'
  • n

    Nick Bertrand

    07/05/2023, 6:10 PM
    Might need to run that command with
    sudo
    ?
  • n

    Nick Bertrand

    07/05/2023, 6:11 PM
    Or
    sudo -u <user running puppetserver>
  • r

    Raj Parpani

    07/05/2023, 6:13 PM
    says I am not in the sudoers file
  • n

    Nick Bertrand

    07/05/2023, 6:19 PM
    I think you might need assistance from somebody with superuser privileges on the puppet server
  • r

    Raj Parpani

    07/05/2023, 6:28 PM
    yes i did sudo su and it said i'm not in sudoers file
  • n

    Nick Bertrand

    07/05/2023, 6:40 PM
    Are you able to log in as root to that server? If not, it sounds like you'll need help from somebody who is able to become the root user
  • y

    Yorokobi

    07/05/2023, 6:42 PM
    The paranoid admin in me wonders if this isn't some subversive way to remove a host from being managed by Puppet so as to bypass an enforced control ... 😆
    😇 1
  • c

    csharpsteen

    07/05/2023, 6:55 PM
    Could not find 'hostcert' at '/home/<mailto:rparpani@pacific.nxtravel.com|rparpani@pacific.nxtravel.com>/...
    --> make sure to run
    puppetserver ca
    as
    root
    so that it finds the right config and key files.
  • r

    Raj Parpani

    07/05/2023, 7:21 PM
    While I try to troubleshoot this, another quick question:
  • r

    Raj Parpani

    07/05/2023, 7:21 PM
    What is the process to update the location for your puppet repo on the puppet master
1...388389390...428Latest