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 in Puppet by Karan
• 1,820 points
17 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 by Sirajul
• 25,300 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 in Puppet by Sirajul
• 25,300 points
14 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 in Puppet by Sirajul
• 25,300 points
27 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 in Puppet by Karan
• 1,820 points
19 views
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,520 points
154 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 in Puppet by Sirajul
• 25,300 points
21 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 in Puppet by Sirajul
• 25,300 points
16 views