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 in Puppet by Zoya
14 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 by Sirajul
• 25,700 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 in Puppet by Jobin
42 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 in Puppet by Jason
114 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 in Puppet by Sam
• 1,560 points
13 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
156 views
0 votes
1 answer
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,980 points
21 views