I'm trying to use the environment parameter on Exec but it is not working.
Any idea what's wrong ?
exec { 'test':
path =>
'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
environment => ["HOME=test", "HOME2=test2"],
command => "echo $HOME > /tmp/key",
user => 'root',
group => 'root',
}
I'm using Puppet 3.0
Thanks,
Felipe
--
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/-/2F-pxT-TA2wJ.
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.