Skip to content

Commit b693a2d

Browse files
authored
Merge pull request #1699 from slagle/edpm_playbook_environment
Use /etc/environment for proxy settings in docs
2 parents bf8aed5 + 5472fb3 commit b693a2d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/assemblies/common_configurations.adoc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,14 @@ documentation for the version of Satellite that is in use.
5555
=== Using `edpm_bootstrap_command` for configuring system proxy settings
5656

5757
`edpm_bootstrap_command` can be used to configure system proxy settings by
58-
creating a file under `/etc/profile.d` that defines the proxy environment
59-
variables.
58+
adding the proxy environment variables to `/etc/environment`.
6059

6160
----
6261
edpm_bootstrap_command: |
63-
cat >/etc/profile.d/proxy.sh <<EOF
64-
export http_proxy="http://USERNAME:PASSWORD@proxy-server.example.com:3128/"
65-
export https_proxy="http://USERNAME:PASSWORD@proxy-server.example.com:3128/"
66-
export no_proxy="localhost,127.0.0.1,::1" # Add any hosts to bypass the proxy
62+
cat >>/etc/environment <<EOF
63+
http_proxy="http://USERNAME:PASSWORD@proxy-server.example.com:3128/"
64+
https_proxy="http://USERNAME:PASSWORD@proxy-server.example.com:3128/"
65+
no_proxy="localhost,127.0.0.1,::1" # Add any hosts to bypass the proxy
6766
EOF
6867
----
6968

0 commit comments

Comments
 (0)