Puppet in Docker How do i launch puppet agents test agents in Docker containers

0 votes

I have set up my puppet in docker infrastructure as shown in this thread using https://www.edureka.co/community/55130/puppet-docker-configuring-puppet-containers-docker-compose.

As a part of my set up I have a Puppet Server, PuppetDB, a PostgresDB container for PuppetDB and the open source dashboards Puppetboard and Puppet Explorer in Docker containers. 

I wanted to know how could I connect a few puppet agent probably ephemeral agents to this just for test purpose. Can somebody help me with this?

Aug 20, 2019 in Puppet by Karan
• 19,610 points
1,836 views

1 answer to this question.

0 votes

You could connect any agents to the Puppet infrastructure launched above however as an illustration in this context, launch a few ephemeral puppet agents in Docker containers.

  • Note that Docker compose automatically creates a default network which we need to connect our containers to in order for them to find the Puppet Server.

  • Let's run up a few alpine agents. Run the following command a few times.

docker run --net compose_default puppet/puppet-agent-alpine
  • And then run some Ubuntu based agents. Again run the command a couple of times to populate the database.

docker run --net compose_default puppet/puppet-agent-ubuntu
  • Now access the dashboard. You will probably have some data to explore and test.

answered Aug 20, 2019 by Sirajul
• 59,230 points
Puppet in Docker : Accessing Puppet Explorer Dashboard.

Related Questions In Puppet

0 votes
1 answer

Puppet in Docker: How do I query PuppetDB API in a container setup?

PuppetDB exposes a dashboard, showing various operational ...READ MORE

answered Aug 20, 2019 in Puppet by Sirajul
• 59,230 points
1,097 views
0 votes
1 answer

How do I enable puppet collection repository in puppet if I am using Puppet 6.7?

In Puppet6.7 you have to enable Puppet ...READ MORE

answered Jul 31, 2019 in Puppet by Sirajul
• 59,230 points
1,279 views
0 votes
0 answers

How do i set up docker with puppet?

I want to use puppetlabs/docker module in ...READ MORE

Aug 13, 2019 in Puppet by Karan
• 19,610 points
2,611 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,719 views
0 votes
1 answer

Puppet in Docker : How do i create puppet containers?

For creating puppet containers, first we need ...READ MORE

answered Aug 20, 2019 in Puppet by Sirajul
• 59,230 points
2,215 views
0 votes
1 answer

Puppet in Docker : How do i run my dockerized puppet container periodically?

Instead of running a Dockerized puppet container onetime, ...READ MORE

answered Aug 19, 2019 in Puppet by Sirajul
• 59,230 points
1,129 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