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
42 views

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
• 53,080 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
89 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
360 views
0 votes
0 answers

Puppet+Docker: Rebuild an image with respect to changes in dockerfile

I am building a docker image via ...READ MORE

Aug 13, 2019 in Puppet by Sam
• 5,520 points
166 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
• 57,530 points
538 views
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
• 53,080 points
239 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
• 10,080 points
313 views