Puppet in Docker Setting up Puppet Infrastructure

0 votes
I am exploring Puppet in docker and as a part of my hands-on in understanding this approach, i wish to replicate the puppet infrastructure which has a puppet master and a ubuntu node as a puppet agent. I don't want the PuppetDB. How can i set up this using docker?
Aug 19, 2019 in Puppet by Zoya

1 answer to this question.

0 votes

You can use the images for standing up various Puppet applications on Docker.

As an example, first we'll create a Docker network

For the purposes of this demo, we're using the network and service discovery features added in Docker 1.11.

docker network create puppet

Then we can run a copy of Puppet Server

In the below code, standalone means that this image does not automatically connect to puppetDB. In other cases you could probably go for puppet/puppetserver image.

docker run --net puppet --name puppet --hostname puppet puppet/puppetserver-standalone

This boots the container and, because we're running in the foreground, it prints lots of output to the console. After this is running, we can run a Puppet agent in another container.

docker run --net puppet puppet/puppet-agent-ubuntu

This connects to the Puppet Server, applies the resulting catalog, prints a summary, and then exits.

answered Aug 19, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

0 votes
1 answer
0 votes
1 answer

Sign certificates while setting up puppet on Ubuntu

Hey @Adi, On your puppet master execute ...READ MORE

answered Feb 21, 2019 in Puppet by Jobin
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
+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,090 points
0 votes
1 answer

Puppet+Kubernetes: Setting up the environment to use kubernetes in puppet

As you have already installed the module, ...READ MORE

answered Aug 21, 2019 in Puppet by Sirajul
• 59,230 points
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
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP