Skip to content

Commit 1e9f1ab

Browse files
Update Pulp sync condition
1 parent ce973ac commit 1e9f1ab

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

doc/source/contributor/ofed.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,10 @@ Install process
5454
Release Train configuration
5555
---------------------------
5656

57-
DOCA repositories will need to be synced to the local Pulp service, ensure that DOCA RPM repositories are
58-
enabled by setting:
59-
60-
.. code-block:: yaml
61-
62-
dnf_install_doca: true
63-
64-
With kernel module syncing enabled, the local Pulp can be synced with Ark by running:
57+
DOCA repositories will need to be synced to the local Pulp service, Ensure the DOCA
58+
hosts added to the ``mlnx`` group before running a package sync, if the group is not
59+
empty DOCA will be synced into the local Pulp. The local Pulp can be synced with Ark
60+
by running:
6561

6662
.. code-block:: console
6763

etc/kayobe/dnf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ dnf_docker_gpg_key_url: "https://download.docker.com/linux/centos/gpg"
181181

182182
# Whether to create a repo file for DOCA. This affects RedHat-based
183183
# systems only. Default value is 'false'.
184-
#dnf_install_doca:
184+
dnf_install_doca: "{{ stackhpc_pulp_sync_ofed }}"
185185

186186
###############################################################################
187187
# DNF Automatic configuration.

etc/kayobe/inventory/group_vars/all/stackhpc-repos

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
# vm has been provisioned
55
# This behaviour is overriden for Overcloud hosts.
66
stackhpc_repos_enabled: false
7-
8-
# Disable StackHPC DOCA repositories by default
9-
dnf_install_doca: false

etc/kayobe/ofed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ stackhpc_pulp_doca_version: 2.9.1
99
# Pulp configuration for DOCA OFED
1010

1111
# Whether to sync OFED repositories into the local Pulp service
12-
stackhpc_pulp_sync_ofed: "{{ dnf_install_doca }}"
12+
stackhpc_pulp_sync_ofed: "{{ 'mlnx' in group_names or ( 'localhost' in inventory_hostname and groups['mlnx'] | length > 0 ) }}"
1313

1414
# DOCA Snapshot versions. The defaults use the appropriate version from
1515
# pulp-repo-versions.yml

0 commit comments

Comments
 (0)