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 script can be trivially customized for the local system by puppet giving 
you great flexibility, while allowing more complex code paths or alternate 
languages to be easily used.

On Feb 3, 2011, at 8:29 AM, Mark Stanislav wrote:

> 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 chosen to 
> accomplish it with. May help stir-up better answers.
> 
> -Mark
> 
> On Feb 3, 2011, at 11:23 AM, linuxbsdfreak wrote:
> 
>> Hi,
>> 
>> 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 there are other efficient ways to solve this
>> problem. But my requirement is such i need to execute multiple
>> commands using the exec tool within  puppet. Any one have who can give
>> me a hint how this problem could be solved.
>> 
>> NOTE: I need only the command parameter of exec. I dont need the other
>> parameters
>> 
>> Regards,
>> Kevin
>> 
>> -- 
>> 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@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> puppet-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/puppet-users?hl=en.
>> 
> 
> -- 
> 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@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
> 

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to