|
26 | 26 | - ndg-httpsclient |
27 | 27 | - pyasn1 |
28 | 28 | - urllib3 |
| 29 | + - packaging |
| 30 | + - pulp-glue<0.34.0,>=0.33.0 |
| 31 | + - pulp-glue-deb<0.4.0,>=0.3.0 |
29 | 32 | state: present |
30 | 33 |
|
31 | | - - name: Upload an artifact |
32 | | - pulp.squeezer.artifact: |
33 | | - pulp_url: "{{ remote_pulp_url }}" |
34 | | - username: "{{ remote_pulp_username }}" |
35 | | - password: "{{ remote_pulp_password }}" |
36 | | - file: "{{ found_files.files[0].path }}" |
37 | | - state: present |
38 | | - register: upload_result |
39 | | - until: upload_result is success |
40 | | - retries: 3 |
41 | | - delay: 60 |
42 | | - |
43 | 34 | - name: Get sha256 hash |
44 | 35 | ansible.builtin.stat: |
45 | 36 | path: "{{ found_files.files[0].path }}" |
|
58 | 49 | checksum_algorithm: sha256 |
59 | 50 | register: checksum_stats |
60 | 51 |
|
61 | | - - name: Upload checksum artifact |
62 | | - pulp.squeezer.artifact: |
| 52 | + - name: Ensure file repo exists |
| 53 | + pulp.squeezer.file_repository: |
63 | 54 | pulp_url: "{{ remote_pulp_url }}" |
64 | 55 | username: "{{ remote_pulp_username }}" |
65 | 56 | password: "{{ remote_pulp_password }}" |
66 | | - file: "/tmp/{{ found_files.files[0].path | basename }}.sha256" |
| 57 | + name: "{{ repository_name }}" |
67 | 58 | state: present |
68 | | - register: checksum_upload_result |
69 | | - until: checksum_upload_result is success |
| 59 | + register: file_repo_result |
| 60 | + until: file_repo_result is success |
70 | 61 | retries: 3 |
71 | | - delay: 60 |
72 | | - when: upload_checksum |
| 62 | + delay: 5 |
73 | 63 |
|
74 | | - - name: Create file content from artifact |
| 64 | + - name: Upload artifact |
75 | 65 | pulp.squeezer.file_content: |
76 | 66 | pulp_url: "{{ remote_pulp_url }}" |
77 | 67 | username: "{{ remote_pulp_username }}" |
78 | 68 | password: "{{ remote_pulp_password }}" |
| 69 | + file: "{{ found_files.files[0].path }}" |
79 | 70 | sha256: "{{ file_stats.stat.checksum }}" |
80 | 71 | relative_path: "{{ found_files.files[0].path | basename }}" |
81 | 72 | state: present |
| 73 | + repository: "{{ repository_name }}" |
82 | 74 | register: file_content_result |
83 | 75 | until: file_content_result is success |
84 | 76 | retries: 3 |
85 | 77 | delay: 5 |
86 | 78 |
|
87 | | - - name: Create checksum content from artifact |
| 79 | + - name: Upload checksum |
88 | 80 | pulp.squeezer.file_content: |
89 | 81 | pulp_url: "{{ remote_pulp_url }}" |
90 | 82 | username: "{{ remote_pulp_username }}" |
91 | 83 | password: "{{ remote_pulp_password }}" |
| 84 | + file: "/tmp/{{ found_files.files[0].path | basename }}.sha256" |
92 | 85 | sha256: "{{ checksum_stats.stat.checksum }}" |
93 | 86 | relative_path: "{{ found_files.files[0].path | basename }}.sha256" |
94 | 87 | state: present |
| 88 | + repository: "{{ repository_name }}" |
95 | 89 | register: checksum_content_result |
96 | 90 | until: checksum_content_result is success |
97 | 91 | retries: 3 |
98 | 92 | delay: 5 |
99 | 93 | when: upload_checksum |
100 | 94 |
|
101 | | - - name: Ensure file repo exists |
102 | | - pulp.squeezer.file_repository: |
103 | | - pulp_url: "{{ remote_pulp_url }}" |
104 | | - username: "{{ remote_pulp_username }}" |
105 | | - password: "{{ remote_pulp_password }}" |
106 | | - name: "{{ repository_name }}" |
107 | | - state: present |
108 | | - register: file_repo_result |
109 | | - until: file_repo_result is success |
110 | | - retries: 3 |
111 | | - delay: 5 |
112 | | - |
113 | | - - name: Add content to file repo |
114 | | - pulp.squeezer.file_repository_content: |
115 | | - pulp_url: "{{ remote_pulp_url }}" |
116 | | - username: "{{ remote_pulp_username }}" |
117 | | - password: "{{ remote_pulp_password }}" |
118 | | - repository: "{{ repository_name }}" |
119 | | - present_content: |
120 | | - - relative_path: "{{ found_files.files[0].path | basename }}" |
121 | | - sha256: "{{ file_stats.stat.checksum }}" |
122 | | - register: file_repo_content_result |
123 | | - until: file_repo_content_result is success |
124 | | - retries: 3 |
125 | | - delay: 5 |
126 | | - |
127 | | - - name: Add checksum content to file repo |
128 | | - pulp.squeezer.file_repository_content: |
129 | | - pulp_url: "{{ remote_pulp_url }}" |
130 | | - username: "{{ remote_pulp_username }}" |
131 | | - password: "{{ remote_pulp_password }}" |
132 | | - repository: "{{ repository_name }}" |
133 | | - present_content: |
134 | | - - relative_path: "{{ found_files.files[0].path | basename }}.sha256" |
135 | | - sha256: "{{ checksum_stats.stat.checksum }}" |
136 | | - register: checksum_repo_content_result |
137 | | - until: checksum_repo_content_result is success |
138 | | - retries: 3 |
139 | | - delay: 5 |
140 | | - when: upload_checksum |
141 | | - |
142 | 95 | - name: Create a new publication to point to this version |
143 | 96 | pulp.squeezer.file_publication: |
144 | 97 | pulp_url: "{{ remote_pulp_url }}" |
|
0 commit comments