2022-11-15 16:29:46 -05:00
|
|
|
// Module included in the following assemblies:
|
|
|
|
|
//
|
|
|
|
|
// * microshift_networking/microshift-networking.adoc
|
|
|
|
|
|
|
|
|
|
:_content-type: PROCEDURE
|
2023-05-22 17:29:55 -04:00
|
|
|
[id="microshift-rpm-ostree-https_{context}"]
|
|
|
|
|
= Using the RPM-OStree HTTP(S) proxy
|
2022-12-19 16:53:44 +01:00
|
|
|
|
2023-05-22 17:29:55 -04:00
|
|
|
To use the HTTP(S) proxy in RPM-OStree, set the `http_proxy environment` variable for the `rpm-ostreed` service.
|
2022-11-15 16:29:46 -05:00
|
|
|
|
|
|
|
|
.Procedure
|
2022-12-19 16:53:44 +01:00
|
|
|
|
|
|
|
|
. Add this setting to the `/etc/systemd/system/rpm-ostreed.service.d/00-proxy.conf` file by running the following command:
|
2022-11-15 16:29:46 -05:00
|
|
|
+
|
2023-08-28 15:02:13 -04:00
|
|
|
[source,terminal]
|
2022-11-15 16:29:46 -05:00
|
|
|
----
|
|
|
|
|
Environment="http_proxy=http://$PROXY_USER:$PROXY_PASSWORD@$PROXY_SERVER:$PROXY_PORT/"
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
. Next, reload the configuration settings and restart the service to apply your changes.
|
|
|
|
|
|
2022-12-19 16:53:44 +01:00
|
|
|
.. Reload the configuration settings by running the following command:
|
2022-11-15 16:29:46 -05:00
|
|
|
+
|
2023-08-28 15:02:13 -04:00
|
|
|
[source,terminal]
|
2022-11-15 16:29:46 -05:00
|
|
|
----
|
|
|
|
|
$ sudo systemctl daemon-reload
|
|
|
|
|
----
|
2022-12-19 16:53:44 +01:00
|
|
|
.. Restart the rpm-ostree service by running the following command:
|
2022-11-15 16:29:46 -05:00
|
|
|
+
|
2023-08-28 15:02:13 -04:00
|
|
|
[source,terminal]
|
2022-11-15 16:29:46 -05:00
|
|
|
----
|
|
|
|
|
$ sudo systemctl restart rpm-ostreed.service
|
|
|
|
|
----
|
2023-05-22 17:29:55 -04:00
|
|
|
//Q: Instructions for how to test that the proxy works by booting the image, verifying that MicroShift starts, and that the application is accessible?
|