Issue #21286 has been updated by Mariusz Gronczewski.

Assignee changed from Mariusz Gronczewski to eric sorenson

The most often use case is "update config without restarting 20 varnish servers 
and dropping their cache"
Basically evertytime there is a minor change like "fix minor formatting error" 
or "add comments that dont suck" to config files

This problem came out when we started migrating from SVN to Git and we had most 
files/templates tagged by SVN's $File$ (and few other) so we had to change 
headers on all files, but that problem comes pretty often when there is a need 
to update config of some service by minor option, or just fix formatting.

Other reason is that it is very unexpected behaviour, for example when 
refactoring some old ( like created when 0.25 was newest puppet ) templates I 
just set service to noop and started editing it, expecting that my changes 
won't cause that service to restart, so I can manually check it on server if it 
works correctly

At first I tried just running puppet with file tag so only files gets deployed, 
but it have same behaviour (all that is dependent on tagged resource also gets 
done even if they dont have that tag).




----------------------------------------
Bug #21286: noop => true is ignored when resource is triggered by other resource
https://projects.puppetlabs.com/issues/21286#change-95075

* Author: Mariusz Gronczewski
* Status: Needs More Information
* Priority: High
* Assignee: eric sorenson
* Category: transactions
* Target version: 
* Affected Puppet version: 3.1.1
* Keywords: refresh noop
* Branch: 
----------------------------------------
when running :
    file {'/tmp/asd':
      content => generate('/bin/date'),
    notify  => Exec['ttt'],
    }


    exec { 'ttt':
      command   =>'/bin/date',
      logoutput => true,
      noop      => true,
    }

exec is still ran even tho it's set to noop, any notify to resource makes it 
ignore noop parameter:

    Notice: /Stage[main]//File[/tmp/asd]/ensure: defined content as 
'{md5}2f61ea5f548d9cfcda74e24a547dfa86'
    Notice: /Stage[main]//Exec[ttt]/returns: current_value notrun, should be 0 
(noop)
    Notice: /Stage[main]//Exec[ttt]/returns: Tue Jun 18 14:12:15 CEST 2013
    Notice: /Stage[main]//Exec[ttt]: Triggered 'refresh' from 1 events
    Notice: Finished catalog run in 0.99 seconds




-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to