From 80c221d8540453419d2fc032fdf77ceaa0349a95 Mon Sep 17 00:00:00 2001 From: James Slagle Date: Tue, 21 Oct 2025 07:50:51 -0400 Subject: [PATCH] Document edpm_playbook_environment for proxy configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add documentation for configuring environment variables across all data plane playbooks using the edpm_playbook_environment variable. This change adds a new optional step in the data plane node creation procedure that shows how to: - Create a secret containing the edpm_playbook_environment variable with proxy settings - Reference the secret using ansibleVarsFrom with secretRef in the OpenStackDataPlaneNodeSet CR The documentation follows the same pattern as the existing redhat-registry secret example and provides clear instructions for operators who need to configure proxy settings or other environment variables for their data plane deployments. Docs are also added that show using edpm_bootstrap_command to set proxy related environment variables in /etc/profile.d/proxy.sh. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Jira: OSPRH-15529 Depends-On: https://github.com/openstack-k8s-operators/edpm-ansible/pull/1049 Signed-off-by: James Slagle --- docs/assemblies/common_configurations.adoc | 21 +++++++++++++++++++ ...oc_creating-a-set-of-data-plane-nodes.adoc | 14 +++++++++++++ 2 files changed, 35 insertions(+) diff --git a/docs/assemblies/common_configurations.adoc b/docs/assemblies/common_configurations.adoc index 88edf19ed..2c0cda18c 100644 --- a/docs/assemblies/common_configurations.adoc +++ b/docs/assemblies/common_configurations.adoc @@ -52,6 +52,27 @@ https://access.redhat.com/documentation/en-us/red_hat_satellite/6.13/html-single If not using Satellite version 6.13, then refer to the specific version of the documentation for the version of Satellite that is in use. +=== Using `edpm_bootstrap_command` for configuring system proxy settings + +`edpm_bootstrap_command` can be used to configure system proxy settings by +creating a file under `/etc/profile.d` that defines the proxy environment +variables. + +---- +edpm_bootstrap_command: | + cat >/etc/profile.d/proxy.sh <` with the applicable user name. * Replace `` with the applicable password. +. Optional: Configure environment variables for all playbooks, such as proxy settings: ++ +The `edpm_playbook_environment` variable sets environment variables that are applied to all tasks within all playbooks. This is useful for configuring proxy settings or other environment variables needed across the data plane deployment. ++ +---- +$ oc create secret generic edpm-playbook-environment \ +--from-literal edpm_playbook_environment='{"HTTP_PROXY": "http://proxy.example.com:8080", "HTTPS_PROXY": "http://proxy.example.com:8080", "NO_PROXY": "localhost,127.0.0.1", "http_proxy": "http://proxy.example.com:8080", "https_proxy": "http://proxy.example.com:8080", "no_proxy": "localhost,127.0.0.1"}' +---- ++ +* Replace the proxy values with your actual proxy server addresses. + + ---- apiVersion: dataplane.openstack.org/v1beta1 @@ -188,11 +199,14 @@ spec: name: subscription-manager - secretRef: name: redhat-registry + - secretRef: + name: edpm-playbook-environment ---- + For a complete list of the Red Hat Customer Portal registration commands, see https://access.redhat.com/solutions/253273. For information about how to log into `registry.redhat.io`, see https://access.redhat.com/RegistryAuthentication#creating-registry-service-accounts-6. endif::[] + . If your nodes are bare metal, you must configure the bare metal template, see xref:con_provisioning-bare-metal-data-plane-nodes_{context}[Provisioning bare metal data plane nodes]. . Optional: The sample `OpenStackDataPlaneNodeSet` CR you copied includes default node configurations under the `nodes` section. You can add additional nodes, and edit the configured values as required. For example, to add node-specific Ansible variables that customize the node, add the following configuration to your `openstack-edpm.yaml` file: