Hello,
I am trying propellor on Debian Jessie (haskell is fantastic for this sort or things) to setup one of my computer.
On my network, the system administrator set proxies for http and https. These information are available via a http://proxy/proxy.pac URL.
So I would like to know what should be done to extract this information and set it for all users on the system ?
Cheers
Frederic
You could, for example, use Propellor.Propety.Cmd.cmdProperty to run a command that sets up the proxying. If there's not a single command that does it, you could cause propellor to fetch the url and deploy the info itself.
In my case I need to wget the proxy.pac file and parse it to find the right proxy.
what worried me is that these proxy.pac things are dynamical depending on the ip of the sender AND the receive. It work nicely with web browser, but not with the unix http_proxy and HTTPS_PROXY env.
nevertheless, I can create something to parse my local setup and extract the right http_proxy.
Is there something available in Propellor to set a global environment variable in /etc/environment (the right place for this ?)
cheers
Frederic
There's no Property that handles setting global environment currently, but it's a reasonable one to add.
I think that /etc/environment is read by
pam_env
logins, but maybe not other things, so dunno.I saw that there is an haskell binding for augeas.
Maybe this could be a nice uniform interface to deal with all the system configuration files. then no need to deal with the config file formats.