Puppet: System Administration Automated

Support

Ticket #653 (new enhancement)

Opened 2 years ago

Last modified 9 months ago

Add a stdin param to exec, that pipes a string into the command

Reported by: Tobu Assigned to: luke
Priority: normal Milestone: unplanned
Component: exec Version:
Severity: normal Keywords:
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Unknown

Description

Use case:

$password = "whatever"
exec { "/usr/sbin/slapadd": stdin => template('module/config-data.ldif.erb') }

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

Change History

06/01/07 23:24:58 changed by mpalmer

I can definitely see the benefit in having this parameter.

07/04/07 21:13:09 changed by luke

  • stage changed from Unreviewed to Accepted.
  • milestone set to unplanned.

04/24/08 07:48:31 changed by luke

  • component changed from types to exec.