Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

gds-operations/puppet-module-skeleton

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated

This module is no longer used, or supported, and while there are a number of concepts and examples worth noting in the skeleton directory we do not support its use.

Introduction

Puppet modules often take on the same file system structure. The built-in puppet-module tool makes starting modules easy, but the built in skeleton module is very simple. This skeleton is very opinionated. It's going to assume you're going to start out with tests (both unit and acceptance), that you care about the puppet style guide, test using Travis, keep track of releases and structure your modules according to strong conventions.

Installation

As a feature, puppet module tool will use ~/.puppet/var/puppet-module/skeleton as template for its generate command. The files provided here are meant to be better templates for use with the puppet module tool.

As we don't want to have our .git files and this README in our skeleton, we export it like this:

git clone https://github.com/gds-operations/puppet-module-skeleton
cd puppet-module-skeleton
find skeleton -type f | git checkout-index --stdin --force --prefix="$HOME/.puppet/var/puppet-module/" --

Usage

Then just generate your new module structure like so:

puppet module generate user-module

Once you have your module then install the development dependencies:

cd user-module
bundle install

Now you should have a bunch of rake commands to help with your module development, which you can get a list of by running:

bundle exec rake -T

During development of your puppet module you might want to run your unit tests a couple of times. You can use the following command to automate running the unit tests on every change made in the manifests folder.

bundle exec guard

Thanks

The trick used in the installation above, and a few other bits came from another excellent module skeleton from spiette

About

[DEPRECATED] An opinionated skeleton for writing your own puppet modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 75.4%
  • Ruby 23.4%
  • Shell 1.2%