Re: [Puppet Users] Use onlyif in EXEC

2012-03-14 Thread Peter Bukowinski
On Mar 14, 2012, at 5:20 PM, Peter Bukowinski wrote: > On Mar 14, 2012, at 5:00 PM, Eugene Vilensky wrote: > On Monday, March 12, 2012 5:52:53 PM UTC-5, ed209 wrote: > > Checkout the 'creates' property, it seems like a cleaner way of doing > this: > > http://docs.puppet

Re: [Puppet Users] Use onlyif in EXEC

2012-03-14 Thread Peter Bukowinski
On Mar 14, 2012, at 5:00 PM, Eugene Vilensky wrote: >>> On Monday, March 12, 2012 5:52:53 PM UTC-5, ed209 wrote: Checkout the 'creates' property, it seems like a cleaner way of doing this: http://docs.puppetlabs.com/references/2.6.8/type.html#exec >>> >>> >>> Pardon th

Re: [Puppet Users] Use onlyif in EXEC

2012-03-14 Thread Eugene Vilensky
>> On Monday, March 12, 2012 5:52:53 PM UTC-5, ed209 wrote: >>> >>> Checkout the 'creates' property, it seems like a cleaner way of doing >>> this: >>> >>> http://docs.puppetlabs.com/references/2.6.8/type.html#exec >> >> >> Pardon the newbie question, but does work on or de-reference symlinks? >>

Re: [Puppet Users] Use onlyif in EXEC

2012-03-13 Thread Mohamed Lrhazi
You might want to rephrase your question, as it is not obvious, at least not to me. Mohamed. On Tue, Mar 13, 2012 at 4:26 PM, Trammael wrote: > > > On Monday, March 12, 2012 5:52:53 PM UTC-5, ed209 wrote: >> >> Checkout the 'creates' property, it seems like a cleaner way of doing >> this: >> >>

Re: [Puppet Users] Use onlyif in EXEC

2012-03-13 Thread Trammael
On Monday, March 12, 2012 5:52:53 PM UTC-5, ed209 wrote: > > Checkout the 'creates' property, it seems like a cleaner way of doing this: > > http://docs.puppetlabs.com/references/2.6.8/type.html#exec > Pardon the newbie question, but does work on or de-reference symlinks? Cheers. -- You recei

Re: [Puppet Users] Use onlyif in EXEC

2012-03-13 Thread Douglas Brancaglion
Tks guys!! It's ok! On 03/12/2012 07:52 PM, Doug Chapman wrote: Checkout the 'creates' property, it seems like a cleaner way of doing this: http://docs.puppetlabs.com/references/2.6.8/type.html#exec On Mon, Mar 12, 2012 at 12:23 PM, Douglas Brancaglion mailto:douglas.rea...@gmail.com>> wr

Re: [Puppet Users] Use onlyif in EXEC

2012-03-12 Thread Doug Chapman
Checkout the 'creates' property, it seems like a cleaner way of doing this: http://docs.puppetlabs.com/references/2.6.8/type.html#exec On Mon, Mar 12, 2012 at 12:23 PM, Douglas Brancaglion < douglas.rea...@gmail.com> wrote: > Hi guys! > > I need configure one command exec with onlyif parameter.

Re: [Puppet Users] Use onlyif in EXEC

2012-03-12 Thread Tim Sharpe
Run command if file exists: exec { 'foo' command => '', onlyif => '/usr/bin/test -f /file/that/must/exist/for/exec/to/run', } Run command unless file exists exec { command => '', creates => '/path/to/file', } On Tuesday, 13 March 2012 at 6:23 AM, Douglas Brancaglion wrote: > Hi guys! >

[Puppet Users] Use onlyif in EXEC

2012-03-12 Thread Douglas Brancaglion
Hi guys! I need configure one command exec with onlyif parameter. I want test file size exist or no. Ho i do this? Tks in advanced. Douglas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@go