Oleksandr Lytvyn
05/31/2022, 5:31 AMautosign = /etc/puppetlabs/puppet/autosign.conf { mode = 0664 }
Initially I edited this file to add there my domains via wildcard:
*.<http://example.in|example.in>
*.<http://devexample.in|devexample.in>
And I faced this issue (as described in first message) --> cert was auto signed, and then instantly revoked on server, and when I tried to run puppet agent -t
on client -> it wasreturning error that certifcate was revoked.
At some point I understood that It may be causing issues and removed these wildcard domains from /etc/puppetlabs/puppet/autosign.conf
and restarted Puppet server. Then after that I was doing manual signing of the cert on server.
the error looks like it is re-using the key for a cert that has been revoked or that you are trying to get a new cert for a cert that already exists on the Puppet serverAfter each attempt: • on client I purged puppet-agent package, and ALL directories (with leftovers) (aka
/etc/puppetlabs
and /opt/puppetlabs
• on server I executed puppetserver ca clean --certname XXXXXXXXXX
to removecerts of this host
------------------------------------------
Interesting stuff, I'm not sure if it's supposed to be like that or not:
• After I migrated CA I pointed old clients to new Puppet7 server and they are working correctly BUT --> when I run puppetserver ca list --all
I was seeing only certificate for Puppet 7 server, and no other certs for clients. Shouldn't they (old clients) create some new records in new Puppet server?
PS. On agent I don't have "csr_attributes.yaml" (and I haven't edited nor created it)Oleksandr Lytvyn
05/31/2022, 6:29 AMI wrote you multiple times to copy over the whole ssl dir from the old server :)Yes, you did 🙂 But I didn't knew "why" it should be done, and it has hunderds of old certificates (not actual), so i didn't wanted to migrate all old stuff
Slackbot
05/31/2022, 8:11 AMSlackbot
05/31/2022, 12:55 PMAllahshukur Ahmadzada
05/31/2022, 4:17 PMhbui
05/31/2022, 4:30 PMexec
resource will runhbui
05/31/2022, 4:30 PMnotify => Exec['my_exec']
) it will run againhbui
05/31/2022, 4:31 PMexec
from running all the time by using onlyif, unless, creates
parametershbui
05/31/2022, 4:32 PMhbui
05/31/2022, 4:33 PMexec
resource?Allahshukur Ahmadzada
05/31/2022, 4:41 PMAllahshukur Ahmadzada
05/31/2022, 4:43 PMAllahshukur Ahmadzada
05/31/2022, 4:43 PMLumiere
05/31/2022, 4:50 PMLumiere
05/31/2022, 4:51 PMLumiere
05/31/2022, 4:51 PMLumiere
05/31/2022, 4:51 PMLumiere
05/31/2022, 4:53 PMhbui
05/31/2022, 6:03 PMAllahshukur Ahmadzada
05/31/2022, 7:30 PMSlackbot
06/01/2022, 7:46 AMMarty Ewings
06/01/2022, 8:17 AMOleksandr Lytvyn
06/01/2022, 8:20 AMmax-active-instances: 2
and JVM min and max Heap size equal to 4GB does this mean that in total it will be 2x4 = 8 GB usage?Marty Ewings
06/01/2022, 8:32 AMMarty Ewings
06/01/2022, 8:32 AMMarty Ewings
06/01/2022, 8:36 AMkrishna kant mishra
06/01/2022, 10:48 AMGoran Brannstrom
06/01/2022, 11:30 AMSlackbot
06/01/2022, 12:35 PMYehuda Katz
06/01/2022, 12:59 PMfile
, exec
, and other "built-in" types: https://puppet.com/docs/puppet/7/type.html
Also look at the stdlib
module which adds file_line
and some other useful helpers: https://forge.puppet.com/modules/puppetlabs/stdlib
Find a simple module and see how it works. I have recently been doing a lot of work with the Puppetlabs HAProxy module - it is large, but simple.