Issue #653 has been updated by Bruno Harbulot.

Status changed from Closed to Re-opened

Besides `slapadd` in the initial example, this would be useful for commands 
like `mysql` or `psql` to run SQL commands (e.g. setting up tables) based on a 
module file or template, without having to copy those commands into a temporary 
file (and having to clean up this temporary file afterwards).

----------------------------------------
Feature #653: Add a stdin param to exec, that pipes a string into the command
https://projects.puppetlabs.com/issues/653#change-87478

* Author: Tobu -
* Status: Re-opened
* Priority: Normal
* Assignee: Nigel Kersten
* Category: exec
* Target version: 
* Affected Puppet version: 0.25.4
* Keywords: 
* Branch: 
----------------------------------------
Use case:
<pre>
$password = "whatever"
exec { "/usr/sbin/slapadd": stdin => template('module/config-data.ldif.erb') }
</pre>

It would also be a problem to use the shell here, because the password would 
become visible.



-- 
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