Skip to content
Open
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
8 changes: 8 additions & 0 deletions guides/common/modules/proc_configuring-repositories.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ ifdef::foremanctl[]
----
# {package-install} https://yum.theforeman.org/releases/{ProjectVersion}/el{distribution-major-version}/x86_64/foreman-release.rpm
----
ifdef::katello[]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The procedure is now the same as what we have in ifdef::foreman-el,katello[] on line 40. Perhaps it should be split off into snip_configuring-repositories-foreman-rpm.adoc with (in pseudo-code):

yum install foreman-release.rpm

ifdef::katello[]
yum install katello-repos-latest.rpm
endif::[]

ifdef::foremanctl[]
dnf copr enable @theforeman/foremanctl rhel-9-x86_64
endif::[]
ifndef::foremanctl[]
yum install puppet-release.rpm
endif::[]

Then in this file you'd have:

ifdef::satellite[]
...
endif::[]
ifdef::foreman-deb[]
include::snip_configuring-repositories-foreman-deb.adoc[]
endif::[]
ifdef::foreman-el,katello,foremanctl[]
include::snip_configuring-repositories-foreman-rpm.adoc[]
endif::[]

Isn't that a lot easier to maintain?

. Install the `katello-repos-latest.rpm` package:
+
[options="nowrap" subs="+quotes,attributes"]
----
# {package-install} https://yum.theforeman.org/katello/{KatelloVersion}/katello/el{distribution-major-version}/x86_64/katello-repos-latest.rpm
----
endif::[]
. Enable the required additional repositories:
+
[options="nowrap" subs="+quotes,attributes"]
Expand Down
Loading