Issue #4254 has been updated by Daniel Pittman.

Assignee deleted (Daniel Pittman)

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

* Author: Alan Barrett
* Status: Rejected
* Priority: Normal
* Assignee: 
* Category: exec
* Target version: 
* 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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to