Re: [Puppet Users] exec resource not refreshed when subscribed resource changes

2013-03-21 Thread Keith Burdis
The subscribe isn't needed if notify is used which is in point 1. There are multiple ways to solve the problem - I prefer pushing these events using notify rather than pulling via subscribe :-) On 21 March 2013 10:37, Felix Frank wrote: > Hi, > > On 03/14/2013 09:25 AM, Keith Burdis wrote: > >

Re: [Puppet Users] exec resource not refreshed when subscribed resource changes

2013-03-21 Thread Felix Frank
Hi, On 03/14/2013 09:25 AM, Keith Burdis wrote: > 2) Adding refreshonly => true to the exec. > > 3) Remove the creates and subscribe from the exec. > The subscribe is actually fine, but yes - the 'creates' needs to go in order to allow repeated execution. Note that this can be considered uncl

Re: [Puppet Users] exec resource not refreshed when subscribed resource changes

2013-03-14 Thread Keith Burdis
Perhaps try: 1) Adding a notify => Exec['unpack_archive'] to the file resource. 2) Adding refreshonly => true to the exec. 3) Remove the creates and subscribe from the exec. That way the exec will only be called when the file changes. - Keith On 14 Mar 2013 07:56, wrote: > Hello, > > I've c

[Puppet Users] exec resource not refreshed when subscribed resource changes

2013-03-14 Thread dirk . heinrichs
Hello, I've created a little class which should unpack a 7z archive on Windows. The class has a parameter for passing in the archive version, so that I can trigger an update when a new version of the archive is available. A simplyfied version looks like this (requires 7z): class my_archive ($v