On Thursday, August 22, 2013 at 5:31 AM, Gregoire Seux wrote:
Hello,I'd like to have pre-update notifications which would be the same as"notifies" but triggered before resource convergence.For instance, some packages automatically restart a service duringupgrade and I'd like to downtime the host in supervision _before_actually starting to upgrade those packages.Classic notifications would be :package "cassandra" donotifies :run, "execute[downtime host]"endbut notification is triggered _after_ the upgrade so it is not usefulanymore.I wondered how to do this and came up with a partial solution switchingto why_run temporarily to find wether a given resource (package) willbe updated during convergence.An example is https://gist.github.com/kamaradclimber/6306398which would execute the resource to downtime only if the package will beupgrade later.Does anyone has already encountered such need? and fixed it?--Grégoire
Archive powered by MHonArc 2.6.16.