Jira (PDB-5315) Obtain the new catalog from the server

14 views
Skip to first unread message

Bogdan Irimie (Jira)

unread,
Oct 13, 2021, 4:03:02 AM10/13/21
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
 
PuppetDB / Task PDB-5315
Obtain the new catalog from the server
Change By: Bogdan Irimie
Summary: Obtain a the new catalog from the server
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Bogdan Irimie (Jira)

unread,
Oct 13, 2021, 4:04:03 AM10/13/21
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Oct 20, 2021, 4:02:03 AM10/20/21
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
The server's catalog API is documented in: [https://puppet.com/docs/puppet/7/server/puppet-api/v4/catalog.html#post-puppetv4catalog]

We should generate all the catalogs for an environment.

Bogdan Irimie (Jira)

unread,
Oct 20, 2021, 4:03:02 AM10/20/21
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Acceptance Criteria: CURL commands to compile a catalog

Bogdan Irimie (Jira)

unread,
Oct 20, 2021, 4:04:02 AM10/20/21
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
The server's catalog API is documented in: [https://puppet.com/docs/puppet/7/server/puppet-api/v4/catalog.html#post-puppetv4catalog]

We should generate all the catalogs for an environment.

Andrei Filipovici (Jira)

unread,
Oct 20, 2021, 6:36:03 AM10/20/21
to puppe...@googlegroups.com
Andrei Filipovici assigned an issue to Andrei Filipovici
Change By: Andrei Filipovici
Assignee: Andrei Filipovici

Andrei Filipovici (Jira)

unread,
Oct 21, 2021, 9:22:03 AM10/21/21
to puppe...@googlegroups.com
Andrei Filipovici commented on Task PDB-5315
 
Re: Obtain the new catalog from the server

To get an agent catalog we first must enable access to the /puppet/v4/catalog endpoint.
For that you need to change the rule puppetlabs v4 catalog for services from file /etc/puppetlabs/puppetserver/conf.d/auth.conf.
Replace deny: "*" with allow-unauthenticated: true.

Then you can do requests like:

curl -k --request POST 'https://uneven-kerosene.delivery.puppetlabs.net:8140/puppet/v4/catalog' --header 'Content-Type: application/json' --data-raw '{
{
  "certname": "uneven-kerosene.delivery.puppetlabs.net",
  "persistence": { "facts": false, "catalog": false },
  "environment": "production"
}

Just replace the server fqdn in the endpoint and body and the environment name.

Reply all
Reply to author
Forward
0 new messages