Skip to content

Commit 65ef0f9

Browse files
committed
Add support for authenticated registries to 'foreman-proxy'
1 parent a46b8e0 commit 65ef0f9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/roles/foreman_proxy/defaults/main.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
2+
foreman_proxy_container_image: "quay.io/foreman/foreman-proxy"
3+
foreman_proxy_container_tag: "nightly"
4+
foreman_proxy_registry_auth_file: /etc/foreman/registry-auth.json
5+
26
foreman_proxy_name: "{{ ansible_facts['fqdn'] }}"
37
foreman_proxy_https_port: 8443
48
foreman_proxy_url: "https://{{ foreman_proxy_name }}:{{ foreman_proxy_https_port }}"

src/roles/foreman_proxy/tasks/main.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
containers.podman.podman_image:
44
name: "{{ foreman_proxy_container_image }}:{{ foreman_proxy_container_tag }}"
55
state: present
6+
environment:
7+
REGISTRY_AUTH_FILE: "{{ foreman_proxy_registry_auth_file }}"
68

79
- name: Create config secrets
810
ansible.builtin.include_tasks: configs.yaml

0 commit comments

Comments
 (0)