Issue #5400 has been updated by Michael Knox.

This seems to be very similar to feature request #2728.

I've create a patch for #2728 which may also address this issue.

<https://github.com/mikeknox/puppet/commit/33301966d4c803640cb9aaed13b81bd7fd285484>

Sample output:
<pre>
info: Augeas[my.cnf/mysqld](provider=augeas): --- /etc/my.cnf   2011-03-18 
18:09:46.343264543 +1100
+++ /etc/my.cnf.augnew  2011-03-18 21:29:39.706254147 +1100
@@ -133,7 +133,7 @@
 character-set-server=utf8
 log-warnings=1
 skip-external-locking=1
-log-error=/var/log/mysql.log
+log-error=/var/log/mysql.err
 set=log-slow-queries
 key_buffer=16M
 table_cache=64

notice: /Stage[main]/Mysql::Server/Augeas[my.cnf/mysqld]/returns: is 
need_to_run, should be 0 (noop)
</pre>

----------------------------------------
Feature #5400: Augeas resources should print changes to the tree during a 
--noop -t run
https://projects.puppetlabs.com/issues/5400

Author: Nick Moffitt
Status: Needs Decision
Priority: Normal
Assignee: Bryan Kearney
Category: augeas
Target version: 
Affected Puppet version: 
Keywords: augeas dry-run noop
Branch: 


I often use `puppetd --environment=test --noop -t` to sanity check a change, 
and the output is generally helpful.  I appreciate that Exec resources are too 
open-ended and unpredictable, but it seems that Augeas resources present an 
opportunity for dry-run feedback.

It should be possible to get the tree for a resource, apply the changes list, 
and then diff the new tree against the old one.  Then you can bail out without 
saving, and report the results back to the summary.

This won't tell you exactly what changes will happen on disk, to be sure, but 
you'll learn which entries are being replaced with what in the tree.  That's 
incredibly valuable.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to