Skip to content

Commit fdab85c

Browse files
Stop publishing on content upload
1 parent e46e47e commit fdab85c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

etc/kayobe/ansible/push-ofed.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
ansible.builtin.pip:
99
name: pulp-cli
1010

11+
- name: Generate timestamp for distribution
12+
ansible.builtin.set_fact:
13+
stackhpc_doca_ofed_repo_version: "{{ ansible_date_time.iso8601_basic_short }}"
14+
1115
- name: Create Pulp repository for OFED
1216
pulp.squeezer.rpm_repository:
1317
pulp_url: "{{ stackhpc_release_pulp_url }}"
@@ -33,6 +37,7 @@
3337
--type package upload \
3438
--repository '{{ stackhpc_pulp_repo_doca_ofed_rhel9.name }}' \
3539
--file {{ item.path }} \
40+
--no-publish \
3641
with_items: "{{ rpm_dir.files }}"
3742
no_log: true
3843

@@ -50,7 +55,8 @@
5055
pulp_url: "{{ stackhpc_release_pulp_url }}"
5156
username: "{{ stackhpc_release_pulp_username }}"
5257
password: "{{ stackhpc_release_pulp_password }}"
53-
name: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.distribution_name }}"
58+
name: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.distribution_name }} ~ {{ stackhpc_doca_ofed_repo_version }}"
5459
publication: "{{ publication.publication.pulp_href }}"
55-
base_path: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.base_path }}"
60+
base_path: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.base_path }}/{{ stackhpc_doca_ofed_repo_version }}"
61+
content_guard: "development"
5662
state: present

etc/kayobe/ofed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ stackhpc_pulp_doca_ofed_version: 24.07
88
stackhpc_pulp_repo_doca_ofed_rhel9:
99
name: Mellanox Technologies doca_ofed {{ stackhpc_pulp_doca_ofed_version }} Rocky 9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}
1010
url: "{{ stackhpc_release_pulp_content_url }}/doca_ofed/{{ stackhpc_pulp_doca_ofed_version }}/rhel9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}/x86_64"
11-
distribution_name: "mlnx-ofed-{{ stackhpc_pulp_doca_ofed_version }}-rocky-9-{{ stackhpc_pulp_repo_rocky_9_minor_version }}"
11+
distribution_name: "mlnx-ofed-{{ stackhpc_pulp_doca_ofed_version }}-rocky-9-{{ stackhpc_pulp_repo_rocky_9_minor_version }}-"
1212
base_path: "mlnx_ofed/{{ stackhpc_pulp_doca_ofed_version }}/rhel9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}/x86_64"

0 commit comments

Comments
 (0)