Re: [Puppet Users] Refresh Exec resource from a File resource without source =>

2013-01-14 Thread Vaidas Jablonskis
That's incredible. Thanks a lot Ken. It works! On Monday, 14 January 2013 18:25:18 UTC, Ken Barber wrote: > > Sorry, forgot the doc link: > > http://docs.puppetlabs.com/references/latest/metaparameter.html#audit > > On Mon, Jan 14, 2013 at 6:24 PM, Ken Barber > > > wrote: > > You probably wan

Re: [Puppet Users] Refresh Exec resource from a File resource without source =>

2013-01-14 Thread Ken Barber
Sorry, forgot the doc link: http://docs.puppetlabs.com/references/latest/metaparameter.html#audit On Mon, Jan 14, 2013 at 6:24 PM, Ken Barber wrote: > You probably want an audit field in your file resource, try this > pattern on for size: > > # cat /tmp/zzz.pp > file {"/tmp/foo": > ensure => f

Re: [Puppet Users] Refresh Exec resource from a File resource without source =>

2013-01-14 Thread Ken Barber
You probably want an audit field in your file resource, try this pattern on for size: # cat /tmp/zzz.pp file {"/tmp/foo": ensure => file, notify => Exec["foo"], audit => 'content', } exec {"foo": command => "/usr/bin/true", refreshonly => true, } # echo "foobar" > /tmp/foo # ./bin/puppet

[Puppet Users] Refresh Exec resource from a File resource without source =>

2013-01-14 Thread Vaidas Jablonskis
Hi Guys, My manifest code looks pretty much like below: exec { 'sync-business-logic': path => "/usr/bin:/bin:${bl_path}", cwd => $bl_path, command => 'sync-bl.pl', refreshonly => true, subscribe => File[$sync_bl_files], } file { $syn