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, 2019 in Puppet by Karan
• 19,610 points
975 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, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

0 votes
1 answer

Error while enabling the official puppet lab collection repository

Hey @Alia, try executing these commands and ...READ MORE

answered Feb 25, 2019 in Puppet by Nandita
983 views
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, 2019 in Puppet by Jason
1,530 views
0 votes
1 answer

Puppet: Error while trying to execute shell commands in Exec resource type

The default exec provider on *nix OSes ...READ MORE

answered Aug 2, 2019 in Puppet by Sirajul
• 59,230 points
3,175 views
+2 votes
1 answer
+2 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
• 58,020 points
2,739 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, 2019 in Puppet by Sirajul
• 59,230 points
704 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP