-
Notifications
You must be signed in to change notification settings - Fork 110
Optimize (CQA) - Managing Content - ACS #4756
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
Open
Lennonka
wants to merge
5
commits into
theforeman:master
Choose a base branch
from
Lennonka:premig-mng-content-acs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...ternate-content-sources-by-using-cli.adoc → ...lternate-content-source-by-using-cli.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...nate-content-sources-by-using-web-ui.adoc → ...rnate-content-source-by-using-web-ui.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
...ternate-content-sources-by-using-cli.adoc → ...lternate-content-source-by-using-cli.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
...nate-content-sources-by-using-web-ui.adoc → ...rnate-content-source-by-using-web-ui.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...common/modules/proc_creating-an-rhui-alternate-content-source-by-using-cli.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="creating-an-rhui-alternate-content-source-by-using-cli"] | ||
| = Creating an RHUI alternate content source by using Hammer CLI | ||
|
|
||
| [role="_abstract"] | ||
| You can create an RHUI alternate content source (ACS) to synchronize content from your Red{nbsp}Hat Update Infrastructure (RHUI) server. | ||
| Leverage your existing RHUI investment and accelerate content synchronization. | ||
|
|
||
| {Project} searches content paths that combine a base URL with subpaths. | ||
| For example, if your base URL is `\https://{server-example-com}` and your subpaths are `rhel10/` and `rhel9/`, then {Project} searches `\https://{server-example-com}/rhel10/` and `\https://{server-example-com}/rhel9/`. | ||
|
|
||
| .Prerequisites | ||
| * The client entitlement certificates for the required repositories are generated on the RHUA node. | ||
| For more information, see {RHDocsBaseURL}red_hat_update_infrastructure/4/html/configuring_and_managing_red_hat_update_infrastructure/assembly_cmg-creating-client-ent-cert-config-rpm_configuring-and-managing-red-hat-update-infrastructure#proc_cmg-creating-client-entitlement-certificate_assembly_cmg-creating-client-ent-cert-config-rpm[Creating a client entitlement certificate with the Red Hat Update Infrastructure Management Tool] in _Configuring and Managing Red Hat Update Infrastructure 4_. | ||
| * The client entitlement certificates are imported into {Project}. | ||
| For more information, see {ContentManagementDocURL}importing-custom-ssl-certificates-by-using-web-ui[Importing {customssl} certificates by using {ProjectWebUI}] in _{ContentManagementDocTitle}_. | ||
| * You have the base URL of the Red{nbsp}Hat Update Infrastructure CDS node. | ||
|
|
||
| .Procedure | ||
| . On your RHUA server, display details for the required repositories: | ||
| + | ||
| [options="nowrap" subs="+quotes,attributes"] | ||
| ---- | ||
| # rhui-manager repo info --repo_id _My_Repo_ID_ | ||
| ---- | ||
| + | ||
| Record the relative paths from the command output to use as subpaths. | ||
| . Create a RHUI alternate content source: | ||
| + | ||
| [options="nowrap" subs="+quotes,attributes"] | ||
| ---- | ||
| $ hammer alternate-content-source create \ | ||
| --alternate-content-source-type rhui \ | ||
| --base-url "_https://rhui-cds-node.example.com/pulp/content_" \ | ||
| --name "_My_ACS_Name_" \ | ||
| --smart-proxy-ids __My_{smart-proxy-context-titlecase}_ID_1__,__My_{smart-proxy-context-titlecase}_ID_2__ \ | ||
| --ssl-client-cert-id _My_SSL_Client_Certificate_ID_ \ | ||
| --ssl-client-key-id _My_SSL_Client_Key_ID_ \ | ||
| --subpaths _path/to/repo/1/,path/to/repo/2/_ \ | ||
| --verify-ssl _true_ | ||
| ---- | ||
| . Refresh the alternate content source: | ||
| + | ||
| [options="nowrap" subs="+quotes,attributes"] | ||
| ---- | ||
| $ hammer alternate-content-source refresh --name "_My_ACS_Name_" | ||
| ---- | ||
|
|
||
| .Verification | ||
| * Verify that the task ran successfully: | ||
| + | ||
| [options="nowrap" subs="+quotes,attributes"] | ||
| ---- | ||
| $ hammer task list --search "Refresh Alternate Content Source" | ||
| ---- | ||
27 changes: 16 additions & 11 deletions
27
...nate-content-sources-by-using-web-ui.adoc → ...rnate-content-source-by-using-web-ui.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,31 @@ | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="creating-rhui-alternate-content-sources-by-using-web-ui"] | ||
| = Creating RHUI alternate content sources by using {ProjectWebUI} | ||
| [id="creating-an-rhui-alternate-content-source-by-using-web-ui"] | ||
| = Creating an RHUI alternate content source by using {ProjectWebUI} | ||
|
|
||
| [role="_abstract"] | ||
| You can use RHUI alternate content sources to configure your {SmartProxy} to sync content from a Red{nbsp}Hat Update Infrastructure server. | ||
| You can create an RHUI alternate content source (ACS) to synchronize content from your Red{nbsp}Hat Update Infrastructure (RHUI) server. | ||
| Leverage your existing RHUI investment and accelerate content synchronization. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feels MARKETING-y. 🙃 non-blocking. |
||
|
|
||
| {Project} searches content paths that combine a base URL with subpaths. | ||
| For example, if your base URL is `\https://{server-example-com}` and your subpaths are `rhel10/` and `rhel9/`, then {Project} searches `\https://{server-example-com}/rhel10/` and `\https://{server-example-com}/rhel9/`. | ||
|
|
||
| .Prerequisites | ||
| * Generate the client entitlement certificates for the required repos on the RHUA node as described in {RHDocsBaseURL}red_hat_update_infrastructure/4/html/configuring_and_managing_red_hat_update_infrastructure/assembly_cmg-creating-client-ent-cert-config-rpm_configuring-and-managing-red-hat-update-infrastructure#proc_cmg-creating-client-entitlement-certificate_assembly_cmg-creating-client-ent-cert-config-rpm[Creating a client entitlement certificate with the Red Hat Update Infrastructure Management Tool] in _Configuring and Managing Red Hat Update Infrastructure_. | ||
| * Import the client entitlement certificates into {Project}. | ||
| * The client entitlement certificates for the required repositories are generated on the RHUA node. | ||
| For more information, see {RHDocsBaseURL}red_hat_update_infrastructure/4/html/configuring_and_managing_red_hat_update_infrastructure/assembly_cmg-creating-client-ent-cert-config-rpm_configuring-and-managing-red-hat-update-infrastructure#proc_cmg-creating-client-entitlement-certificate_assembly_cmg-creating-client-ent-cert-config-rpm[Creating a client entitlement certificate with the Red Hat Update Infrastructure Management Tool] in _Configuring and Managing Red Hat Update Infrastructure 4_. | ||
| * The client entitlement certificates are imported into {Project}. | ||
| For more information, see {ContentManagementDocURL}importing-custom-ssl-certificates-by-using-web-ui[Importing {customssl} certificates by using {ProjectWebUI}] in _{ContentManagementDocTitle}_. | ||
| * Obtain a list of the subpaths for the required repositories. | ||
| Execute the following command on your RHUA server: | ||
| * You have the base URL of the Red{nbsp}Hat Update Infrastructure CDS node. | ||
|
|
||
| .Procedure | ||
| . On your RHUA server, display details for the required repositories: | ||
| + | ||
| [options="nowrap" subs="+quotes,attributes"] | ||
| ---- | ||
| # rhui-manager repo info --repo_id _My_Repo_ID_ | ||
| ---- | ||
| * You have the base URL and subpaths of your alternate content source. | ||
| For example, if your base URL is `\https://{server-example-com}` and your subpaths are `rhel10/` and `rhel9/`, then {Project} will search `\https://{server-example-com}/rhel10/` and `\https://{server-example-com}/rhel9/`. | ||
|
|
||
| .Procedure | ||
| + | ||
| Record the relative paths from the command output to use as subpaths. | ||
| . In the {ProjectWebUI}, navigate to *Content* > *Alternate Content Sources*. | ||
| . Click *Add source*. | ||
| . Set the *Source type* to *RHUI*. | ||
|
|
||
43 changes: 0 additions & 43 deletions
43
...s/common/modules/proc_creating-rhui-alternate-content-sources-by-using-cli.adoc
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The relative path looks as follows according to the RHUI4 docs:
If people use it as-is for a subpath, they might get the full URL like:
Is that expected?
Or does Foreman handle the double
contentsubstring somehow?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been a while since I've looked at RHUI, but the double
contentwas intentional. I can find other references to fill RHUI content addresses including two content substrings. For example, https://access.redhat.com/solutions/5079081 and https://access.redhat.com/articles/6972161.