Skip to content

Commit 6b6866f

Browse files
authored
Add UI procedure for Flatpak and remove endpoint in command line (#4014)
* Add UI procedure for Flatpak and remove endpoint in command line * Address offline suggestions * Add alternative to Podman in section * Address suggestions and reword cert config * Address suggestions * Rework steps into one step as suggested * Fix formatting issue * Address suggestions and fix blank lines * Address QE suggestions
1 parent 48a39d0 commit 6b6866f

9 files changed

+90
-10
lines changed

guides/common/assembly_managing-flatpak-repositories-in-project.adoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22

33
include::modules/con_managing-flatpak-repositories-in-project.adoc[]
44

5-
include::modules/proc_enabling-the-flatpak-remote.adoc[leveloffset=+1]
5+
include::modules/proc_creating-a-flatpak-remote.adoc[leveloffset=+1]
6+
7+
include::modules/proc_scanning-a-flatpak-remote.adoc[leveloffset=+1]
8+
9+
include::modules/proc_viewing-flatpak-remote-details.adoc[leveloffset=+1]
10+
11+
include::modules/proc_mirroring-remote-flatpak-repositories-to-project-products.adoc[leveloffset=+1]
12+
13+
include::modules/proc_enabling-the-flatpak-remote-by-using-hammer-cli.adoc[leveloffset=+1]
614

715
include::modules/proc_installing-flatpak-applications-on-project-hosts.adoc[leveloffset=+1]
816

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="creating-a-flatpak-remote"]
4+
= Creating a Flatpak remote
5+
6+
You can create a Flatpak remote to access and manage Flatpak repositories in {Project}.
7+
8+
.Procedure
9+
. In the {ProjectWebUI}, navigate to *Content* > *Flatpak Remotes*.
10+
. Click *Create new*.
11+
. In the *Name* field, enter a name for the Flatpak remote.
12+
. In the *URL* field, enter the URL of the Flatpak remote.
13+
For example, to use the Red{nbsp}Hat Flatpak index, enter: `https://flatpaks.redhat.io/rhel/`.
14+
. If the Flatpak remote requires authentication, enter the required credentials.
15+
For example, synchronizing Red{nbsp}Hat Flatpaks from `registry.redhat.io` requires authentication.
16+
For more information, see https://access.redhat.com/articles/RegistryAuthentication#creating-registry-service-accounts-6[Creating Registry Service Accounts].
17+
. Click *Create*.

guides/common/modules/proc_enabling-the-flatpak-remote.adoc renamed to guides/common/modules/proc_enabling-the-flatpak-remote-by-using-hammer-cli.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:_mod-docs-content-type: PROCEDURE
22

3-
[id="enabling-the-flatpak-remote"]
4-
= Enabling the Flatpak remote
3+
[id="enabling-the-flatpak-remote-by-using-hammer-cli"]
4+
= Enabling the Flatpak remote by using Hammer CLI
55

66
This procedure configures and manages Flatpak repositories by using Hammer CLI.
77

guides/common/modules/proc_importing-and-exporting-content-to-project-server-for-flatpak.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Use Hammer CLI to transfer Flatpak content to {ProjectServer} in environments wi
77

88
.Prerequisites
99
* Enable the Flatpak remote.
10-
For more information about enabling the Flatpak remote, see xref:enabling-the-flatpak-remote[].
10+
For more information about enabling the Flatpak remote, see xref:enabling-the-flatpak-remote-by-using-hammer-cli[].
1111

1212
.CLI procedure
1313
. Export content from the connected {ProjectServer}:

guides/common/modules/proc_installing-flatpak-applications-on-project-hosts.adoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ The token generates automatically when you run `podman login`.
2222
----
2323
$ flatpak remote-add --authenticator-name=org.flatpak.Authenticator.Oci katello oci+https://_{foreman-example-com}_/
2424
----
25-
. Log in using Podman:
25+
. Log in the host to the container registry using one of the following methods:
26+
* Certificate authentication
27+
** When registering a host to {Project} or {SmartProxy}, select the *Set up container registry certs* checkbox.
28+
** If the host is already registered, run the *Flatpak - Login to registry via podman* job template on the host.
29+
Set *Set up certificate authentication* to `true` and enter the URL of the {Project} or {SmartProxy} server as the registry URL.
30+
* Using Podman
31+
** Log in using Podman:
2632
+
2733
[options="nowrap", subs="+quotes,verbatim,attributes"]
2834
----
@@ -35,7 +41,6 @@ For example, to install the Mozilla Firefox Flatpak:
3541
----
3642
$ flatpak install firefox
3743
----
38-
3944
.Additional resources
4045
* For more information about launching Flatpak applications, see {RHELDocsBaseURL}9/html/administering_the_system_using_the_gnome_desktop_environment/assembly_installing-applications-using-flatpak_administering-the-system-using-the-gnome-desktop-environment#launching-flatpak-applications_assembly_installing-applications-using-flatpak[Launching Flatpak applications].
4146
* For more information about updating Flatpak applications, see {RHELDocsBaseURL}9/html/administering_the_system_using_the_gnome_desktop_environment/assembly_installing-applications-using-flatpak_administering-the-system-using-the-gnome-desktop-environment#updating-flatpak-applications_assembly_installing-applications-using-flatpak[Updating Flatpak applications].
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="mirroring-remote-flatpak-repositories-to-{Project}-products"]
4+
= Mirroring remote Flatpak repositories to {Project} products
5+
6+
You can mirror a Flatpak repository from a Flatpak remote into an existing product in {Project} to make it available for content management and distribution.
7+
8+
This action creates a new repository inside the product you selected.
9+
You can now synchronize the repository to pull down its content.
10+
Flatpak repositories are container repositories and you can add them to content views like other container repositories.
11+
12+
Flatpak applications require a corresponding runtime environment, which the Flatpak remote also provides.
13+
To make the {EL} 10 Mozilla Firefox Flatpak available to a host, ensure that the host can access the matching `rhel10/flatpak-runtime` repository.
14+
15+
.Procedure
16+
. In the {ProjectWebUI}, navigate to *Content* > *Flatpak Remotes*.
17+
. In the list of Flatpak Remotes, click the name of the remote you want to mirror.
18+
. In the list of remote repositories, locate the repository you want to mirror.
19+
. Select the *Mirror Action* menu on the row of the repository.
20+
. In the *Mirror* window, select the existing product where you want to create the new repository.
21+
. Click *Mirror*.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="scanning-a-flatpak-remote"]
4+
= Scanning a Flatpak remote
5+
6+
You can scan a Flatpak remote to fetch metadata about the repositories it provides.
7+
Scanning a Flatpak remote creates remote repository artifacts for the repositories hosted by the Flatpak remote.
8+
If new repositories are added to the Flatpak remote, scan it again to pull in the changes.
9+
10+
.Procedure
11+
. In the {ProjectWebUI}, navigate to *Content* > *Flatpak Remotes*.
12+
. Select the Flatpak remote that you want to scan.
13+
. Click the vertical ellipsis next to the remote and select *Scan*.

guides/common/modules/proc_setting-up-flatpak-remote-for-smartproxy.adoc

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,15 @@ For more information, see xref:Synchronizing_Repositories_{context}[].
2020
+
2121
[options="nowrap", subs="+quotes,verbatim,attributes"]
2222
----
23-
$ flatpak remote-add --authenticator-name=org.flatpak.Authenticator.Oci katello oci+https://{smartproxy-example-com}/pulpcore_registry/
24-
----
25-
. Log in using Podman:
23+
$ flatpak remote-add --authenticator-name=org.flatpak.Authenticator.Oci katello oci+https://{smartproxy-example-com}/
24+
----
25+
. Log in the host to the container registry using one of the following methods:
26+
* Certificate authentication
27+
** When registering a host to {SmartProxy}, select the *Set up container registry certs* checkbox.
28+
** If the host is already registered, run the *Flatpak - Login to registry via podman* job template on the host.
29+
Set *Set up certificate authentication* to `true` and enter the URL of the {SmartProxy} server as the registry URL.
30+
* Using Podman
31+
** Log in using Podman:
2632
+
2733
[options="nowrap", subs="+quotes,verbatim,attributes"]
2834
----
@@ -31,7 +37,6 @@ $ podman login _{foreman-example-com}_
3137
For more information about logging in using Podman, see xref:Configuring_podman_to_trust_the_CA_{context}[].
3238
+
3339
You might need to log in to the registry again if you have not saved your credentials.
34-
3540
. Optional: Save your credentials permanently using one of the following options:
3641
* To save the credentials for the current user:
3742
+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="viewing-flatpak-remote-details"]
4+
= Viewing Flatpak remote details
5+
6+
You can view a list of the repositories a scanned Flatpak remote provides.
7+
8+
.Procedure
9+
. In the {ProjectWebUI}, navigate to *Content* > *Flatpak Remotes*.
10+
. Click the name of the Flatpak remote you want to view.
11+
. The page displays a list of repositories available from the scanned Flatpak remote.

0 commit comments

Comments
 (0)