Giter Club home page Giter Club logo

docker-puppetserver's Introduction

Puppet Server

This Image attempts to create a useable Puppet Master running the Puppetlabs PuppetServer (https://github.com/puppetlabs/puppet-server) Master.

environment variables

JAVA_ARGS

You can update the JAVA_ARGS Setting by passing the PUPPETSERVER_JAVA_ARGS environment variable.

The default set in the Dockerfile is 512m PUPPETSERVER_JAVA_ARGS="-Xms512m -Xmx512m"

To set JAVA_ARGS back to the PuppetLabs default use:

docker run -it -d -e PUPPETSERVER_JAVA_ARGS="-Xms2g -Xmx2g -XX:MaxPermSize=256m" --name puppet -h puppet tfhartmann/puppetserver

Examples

Basic Example

Run a puppet master useing the image defaults. This will run a local Puppet Server, exposing port 8140. The master will autosign certs.

docker run -it -d --name puppet -h puppet tfhartmann/puppetserver

shared /etc/puppet

Run a puppet server and mount your own /etc/puppet directory for testing. Keeping in mind this will overwrite any config file in /etc/puppet with (puppet.conf, auth.conf, and fileserver.conf etc) with whatever you have in your local directory.

docker run -d --name puppet -v /home/user/puppet:/etc/puppet -h puppet tfhartmann/puppetserver

Run Puppet Server interactivly, mounting your local puppet repo over /etc/puppet In this case you'll also need to run "puppetserver foreground" to run the server

Interactive

docker run -it --rm --name puppet -v /home/user/puppet:/etc/puppet -h puppet tfhartmann/puppetserver /bin/bash

Run a Puppet Server and test agent

Start the Puppet Server:

docker run -it -d --name puppet -h puppet tfhartmann/puppetserver

Now start and link the agent and run a puppet run (twice)

docker run -it --link puppet:puppet tfhartmann/puppetserver /bin/bash

Your output should looks something like this:

[root@1de898077e80 /]# puppet agent --test && puppet agent --test
Info: Creating a new SSL key for 1de898077e80.example.com
Info: Caching certificate for ca
Info: csr_attributes file loading from /etc/puppet/csr_attributes.yaml
Info: Creating a new SSL certificate request for 1de898077e80.example.com
Info: Certificate Request fingerprint (SHA256): BF:8D:90:1E:FB:9C:B4:4F:CA:56:49:FD:5A:6C:9F:04:30:9C:BF:D9:60:EB:E0:2F:61:DF:54:37:E6:19:63:3C
Info: Caching certificate for 1de898077e80.example.com
Info: Caching certificate_revocation_list for ca
Info: Caching certificate for ca
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for 1de898077e80.example.com
Info: Applying configuration version '1424445523'
Info: Creating state file /var/lib/puppet/state/state.yaml
Notice: Finished catalog run in 0.01 seconds
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for 1de898077e80.example.com
Info: Applying configuration version '1424445495'
Notice: Finished catalog run in 0.01 seconds
[root@1de898077e80 /]#

docker-puppetserver's People

Contributors

tfhartmann avatar

Watchers

 avatar  avatar

docker-puppetserver's Issues

hostname command missing from image

Causes issues when generating SSL certs for the puppet master.

Temporary fix is to run:

$ docker exec <container_name> yum install -y hostname

immediately after starting the container.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.