natemccurdy
08/19/2022, 6:53 PMpuppetdb::master::config
class on your compiler as wellnatemccurdy
08/19/2022, 6:53 PMLumiere
08/19/2022, 8:23 PMDr Bunsen Honeydew
08/19/2022, 8:23 PMSlackbot
08/22/2022, 6:07 AMSlackbot
08/22/2022, 7:08 AMsameer
08/22/2022, 7:12 AMbastelfreak
08/22/2022, 7:19 AMNeeloj
08/22/2022, 7:30 AMpuppet agent -t
I get below error, does anyone know why? The key for agent is availabel on server:
PS C:\Users\> puppet agent -t
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: certificate verify failed [unable to get local issuer certificate for C
N=srv1]
Info: Retrieving pluginfacts
Error: /File[C:/ProgramData/PuppetLabs/puppet/cache/facts.d]: Failed to generate
additional resources using 'eval_generate': certificate verify failed [unable t
o get local issuer certificate for CN=srv1]
Error: /File[C:/ProgramData/PuppetLabs/puppet/cache/facts.d]: Could not evaluate
: Could not retrieve file metadata for puppet:///pluginfacts: certificate verify
failed [unable to get local issuer certificate for CN=srv1]
Slackbot
08/22/2022, 7:48 AMSlackbot
08/22/2022, 8:16 AMKarthik Keshav M
08/22/2022, 9:33 AMB S
08/22/2022, 9:49 AMB S
08/22/2022, 9:49 AMB S
08/22/2022, 9:54 AMSlackbot
08/22/2022, 11:12 AMSkylar Thompson
08/22/2022, 6:12 PMcertname
or an IP address binding returned by facter
) but might be shared by multiple applications. For instance, we might have a node Puppet knows as <http://foo.example.com|foo.example.com>
that has a CNAME <http://bar.example.com|bar.example.com>
our customers would know, with (say) both HTTP and PostgreSQL services we would like to monitor. My first thought is that we should export a host resource for <http://bar.example.com|bar.example.com>
to our monitoring system, and then one service resource for each of the HTTP and PostgreSQL services, and have our monitoring system collect those resources.
The problem is that both the HTTP and PostgreSQL classes need to export this host resource without causing a duplicate declaration. My understanding of exported resources is that I can't test the catalog of the exporting node since the resource would only exist in PuppetDB, and the catalog of the collecting node after collection. If this is wrong, please correct me. 🙂
I had a thought that I could query PuppetDB before export to see if that resource exists, for instance:
$r = puppetdb_query('resources{ type = "Profile::Monitoring::Host" and title = "<http://bar.example.com|bar.example.com>" and exported = true}')
Skylar Thompson
08/22/2022, 6:13 PM$r
is empty, then I know it's safe to export the resource. If it's not empty, then it's already been exported and doesn't have to be exported again. The problem is that I'm still getting a duplicate resource error, so this query or test doesn't seem to be working. Is this close to what I should be doing, or is there a better way to do it?vchepkov
08/22/2022, 6:17 PMvchepkov
08/22/2022, 6:17 PMvchepkov
08/22/2022, 6:17 PMSkylar Thompson
08/22/2022, 6:18 PMvchepkov
08/22/2022, 6:20 PMSkylar Thompson
08/22/2022, 6:25 PMLes Shiner
08/22/2022, 7:10 PMvchepkov
08/22/2022, 7:11 PMvchepkov
08/22/2022, 7:11 PMCVQuesty
08/22/2022, 7:12 PMCVQuesty
08/22/2022, 7:12 PMCVQuesty
08/22/2022, 7:12 PM