Sign inSign up

jocag/vagrant-puppet

By jocag

•Updated over 9 years ago

Docker container used for testing Puppet modules and manifests.

Image
0

1.3K

jocag/vagrant-puppet repository overview

Build Status Docker Automated build

⁠Puppet Base Image

⁠Summary

This repository contains a dockerised Puppet⁠ installation published to the public Docker Hub⁠ registry using automated builds in Docker Cloud⁠

The Dockerfile for this image can be found in this Github repository provision-docker-vm⁠

⁠How to Obtain This Image

You can simply pull this image from Docker Hub⁠ using one of the available tags.

$docker pull jocag/vagrant-puppet:centos

⁠Building Your Own Container Based on an Image (Optional)

To build this image, simply pull this repository and cd into the directory that contains your preferred Dockerfile and run:

$docker build -t vagrant-puppet:latest .

⁠Configuration

There are base images available currently for CentOs 7.x and Ubuntu 16.04 systems, using both a Puppet stable version and Puppet agent 1.8.3.

Also, you can choose what Puppet version you would like to run:

  • Puppet 3

    • puppet3_ubuntu
    • puppet3_centos
  • Puppet 4

    • puppet4_ubuntu
    • puppet4_centos

If you are required to use a newer agent version, you can update the Puppet agent currently installed in the Docker image updating the variable PUPPET_AGENT_VERSION

ENV PUPPET_AGENT_VERSION="1.8.3"

Then, you must rebuild the base image as explained in the [Building Your Container](#Building Your Own Container Based on an Image) section.

⁠Usage

Although, you can run a Docker container using this image straight after pulling from Docker Hub running:

docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro jocag/vagrant-puppet:centos

You might prefer using the Vagrantfile included. It can be placed into your remote/local repository and can be run using Docker as its default provider.

This new Vagrant VM generated can be used to code and test Puppet modules and manifests on different OS running locally inside a container.

Also, it will build the necessary docker image if you did not pull it beforehand.

$vagrant up dummy_box

⁠License

This software is shipped under the MIT License. Feel free to copy, modify or add extra software for your own purposes.
Forks and Pull requests are welcome!

Tag summary

Content type

Image

Digest

Size

127.2 MB

Last updated

over 9 years ago

docker pull jocag/vagrant-puppet