Skip to content

Commit 24f08f0

Browse files
s/image/artifact/g
1 parent b993c1a commit 24f08f0

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

etc/kayobe/ansible/pulp-image-upload.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
2-
- name: Upload and create a distribution for an image
2+
- name: Upload and create a distribution for an artifact
33
hosts: seed
44
vars:
55
remote_pulp_url: "{{ stackhpc_release_pulp_url }}"
66
remote_pulp_username: "{{ stackhpc_image_repository_username }}"
77
remote_pulp_password: "{{ stackhpc_image_repository_password }}"
8-
repository_name: "{{ image_name }}-{{ openstack_release }}-{{ os_distribution }}-{{ os_release }}"
9-
pulp_base_path: "{{ image_name }}/{{ openstack_release }}/{{ os_distribution }}/{{ os_release }}"
8+
repository_name: "{{ artifact_path }}-{{ openstack_release }}-{{ os_distribution }}-{{ os_release }}"
9+
pulp_base_path: "{{ artifact_path }}/{{ openstack_release }}/{{ os_distribution }}/{{ os_release }}"
1010
file_extension: 'qcow2'
1111
tasks:
12-
- name: Print image tag
12+
- name: Print artifact tag
1313
debug:
14-
msg: "Image tag: {{ image_tag }}"
14+
msg: "artifact tag: {{ artifact_tag }}"
1515

1616
- name: Get filename
1717
find:
18-
paths: "{{ image_path }}"
18+
paths: "{{ artifact_path }}"
1919
patterns: "*.{{ file_extension }}"
2020
register: found_files
2121

@@ -108,8 +108,8 @@
108108
pulp_url: "{{ remote_pulp_url }}"
109109
username: "{{ remote_pulp_username }}"
110110
password: "{{ remote_pulp_password }}"
111-
name: "{{ repository_name }}_{{ image_tag }}"
112-
base_path: "{{ pulp_base_path }}/{{ image_tag }}"
111+
name: "{{ repository_name }}_{{ artifact_tag }}"
112+
base_path: "{{ pulp_base_path }}/{{ artifact_tag }}"
113113
publication: "{{ publication_details.publication.pulp_href }}"
114114
content_guard: development
115115
state: present
@@ -119,24 +119,24 @@
119119
retries: 3
120120
delay: 5
121121

122-
- name: Update new images file with versioned path
122+
- name: Update new artifacts file with versioned path
123123
lineinfile:
124-
path: /tmp/updated_images.txt
124+
path: /tmp/updated_artifacts.txt
125125
line: "{{ remote_pulp_url }}/pulp/content/{{ pulp_base_path }}/\
126-
{{ image_tag }}/{{ found_files.files[0].path | basename }}"
126+
{{ artifact_tag }}/{{ found_files.files[0].path | basename }}"
127127
create: true
128128

129-
- name: Update new images file with latest path
129+
- name: Update new artifacts file with latest path
130130
lineinfile:
131-
path: /tmp/updated_images.txt
131+
path: /tmp/updated_artifacts.txt
132132
line: "{{ remote_pulp_url }}/pulp/content/{{ pulp_base_path }}/\
133133
latest/{{ found_files.files[0].path | basename }}"
134134
when: latest_distribution_details.changed
135135

136136
- name: Print versioned path
137137
debug:
138138
msg: "New versioned path: {{ remote_pulp_url }}/pulp/content/{{ pulp_base_path }}/\
139-
{{ image_tag }}/{{ found_files.files[0].path | basename }}"
139+
{{ artifact_tag }}/{{ found_files.files[0].path | basename }}"
140140
when: latest_distribution_details.changed
141141

142142
- name: Print latest path
@@ -147,5 +147,5 @@
147147

148148
- name: Print version tag
149149
debug:
150-
msg: "New tag: {{ image_tag }}"
150+
msg: "New tag: {{ artifact_tag }}"
151151
when: latest_distribution_details.changed

0 commit comments

Comments
 (0)