Skip to content

Instantly share code, notes, and snippets.

@lak
Created March 7, 2011 23:00
Show Gist options
  • Select an option

  • Save lak/859453 to your computer and use it in GitHub Desktop.

Select an option

Save lak/859453 to your computer and use it in GitHub Desktop.
Providing chef-solo-like behavior in Puppet
#!/usr/bin/env
# Because Puppet has supported "solo" mode since 2005
exec puppet $@
@simpsonjulian
Copy link
Copy Markdown

I always add --modulepath, but that's pretty much what I use.

@jnewland
Copy link
Copy Markdown

jnewland commented Mar 8, 2011

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.

@simpsonjulian
Copy link
Copy Markdown

@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.

@jnewland
Copy link
Copy Markdown

jnewland commented Mar 8, 2011

@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

@sheerun
Copy link
Copy Markdown

sheerun commented Mar 25, 2013

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