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