Issue #4254 has been updated by Daniel Pittman.

Status changed from Accepted to Rejected
Assignee set to Daniel Pittman


----------------------------------------
Feature #4254: "shell" parameter for exec resource
https://projects.puppetlabs.com/issues/4254

Author: Alan Barrett
Status: Rejected
Priority: Normal
Assignee: Daniel Pittman
Category: exec
Target version: Statler
Affected Puppet version: 0.25.5
Keywords: 
Branch: 


It would be nice to have a "shell" parameter for exec resources.  For example, 
on Solaris, I would like all exec commands to be interpreted by 
/usr/xpg4/bin/sh, not /bin/sh.

<pre>
# set default shell
Exec { shell => "/usr/xpg4/bin/sh" }
# run /usr/xpg4/bin/sh -c "some shell command"
exec { "title":
    command => "some shell command",
}
</pre>

If shell is a string, then run [$shell -c $command].

If shell is an array, then let it override the usual "-c" too:

<pre>
# run /usr/bin/perl -e "some perl command"
exec { "title":
    shell => ["/usr/bin/perl", "-e"]
    command => "some perl command",
}
</pre>



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to