Hi I'm trying to setting http_proxy environment variable by adding it
to the /etc/environment file.
I was wondering how I can force puppet to reload this file whenever
the file changes.
I have tried a few things and none of them have worked,
1.)
exec { "source_environment":
command => "source /etc/environment",
subscribe => File["/etc/environment"],
refreshonly => true
}
2.)
exec { "source /etc/environment":
subscribe => File["/etc/environment"],
refreshonly => true
}
3.)
exec { "export http_proxy="http://localhost:3128"":
subscribe => File["/etc/environment"],
refreshonly => true
}
Is there a better way to do this? I just need to ensure that the
environment var http_proxy is globally set.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
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.