https://github.com/petems/puppet-windows-module-skelton
A Puppet Skeleton for Windows modules, with working Beaker setup
https://github.com/petems/puppet-windows-module-skelton
Last synced: 4 months ago
JSON representation
A Puppet Skeleton for Windows modules, with working Beaker setup
- Host: GitHub
- URL: https://github.com/petems/puppet-windows-module-skelton
- Owner: petems
- License: apache-2.0
- Created: 2015-03-08T16:41:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-08T17:08:16.000Z (over 10 years ago)
- Last Synced: 2025-01-12T16:37:52.451Z (6 months ago)
- Language: HTML
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Basic Module Skeleton for a Windows-focused Module
[](https://travis-ci.org/petems/puppet-windows-module-skelton)## 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/petems/puppet-windows-module-skelton
cd puppet-windows-module-skelton
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 installNow you should have a bunch of rake commands to help with your module
development:bundle exec rake -T
rake acceptance # Run acceptance tests
rake build # Build puppet module package
rake clean # Clean a built module package
rake coverage # Generate code coverage information
rake help # Display the list of available rake tasks
rake lint # Check puppet manifests with puppet-lint / Run puppet-lint
rake spec # Run spec tests in a clean fixtures directory
rake spec_clean # Clean up the fixtures directory
rake spec_prep # Create the fixtures directory
rake spec_standalone # Run spec tests on an existing fixtures directory
rake syntax # Syntax check Puppet manifests and templates
rake syntax:manifests # Syntax check Puppet manifests
rake syntax:templates # Syntax check Puppet templatesOf particular interst should be:
* `rake spec` - run unit tests
* `rake lint` - checks against the puppet style guide
* `rake syntax` - to check your have valid puppet and erb syntax## Thanks
Mostly adapted from Gareth's excellent [puppet-module-skeleton](https://github.com/garethr/puppet-module-skeleton).