Re: [Puppet Users] Multiple external commands with puppet

2011-02-03 Thread Daniel Pittman
On Thu, Feb 3, 2011 at 08:23, linuxbsdfreak wrote: > I want to execute multiple sed commands using the exec commands within > puppet. I can only setup one command parameter. For now i have to give > a long list of commands separated with ";"  in order to use the single > command parameter. I know

Re: [Puppet Users] Multiple external commands with puppet

2011-02-03 Thread Brian Gallew
While it's perfectly appropriate to have multiple exec{} or a single exec{} with a multi-line command in your puppet manifest, once you reach a certain level of complexity you almost invariably want to switch to a file{"/usr/local/scripts": ...} exec{"/usr/local/scripts/doit": ...} model. The

Re: [Puppet Users] Multiple external commands with puppet

2011-02-03 Thread Mark Stanislav
Are you able to group these sed statements into a script and pass arguments to the script to do whatever set of executions are needed for that specific dataset? I may not understand your 'need' exactly, either. Can you explain more of what you are trying to accomplish and less about what you've