Skip to content

Commit

Permalink
Declare attributes only just before the include
Browse files Browse the repository at this point in the history
These attributes are only used in the configuring-repositories-el module
which is only included in some cases. This makes it a bit more obvious
and avoids defining them for other cases.
  • Loading branch information
ekohl committed Jul 2, 2024
1 parent fad38af commit 5c617e6
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions guides/common/modules/proc_configuring-repositories.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ ifdef::foreman-el,katello,satellite[]
[id="repositories-el-9"]
== {EL} 9

:distribution: el
:distribution-major-version: 9
:package-manager: dnf

ifdef::satellite[]
. Disable all repositories:
+
Expand All @@ -49,6 +45,9 @@ ifdef::satellite[]
endif::[]

ifdef::foreman-el,katello[]
:distribution: el
:distribution-major-version: 9
:package-manager: dnf
include::proc_configuring-repositories-el.adoc[]
endif::[]

Expand All @@ -57,10 +56,6 @@ include::snip_verification-enabled-repolist.adoc[]
[id="repositories-el-8"]
== {EL} 8

:distribution: el
:distribution-major-version: 8
:package-manager: dnf

ifdef::satellite[]
. Disable all repositories:
+
Expand All @@ -82,6 +77,9 @@ ifdef::satellite[]
endif::[]

ifdef::foreman-el,katello[]
:distribution: el
:distribution-major-version: 8
:package-manager: dnf
include::proc_configuring-repositories-el.adoc[]
endif::[]

Expand Down

0 comments on commit 5c617e6

Please sign in to comment.