Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update registry login docs #705

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ EOF
The resources in the `ConfigMap` contain cell-specific configurations.

ifeval::["{build}" == "downstream"]
. Create a secret for the subscription manager and a secret for the Red Hat registry:
. Create a secret for the subscription manager:
+
[source,yaml]
----
Expand All @@ -225,16 +225,20 @@ metadata:
data:
username: <base64_encoded_username>
password: <base64_encoded_password>
---
apiVersion: v1
kind: Secret
metadata:
name: redhat-registry
data:
username: <registry_username>
password: <registry_password>
EOF
----
+
* Replace `<base64_encoded_username>` and `<base64_encoded_password>` with strings that are base64-encoded.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
+
* Replace `<base64_encoded_username>` and `<base64_encoded_password>` with strings that are base64-encoded.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the plus sign should immediately follow the four dashes: ----

. Create a secret for the Red Hat registry:
+
----
$ oc create secret generic redhat-registry \
--from-literal edpm_container_registry_logins='{"registry.redhat.io": {"<registry_username>": "<registry_password>"}}'
----
+
* Replace `<registry_username>` with the applicable user name.
* Replace `<registry_password>` with the applicable password.
endif::[]

. Deploy the `OpenStackDataPlaneNodeSet` CR:
Expand Down Expand Up @@ -297,8 +301,7 @@ ifeval::["{build}" == "downstream"]
- prefix: subscription_manager_
secretRef:
name: subscription-manager
- prefix: registry_
secretRef:
- secretRef:
name: redhat-registry
endif::[]
ansibleVars:
Expand Down Expand Up @@ -396,7 +399,6 @@ ifeval::["{build}" == "downstream"]
# here we only ensuring that decontainerized libvirt can start
dnf -y upgrade openstack-selinux
rm -f /run/virtlogd.pid
podman login -u {{ registry_username }} -p {{ registry_password }} registry.redhat.io
endif::[]
gather_facts: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ ifeval::["{build}" == "downstream"]
- prefix: subscription_manager_
secretRef:
name: subscription-manager
- prefix: registry_
secretRef:
- secretRef:
name: redhat-registry
endif::[]
ansibleVars:
Expand Down Expand Up @@ -180,7 +179,6 @@ ifeval::["{build}" == "downstream"]
subscription-manager release --set=9.2
subscription-manager repos --disable=*
subscription-manager repos --enable=rhel-9-for-x86_64-baseos-eus-rpms --enable=rhel-9-for-x86_64-appstream-eus-rpms --enable=rhel-9-for-x86_64-highavailability-eus-rpms --enable=openstack-17.1-for-rhel-9-x86_64-rpms --enable=fast-datapath-for-rhel-9-x86_64-rpms --enable=openstack-dev-preview-for-rhel-9-x86_64-rpms
podman login -u {{ registry_username }} -p {{ registry_password }} registry.redhat.io
endif::[]
gather_facts: false
Expand Down
Loading