Issue #6133 has been updated by Charlie Sharpsteen. Keywords set to customer
---------------------------------------- Bug #6133: File resource audit property fails when backup => false https://projects.puppetlabs.com/issues/6133#change-88709 * Author: Zach Leslie * Status: Closed * Priority: Normal * Assignee: * Category: * Target version: * Affected Puppet version: 2.6.4 * Keywords: customer * Branch: ---------------------------------------- The following node definition: <pre> node fc14 { file { "/tmp/foo": content => inline_template("<%= Time.now %>"), backup => false, } file { "/tmp/bar": audit => content, backup => false, subscribe => Exec['copy'] } exec { "copy": command => '/bin/cp /tmp/foo /tmp/bar', require => File["/tmp/foo"] } exec { "test": subscribe => File["/tmp/bar"], refreshonly => true, command => '/bin/echo \'test!\'' } } </pre> Produces the following output in 2.6.4 when running puppet in client/server operation: <pre> info: Applying configuration version '1296763281' --- /tmp/foo 2011-02-03 11:15:52.456367999 -0800 +++ /tmp/puppet-file20110203-2666-1mxkli0-0 2011-02-03 12:01:21.498234882 -0800 @@ -1 +1 @@ -Thu Feb 03 11:15:52 -0800 2011 \ No newline at end of file +Thu Feb 03 15:01:21 -0500 2011 \ No newline at end of file notice: /Stage[main]//Node[fc14]/File[/tmp/foo]/content: content changed '{md5}dbe31c26121a9a8ee44eb2a8cf1a31f6' to '{md5}774029096cc11e0fd3ba30669dc35d36' notice: /Stage[main]//Node[fc14]/Exec[copy]/returns: executed successfully err: /Stage[main]//Node[fc14]/File[/tmp/bar]: Could not evaluate: Could not retrieve content for {md5}dbe31c26121a9a8ee44eb2a8cf1a31f6 from filebucket: Could not get filebucket from file at /home/zach/src/puppetlabs-modules/site.pp:14 notice: /Stage[main]//Node[fc14]/Exec[test]: Dependency File[/tmp/bar] has failures: true warning: /Stage[main]//Node[fc14]/Exec[test]: Skipping because of failed dependencies notice: Finished catalog run in 0.15 seconds </pre> With backup set to false, the file resource should be able to audit the content of the file without requiring file bucket. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
