Peter Valdemar Mørch
2012-Feb-14 18:32 UTC
[Puppet Users] Undocumented feature: puppet --noop
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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Daniel Pittman
2012-Feb-15 18:46 UTC
Re: [Puppet Users] Undocumented feature: puppet --noop
On Tue, Feb 14, 2012 at 10:32, Peter Valdemar Mørch <pmorch@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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.