Skip to content

Commit

Permalink
Replace SMT mirroring file with RMT mirroring file
Browse files Browse the repository at this point in the history
And adjusted for SLL7

jsc#PED-7585
  • Loading branch information
tahliar committed Jan 19, 2024
1 parent d8797f6 commit ab956b4
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 115 deletions.
8 changes: 4 additions & 4 deletions xml/art-quickstart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</para>
</important>
<para>
To register &rhel; &productnumber;, use
To register &rhel; &productnumber; or CentOS Linux &productnumber;, use
&suse;'s &rmtool; (&rmt;). &rmt; is a proxy system for the &scc;. The &rmt;
server is registered with the &scc;, and other systems in the network are
registered with the &rmt; server and receive packages from it directly.
Expand All @@ -75,8 +75,8 @@
</listitem>
<listitem>
<para>
<xref linkend="mirror-repositories-with-smt"/>. You can skip this step if
&productname; is already enabled and mirrored on your &smt; server.
<xref linkend="mirror-repositories-with-rmt"/>. You can skip this step if
&productname; is already enabled and mirrored on your &rmt; server.
</para>
</listitem>
<listitem>
Expand Down Expand Up @@ -160,7 +160,7 @@

<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="configure-rmt-server.xml"/>

<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mirror-repositories-with-smt.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mirror-repositories-with-rmt.xml"/>

<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="register-rhel-with-smt.xml"/>

Expand Down
114 changes: 114 additions & 0 deletions xml/mirror-repositories-with-rmt.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE section
[
<!ENTITY % entities SYSTEM "generic-entities.ent">
%entities;
]>

<section xml:id="mirror-repositories-with-rmt" xml:lang="en"
xmlns="http://docbook.org/ns/docbook" version="5.1"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Mirroring &productname; repositories with &rmt;</title>
<info>
<dm:docmanager xmlns:dm="urn:x-suse:ns:docmanager">
<dm:bugtracker></dm:bugtracker>
<dm:translation>no</dm:translation>
</dm:docmanager>
</info>

<para>
Use this procedure to mirror the &productname; repositories for &rhel; &productnumber;
and CentOS Linux &productnumber;.
</para>
<itemizedlist>
<title>Requirements</title>
<listitem>
<para>
<xref linkend="configure-rmt-server"/>
</para>
</listitem>
<listitem>
<para>
The &rmt; server has enough storage available for repository mirroring.
</para>
</listitem>
<listitem>
<para>
Your organization credentials appear correctly in <filename>/etc/rmt.conf</filename>.
</para>
</listitem>
<listitem>
<para>
You have a &productname; subscription activated in the &scc;.
</para>
</listitem>
</itemizedlist>

<procedure xml:id="pro-mirror-repositories-with-rmt">
<title>Mirroring &productname; repositories with &rmt;</title>
<step>
<para>
On the &rmt; server, update the available product and repository metadata:
</para>
<screen>&prompt.root;<command>rmt-cli sync</command></screen>
<para>
Synchronization is also performed automatically by
<systemitem>rmt-server-sync.timer</systemitem>. You can check the status and
the next scheduled synchronization time with the following command:
</para>
<screen>&prompt.root;<command>systemctl status rmt-server-sync.timer</command></screen>
</step>
<step>
<para>
Enable &productname; using the product ID <literal>1251</literal>:
</para>
<screen>&prompt.root;<command>rmt-cli product enable 1251</command></screen>
<para>
This enables all of the default repositories associated with the product.
</para>
</step>
<step>
<para>
If your subscription includes the &ha; extension, enable the extension using
the product ID <literal>1252</literal>:
</para>
<screen>&prompt.root;<command>rmt-cli product enable 1252</command></screen>
<tip role="compact">
<para>
To check whether the &ha; extension is available, run this command:
<command>rmt-cli products list --all --name="Liberty" --version=&productnumber;</command>
</para>
</tip>
</step>
<step>
<para>
If you also need the <literal>Source</literal> or <literal>Debug</literal>
repositories, find and enable them with the following commands:
</para>
<screen>&prompt.root;<command>rmt-cli repo list --all | grep RES-</command>
&prompt.root;<command>rmt-cli repo enable <replaceable>REPO_ID</replaceable></command></screen>
</step>
<step>
<para>
Start package mirroring for the enabled repositories:
</para>
<screen>&prompt.root;<command>rmt-cli mirror</command></screen>
<para>
Packages are downloaded to the &rmt; server once per day by
<systemitem>rmt-server-mirror.timer</systemitem>. You can check the status
and the next scheduled download time with the following command:
</para>
<screen>&prompt.root;<command>systemctl status rmt-server-mirror.timer</command></screen>
</step>
</procedure>
<itemizedlist>
<title>More information</title>
<listitem>
<para>
<link xlink:href="&dsc-sles;-15/html/SLES-all/cha-rmt-mirroring.html">
Mirroring repositories on the &rmt; server</link>
</para>
</listitem>
</itemizedlist>
</section>
110 changes: 0 additions & 110 deletions xml/mirror-repositories-with-smt.xml

This file was deleted.

2 changes: 1 addition & 1 deletion xml/register-rhel-with-smt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</listitem>
<listitem>
<para>
<xref linkend="mirror-repositories-with-smt"/>
<xref linkend="mirror-repositories-with-rmt"/>
</para>
</listitem>
<listitem>
Expand Down

0 comments on commit ab956b4

Please sign in to comment.