Skip to content

A basic puppet5 control repo with a simple roles/profiles setup and a Vagrant based local testing system.

Notifications You must be signed in to change notification settings

plusForta/puppet5-control-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plusForta puppet control repo.

What this is

This repository controls the configuration of all the servers in the plusForta fleet.

It is set up in a roles and profiles configuration:

  • Nodes are assigned roles in their hiera configs (e.g. "frontend cms")
  • roles contain profiles ("e.g. kirby")
  • profiles include other modules as necessary ("e.g. apache")

We use r10k to manage the actual configuration on the puppetserver. This tool uses this repository to configure the final codebase.

r10k does the following:

  • Checks out this repository
  • Copies each branch of the repo into a separate directory (e.g /etc/puppetlabs/code/environments/{$branch})
  • For each environment, it runs through the Puppetfile file in the root and checks out the modules included in it.

In this method the full puppet repository is created.

How to develop against it

  • Check in your changes locally.
  • Follow the instructions in /test to setup a puppet server and testing nodes
  • run r10k deploy environment -p on the local puppet server
  • run puppet agent -t --environment="$branch" on your testing nodes.

How to deploy it

  • push your changes to the cloud.
  • run r10k deploy environment -p on the puppetserver.
  • cross your fingers!

About

A basic puppet5 control repo with a simple roles/profiles setup and a Vagrant based local testing system.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published