Skip to content

Commit c3de030

Browse files
Update Web UI for SCC Manager & split modules by interface (#4404)
* Update WebUI to add SCC Account to Foreman+Katello This patch is required due to the redesign of the Web UI. Refs PR 165 in foreman_scc_manager * Split adding SCC account modules by interface
1 parent da5bb6f commit c3de030

7 files changed

+106
-100
lines changed

guides/common/assembly_managing-suse-content.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ include::modules/proc_creating-a-suse-operating-system.adoc[leveloffset=+1]
88

99
include::modules/proc_installing-the-scc-manager.adoc[leveloffset=+1]
1010

11-
include::modules/proc_adding-an-scc-account.adoc[leveloffset=+1]
11+
include::modules/proc_adding-an-scc-account-by-using-web-ui.adoc[leveloffset=+1]
12+
13+
include::modules/proc_adding-an-scc-account-by-using-cli.adoc[leveloffset=+1]
1214

1315
include::modules/proc_switching-scc-accounts.adoc[leveloffset=+1]
1416

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="adding-an-scc-account-to-{project-context}-by-using-cli"]
4+
= Adding an SCC account to {Project} by using Hammer CLI
5+
6+
Add your SCC account to {Project} by using Hammer CLI.
7+
8+
.Procedure
9+
. Optional: Import the public GPG key from SUSE into {Project}.
10+
+
11+
For more information, see {ContentManagementDocURL}cli-importing-a-gpg-key[Importing a GPG Key] in _{ContentManagementDocTitle}_.
12+
. Add your SCC account to {Project}:
13+
+
14+
[options="nowrap", subs="+quotes,verbatim,attributes"]
15+
----
16+
$ hammer scc_manager scc_accounts create \
17+
--base-url "https://scc.suse.com/" \
18+
--interval _My_Interval_ \
19+
--katello-gpg-key-id _My_GPG_Key_ID_ \
20+
--location-id _My_Location_ID_ \
21+
--login "_My_SCC_Account_Name_" \
22+
--name "_My_Account_Name_" \
23+
--organization-id _My_Organization_ID_ \
24+
--password "_My_SCC_Account_Password" \
25+
--sync-date _My_Sync_Date_
26+
----
27+
. Test your SCC account credentials:
28+
+
29+
[options="nowrap", subs="+quotes,verbatim,attributes"]
30+
----
31+
$ hammer scc_manager scc_accounts test_connection \
32+
--id _My_SCC_Account_ID_
33+
----
34+
+
35+
Ensure the command returns `Testing connection for SCC account succeeded`.
36+
. Synchronize the list of available SUSE products to {Project}:
37+
+
38+
[options="nowrap", subs="+quotes,verbatim,attributes"]
39+
----
40+
$ hammer scc_manager scc_accounts sync \
41+
--id _My_SCC_Account_ID_
42+
----
43+
. Check the status of the task:
44+
+
45+
[options="nowrap", subs="+quotes,verbatim,attributes"]
46+
----
47+
$ hammer task info \
48+
--id _My_Task_ID_
49+
----
50+
+
51+
The synchronization is complete once the command returns `State: stopped` and `Result: success`.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="adding-an-scc-account-to-{project-context}-by-using-web-ui"]
4+
= Adding an SCC account to {Project} by using {ProjectWebUI}
5+
6+
Add your SCC account to {Project}.
7+
8+
[WARNING]
9+
====
10+
The SCC Manager plugin does not support multiple SCC accounts within one organization.
11+
Add an additional SCC account only if you want to switch to using another SCC account.
12+
13+
If you need to use additional SCC accounts, add them to other organizations.
14+
====
15+
16+
.Prerequisites
17+
* You have installed the SCC Manager plugin on your {Project}.
18+
For more information, see xref:Installing_the_SCC_Manager_plugin_{context}[].
19+
20+
.Procedure
21+
. Optional: In the {ProjectWebUI}, navigate to *Content* > *Content Credentials* and click *Create Content Credential*.
22+
+
23+
Add the GPG public key for SLES 15 SP3 from https://www.suse.com/support/security/keys/[suse.com].
24+
. In the {ProjectWebUI}, navigate to *Content* > *SUSE Subscriptions*.
25+
. Click *Add SCC account*.
26+
. In the *Name* field, enter a name for your SCC account in {Project}.
27+
. In the *Login* and *Password* fields, enter your SUSE credentials.
28+
. In the *Base URL* field, you can enter the base URL for the Suse Customer Center.
29+
By default, it is set to `\https://scc.suse.com`.
30+
. Click *Test connection* to verify your account information.
31+
. Optional: Set a *Refresh interval* to periodically update the SCC authentication token.
32+
Note that this does not refer to synchronizing content to {Project}.
33+
. Optional: Set a *Refresh time* to specify the time of the refresh of the SCC authentication token.
34+
. Optional: In the *GPG key for SUSE products* field, you can select the previously created content credential to automatically add a GPG public key to your SUSE products.
35+
`zypper` automatically verifies the signatures of each software package to ensure their authenticity.
36+
+
37+
[NOTE]
38+
====
39+
You can also set the GPG public key for repositories from SUSE at a later stage.
40+
However, changing it does not affect already synchronized products.
41+
If you already have synchronized products in {Project}, navigate to *Content > Products* and replace the GPG key in each respective product.
42+
====
43+
. Optional: From the *Download Policy* list, select a download policy for your SUSE products.
44+
For more information, see xref:Download_Policies_Overview_{context}[].
45+
. Optional: From the *Mirroring Policy* list, select a mirroring policy for your SUSE products.
46+
For more information, see xref:Mirroring_Policies_Overview_{context}[].
47+
. Click *Submit* to save your SCC account to {Project}.
48+
. In the {ProjectWebUI}, navigate to *Content* > *SUSE Subscriptions*.
49+
. Select your SCC account and click *Sync* to fetch a list of products associated to your SCC account.

guides/common/modules/proc_adding-an-scc-account.adoc

Lines changed: 0 additions & 96 deletions
This file was deleted.

guides/common/modules/proc_importing-suse-products.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To use the CLI instead of the {ProjectWebUI}, see the xref:cli-Importing_SUSE_Pr
88

99
.Prerequisites
1010
* You have added your SCC account to {Project}.
11-
For more information, see xref:Adding_an_SCC_Account_to_Server_{context}[].
11+
For more information, see xref:adding-an-scc-account-to-{project-context}-by-using-web-ui[].
1212

1313
.Procedure
1414
. In the {ProjectWebUI}, navigate to *Content > SUSE Subscriptions*.

guides/common/modules/proc_switching-scc-accounts.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you delete your old SCC account, you cannot reuse existing repositories, prod
1515

1616
.Prerequisites
1717
* You have added your SCC account to {Project}.
18-
For more information, see xref:Adding_an_SCC_Account_to_Server_{context}[].
18+
For more information, see xref:adding-an-scc-account-to-{project-context}-by-using-web-ui[].
1919

2020
.Procedure
2121
. In the {ProjectWebUI}, navigate to *Content > SUSE Subscriptions*.

guides/common/modules/proc_updating-an-scc-account.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To use the CLI instead of the {ProjectWebUI}, see the xref:cli-Updating_an_SCC_A
1010
. In the {ProjectWebUI}, navigate to *Content* > *SUSE Subscriptions*.
1111
. Select your SCC account and update it as required.
1212
+
13-
For more information, see xref:Adding_an_SCC_Account_to_Server_{context}[].
13+
For more information, see xref:adding-an-scc-account-to-{project-context}-by-using-web-ui[].
1414
. Click *Submit* to update your SCC account.
1515

1616
[id="cli-Updating_an_SCC_Account_{context}"]

0 commit comments

Comments
 (0)