puppet

File Read

The read file content is corrupted by the `diff` output format. The actual `diff` command is executed.

puppet filebucket -l diff /dev/null /path/to/input-file

File Write

puppet apply -e 'file { "/path/to/output-file": content => "DATA" }'

Shell

puppet apply -e "exec { '/bin/sh <$(tty) >$(tty) 2>$(tty)': }"