Puppet in Docker: Error while running the Puppet container

0 votes

I am using docker compose to pull and configure the puppet environment that includes a PuppetDB for which i have a docker-compose.yml file. 

While running the Puppet container I get the following error:

ERROR [puppetserver] Puppet Failed to execute '/pdb/cmd/v1?checksum=eeb40197db6a4ac3d8bce09778388cf7a812a621&version=5&certname=puppetdb.local&command=replace_facts' on at least 1 of the following 'server_urls': https://puppetdb:8081
ERROR [c.p.h.c.i.PersistentSyncHttpClient] Error executing http request
java.net.ConnectException: Connection refused

How do I resolve this? Kindly help.

Aug 19 in Puppet by Karan
• 1,980 points
14 views

1 answer to this question.

0 votes

Try to uncomment the following lines in the definition of the puppet service in the docker-compose.yaml file:

environment:
  - PUPPETDB_SERVER_URLS=https://puppetdb.local:8081
links:
  - puppetdb:puppetdb.local

This should probably resolve it!

answered Aug 19 by Sirajul
• 25,700 points

Related Questions In Puppet

0 votes
1 answer
0 votes
1 answer

Is it possible to install puppet agent in a docker container on linux?

Hey @Janice, this is pretty simple. Create ...READ MORE

answered Mar 12 in Puppet by Jason
115 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,540 points
156 views
0 votes
1 answer
0 votes
1 answer

Puppet in Docker: Running puppet commands inside a docker container.

You can use Puppet commands, such as resource.  The following command ...READ MORE

answered Aug 19 in Puppet by Sirajul
• 25,700 points
13 views