Skip to content

Commit 85448b8

Browse files
committed
fix stackhpc env when running from genericcloud image
1 parent 6e561c5 commit 85448b8

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
- hosts: podman:!builder
2+
become: yes
3+
gather_facts: false
4+
tags: podman
5+
tasks:
6+
- name: Configure container image registry for unqualified searches to avoid docker.io ratelimits
7+
copy:
8+
dest: /etc/containers/registries.conf.d/003-arcus-unqualfied-overrides.conf
9+
content: |
10+
unqualified-search-registries = ['{{ podman_registry_address | split('/') | first }}', 'registry.access.redhat.com', 'registry.redhat.io', 'docker.io']
11+
12+
[[registry]]
13+
prefix = "{{ podman_registry_address }}"
14+
location = "{{ podman_registry_address }}"
15+
insecure = true
16+
when: "ci_cloud == 'ARCUS'"

environments/.stackhpc/hooks/pre.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,3 @@
1515
- "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/hosts"
1616
- "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/group_vars/all/secrets.yml"
1717
- "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/group_vars/all/test_user.yml"
18-
19-
- hosts: all:!builder
20-
become: yes
21-
gather_facts: false
22-
tags: podman
23-
tasks:
24-
- name: Configure container image registry for unqualified searches to avoid docker.io ratelimits
25-
copy:
26-
dest: /etc/containers/registries.conf.d/003-arcus-unqualfied-overrides.conf
27-
content: |
28-
unqualified-search-registries = ['{{ podman_registry_address | split('/') | first }}', 'registry.access.redhat.com', 'registry.redhat.io', 'docker.io']
29-
30-
[[registry]]
31-
prefix = "{{ podman_registry_address }}"
32-
location = "{{ podman_registry_address }}"
33-
insecure = true
34-
when: "ci_cloud == 'ARCUS'"

0 commit comments

Comments
 (0)