2011-07-01 03:16:16 +00:00
|
|
|
Reapply your Puppet configs automatically using Guard! Awesome!
|
|
|
|
|
|
|
|
``` ruby
|
2011-07-05 23:43:36 +00:00
|
|
|
guard 'puppet' do
|
2011-07-01 03:16:16 +00:00
|
|
|
watch(%r{^(manifests|modules)})
|
|
|
|
end
|
|
|
|
```
|
|
|
|
|
|
|
|
It's assumed your configs are all in the current folder, which is the
|
|
|
|
equivalent of `--confdir=$PWD` at the command line. Otherwise,
|
|
|
|
there's not much use of using Guard with Puppet. :)
|
|
|
|
|
2011-07-06 23:29:43 +00:00
|
|
|
Four options so far:
|
2011-07-01 03:16:16 +00:00
|
|
|
|
2011-07-06 23:29:43 +00:00
|
|
|
* `:run_on_start`: Apply Puppet configs when starting Guard (default: `false`)
|
2011-07-01 03:16:16 +00:00
|
|
|
* `:verbose`: Show more output from Puppet (default: `true`)
|
2011-07-05 23:43:36 +00:00
|
|
|
* `:debug`: Show even more output from Puppet (default: `false`)
|
2011-07-01 03:16:16 +00:00
|
|
|
* `:manifest`: The main manifest file to run (default: `manifests/site.pp`)
|
|
|
|
|
|
|
|
Bugs and fixes? You know the drill.
|
|
|
|
|