Created
March 7, 2011 23:00
-
-
Save lak/859453 to your computer and use it in GitHub Desktop.
Providing chef-solo-like behavior in Puppet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env | |
| # Because Puppet has supported "solo" mode since 2005 | |
| exec puppet $@ |
There's also https://github.com/railsmachine/rump, which wraps this behavior with sane defaults and provides a generator for the proper manifest directory structure, etc.
@jnewland: I tried out rump this weekend: very useful. Been meaning to dig further into the code and see what I need to do to pass --debug and --no-op down to puppet.
@simpsonjulian those are both mentioned in the readme. just pass 'em :)
You can append options you'd normally pass to the puppet command at the end of rump go:
$ sudo rump go --verbose --debug --noop
I've created auto-installable binary that doesn't require --modulepath: https://github.com/sheerun/puppet-solo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I always add --modulepath, but that's pretty much what I use.