Undocumented feature: puppet --noop

138 views
Skip to first unread message

Peter Valdemar Mørch

unread,
Feb 14, 2012, 1:32:16 PM2/14/12
to puppet...@googlegroups.com
http://docs.puppetlabs.com/man/apply.html does not mention a --noop
parameter, but it works:

capmon@peter:~> puppet apply --noop -e 'file { "/tmp/foo": ensure => present }'
notice: /Stage[main]//File[/tmp/foo]/ensure: is absent, should be present (noop)

Can I rely on this in future versions? If so, attached is a patch.

This is very handy for us, so I hope we can rely on it, but if not, why not?

Peter

0001-Add-documentation-for-puppet-apply-noop.patch

Daniel Pittman

unread,
Feb 15, 2012, 1:46:28 PM2/15/12
to puppet...@googlegroups.com
On Tue, Feb 14, 2012 at 10:32, Peter Valdemar Mørch <pmo...@gmail.com> wrote:

G'day Peter.

> http://docs.puppetlabs.com/man/apply.html does not mention a --noop
> parameter, but it works:
>
> capmon@peter:~> puppet apply --noop -e 'file { "/tmp/foo": ensure => present }'
> notice: /Stage[main]//File[/tmp/foo]/ensure: is absent, should be present (noop)
>
> Can I rely on this in future versions? If so, attached is a patch.

You can rely on it into the future, yes. Thanks for the patch, that
should have been documented.

Meanwhile, sorry that you didn't get a more immediate response. Our
general guidelines for contributing code are here:
https://github.com/puppetlabs/puppet/blob/master/CONTRIBUTING.md

I can't tell if you have already signed a CLA, but we can't accept the
code without that; the way to do that is noted in the contributing
link, but is done by creating a RedMine account at
https://projects.puppetlabs.com/ and then hitting the URL
https://projects.puppetlabs.com/contributor_licenses/sign to read and
sign.

It would be awesome if you could submit this as a pull request, but
without that it would be sufficient to get the CLA done.

Thanks.
--
Daniel Pittman
⎋ Puppet Labs Developer – http://puppetlabs.com
♲ Made with 100 percent post-consumer electrons

Reply all
Reply to author
Forward
0 new messages