Re: [Puppet Users] Exec resource question

2011-09-29 Thread Jo Rhett
On Sep 27, 8:44 pm, Jo Rhett jrh...@netconsonance.com wrote: You can't do that, as the IF code is resolved by the puppet master before delivering the compiled catalog to the client. It looks like you want to just make a shell script, push it to the client and run it there. On Sep 28, 2011,

[Puppet Users] Exec resource question

2011-09-27 Thread Damien Bridges
Hi All, Does anyone know how to add bash code to the exec resource? I was thinking I could add it to the command section. I thought I could run the code after I put the link command and options in. However, it didn't work. My bash code has 'if' statements with $ signs in it. I want to move

Re: [Puppet Users] Exec resource question

2011-09-27 Thread Christopher Wood
On Tue, Sep 27, 2011 at 10:52:24AM -0700, Damien Bridges wrote: Hi All, Does anyone know how to add bash code to the exec resource? I was thinking I could add it to the command section. I thought I could run the code after I put the link command and options in. However, it didn't work.

Re: [Puppet Users] Exec resource question

2011-09-27 Thread Jo Rhett
You can't do that, as the IF code is resolved by the puppet master before delivering the compiled catalog to the client. It looks like you want to just make a shell script, push it to the client and run it there. File { myshellscript: …, notify-Exec['myshellscript'] } Exec {