Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nibalizer/puppetsubsync
Ruby script to create puppet environments that is submodule aware
https://github.com/nibalizer/puppetsubsync
Last synced: 2 months ago
JSON representation
Ruby script to create puppet environments that is submodule aware
- Host: GitHub
- URL: https://github.com/nibalizer/puppetsubsync
- Owner: nibalizer
- Created: 2012-03-07T03:43:29.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-03-12T00:00:47.000Z (almost 13 years ago)
- Last Synced: 2024-10-03T09:56:18.680Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 94.7 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PuppetSubSync
## Description
Two scripts to create puppet environments for testing with submodules. The script
will create a folder in $DEPLOYDIR and clone the puppet super project with --recursive
. Then it will cd into the submodule directory and checkout the branch that was pushed.The motivation for this is to return to the branch, commit, test, commit, test, merge
workflow with submodules. It will only work if whatever class you are working on is
already included in the node definition in the super project. It will also only work
in the context of a git-hook.## Usage
Put the git-hook in post-receive in the git repository. Put the ruby script in
/usr/share/bin/puppetsubsync or a different directory and update the git hook.
Push a branch with the branch name beginning with s_ (or remove this functionality
in the git hook if you prefer). The output of the git hook will show you a to test
string. You can copy and paste that to test with puppet. Something like:puppet agent --test --noop --environment=puppet_module_ubuntu_s_dev