Skip to content

Commit 6ef98b2

Browse files
Allow logs for RPM upload
1 parent d7c14f1 commit 6ef98b2

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

etc/kayobe/ansible/push-ofed.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,24 @@
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: "{{ '%Y%m%dT%H%M%S' | strftime }}"
11+
- name: Ensure Pulp configuration directory exists
12+
ansible.builtin.file:
13+
path: /home/stack/.config/pulp/
14+
state: directory
15+
recurse: true
16+
17+
- name: Setup Pulp credentials
18+
ansible.builtin.blockinfile:
19+
path: /home/stack/.config/pulp/cli.toml
20+
create: true
21+
block: |
22+
[cli]
23+
base_url = '{{ stackhpc_release_pulp_url }}'
24+
verify_ssl = true
25+
format = "json"
26+
username = '{{ stackhpc_release_pulp_username }}'
27+
password = '{{ stackhpc_release_pulp_password }}'
28+
no_log: true
1429

1530
- name: Create Pulp repository for OFED
1631
pulp.squeezer.rpm_repository:
@@ -30,16 +45,12 @@
3045
ansible.builtin.shell:
3146
cmd: |
3247
{{ venv }}/bin/pulp \
33-
--base-url '{{ stackhpc_release_pulp_url }}' \
34-
--username '{{ stackhpc_release_pulp_username }}' \
35-
--password '{{ stackhpc_release_pulp_password }}' \
3648
rpm content \
3749
--type package upload \
3850
--repository '{{ stackhpc_pulp_repo_doca_ofed_rhel9.name }}' \
3951
--file {{ item.path }} \
4052
--no-publish \
4153
with_items: "{{ rpm_dir.files }}"
42-
no_log: true
4354

4455
- name: Create Pulp publication for OFED
4556
pulp.squeezer.rpm_publication:
@@ -55,8 +66,8 @@
5566
pulp_url: "{{ stackhpc_release_pulp_url }}"
5667
username: "{{ stackhpc_release_pulp_username }}"
5768
password: "{{ stackhpc_release_pulp_password }}"
58-
name: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.distribution_name }}{{ ofed_tag }}"
69+
name: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.distribution_name + ofed_tag }}"
5970
publication: "{{ publication.publication.pulp_href }}"
6071
content_guard: development
61-
base_path: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.base_path }/{{ ofed_tag }}"
72+
base_path: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.base_path }}/{{ ofed_tag }}"
6273
state: present

0 commit comments

Comments
 (0)