>
> You cannot, since the manifest is compiled into a catalog on the puppet
> master and then the catalog is sent to the agent, which can be on a
> different machine, and only then is the command defined by the exec run.
>
Ehrm, personly I would try:
exec {
"put text in a file":
command => "ls -la /etc>>/var/log/exec 2>&1";
or
command => "ls -la /etc 2>&1 |tee /var/log/exec";
}
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/4TowgNHPooYJ.
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-users?hl=en.