bsdci / puppet-control-repo

Public puppet control repo for testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Puppet Control Repository

This Code is based on Puppet Inc's Control-Repo.

We use it to test the "remote" feature in ioc's Puppet Provisioning Plugin

How to use

To use this repo yourself, create a jail with the following settings:

root@host # ioc create web01 \
  provision.method=puppet \
  provision.source=https://github.com/bsdci/puppet-control-repo
web01 successfully created from 12.0-RELEASE!

Then provision the jail with:

root@host # ioc provision web01

What it does

This should install nginx and serve a hello-world html, you can test it with:

root@host # curl http://<web01-ip>
<html>
  <head>
    <title>Hello, World</title>
  </head>
  <body>
    <h1>Hello, World</h1>
    <p>Hello, World</p>
  </body>
</html>

Custom Facts

You might be wondering if there's a standard method for setting facts. For this we can use the user.* config namespace. Along with a custom fact we can extract these names and values, as they are passed into the environment whenever a hook is run.

ioc set user.facts.role=webserver web01
ioc provision

We hope you find our custom facts script inspiring or useful!

About

Public puppet control repo for testing

License:Apache License 2.0


Languages

Language:Ruby 44.4%Language:Pascal 28.2%Language:Puppet 27.3%