0% found this document useful (0 votes)
21 views9 pages

Devops - Continuous Deployment Automation: Run Puppet Master & Puppet Agent in Docker

This document discusses setting up Puppet master and agent containers in Docker to enable continuous deployment. It provides steps to: 1. Pull Puppet images from DockerHub and run Puppet master and agent containers, configuring hostnames and networking. 2. Install the Puppet server in the master container and Puppet agent in the agent container. 3. Configure the Puppet master and agent, start the Puppet master service, and authenticate the agent with the master by requesting and signing a certificate. 4. Provide an example of testing a Puppet policy file by creating a manifest on the master and applying it on the agent.

Uploaded by

cristian080989
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views9 pages

Devops - Continuous Deployment Automation: Run Puppet Master & Puppet Agent in Docker

This document discusses setting up Puppet master and agent containers in Docker to enable continuous deployment. It provides steps to: 1. Pull Puppet images from DockerHub and run Puppet master and agent containers, configuring hostnames and networking. 2. Install the Puppet server in the master container and Puppet agent in the agent container. 3. Configure the Puppet master and agent, start the Puppet master service, and authenticate the agent with the master by requesting and signing a certificate. 4. Provide an example of testing a Puppet policy file by creating a manifest on the master and applying it on the agent.

Uploaded by

cristian080989
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

DEVOPS – CONTINUOUS DEPLOYMENT

AUTOMATION

RUN PUPPET MASTER & PUPPET AGENT IN DOCKER


DevOps

Continuous Feedback

Continuous Continuous Continuous Continuous Continuous


Development Integration Testing Deployment Monitoring
CREATE PUPPET DOCKER CONTAINERS
Choose a suitable & stable puppet image
from dockerhub and install in your
docker server -> $ docker pull
devopsil/puppet ->
Install a docker container with a suitable
name -> $ Docker run --name
puppetmaster -it devopsil/puppet bash -
> Install another docker container with a
suitable name -> $ Docker run --name
puppetagent -it devopsil/puppet bash ->
CREATE PUPPET DOCKER CONTAINERS
Configure hostname in puppetmaster
container with a meaningful name in
network file -> # vi etc/sysconfig/network -
> HOSTANME=master.demo.com ->
Configure hostname in puppetagent
container with a meaningful name in
network file -> # vi etc/sysconfig/network -
> HOSTNAME=agent.demo.com ->
Configure hostname in puppetmaster &
puppetagent with same name in hosts file -
># vi etc/hosts -> <masterip> 172.17.0.2
master.demo.com -> <agentip> 172.17.0.3
agent.demo.com ->
CREATE PUPPET DOCKER CONTAINERS
Ping master form agent and agent from
master to test network connection
between puppetmaster & puppetagent
containers->

INSTALL PUPPET SERVER & PUPPET


AGENT IN DOCKER CONTAINERS

Install puppet server in puppetmaster


container -># yum install –y puppet
puppet-server facter -> install puppet
agent in puppetagent container ->#
yum install –y puppet facter ->
INSTALL PUPPET SERVER & PUPPET
AGENT IN DOCKER CONTAINERS

Update puppet.conf file under [main] in


puppetmaster container -># vi
etc/puppet/puppet.conf -> certname =
master.demo.com -> Update puppet.conf file in
puppetagent container -># vi
etc/puppet/puppet.conf -> server =
master.demo.com ->
Start puppet master in puppetmaster container
-># service puppetmaster start -># service
puppetmaster status ->
AUTHENTICATE PUPPET AGENT IN PUPPET
MASTER

Request certification from agent -># puppet


agent --test --server=<master hostname>
master.demo.com --waitforcert=50 -> check for
certificate request in master -># puppet cert list
-> sing certification in master -># puppert cert
sign <agent hostname> agent.demo.com ->
TEST A PUPPET POLICY EXAMPLE
Create a puppet policy file in puppet master in
manifest folder -> # vi
etc/puppet/manifest/site.pp ->
Apply the configuration change in puppet agent ->
# Puppet agent –-test
Thank you
http://solutionframework.blogspot.in

You might also like