Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate default pulp-api image setting to common role #30

Open
rooftopcellist opened this issue Feb 14, 2024 · 0 comments
Open

Consolidate default pulp-api image setting to common role #30

rooftopcellist opened this issue Feb 14, 2024 · 0 comments

Comments

@rooftopcellist
Copy link
Member

Currently, we run the following tasks in the api, content, and worker roles, all of which use the same image. We should consolidate this and move it to the common role.

- name: Set default pulp-api image
  set_fact:
    _default_image: "{{ _image }}:{{ _image_version }}"

- name: Set user provided pulp-api image
  set_fact:
    _custom_image: "{{ image }}:{{ image_version }}"
  when:
    - image is defined and image != ''
    - image_version is defined and image_version != ''

- name: Set pulp-api image URL
  set_fact:
    _image: "{{ _custom_image | default(lookup('env', 'RELATED_IMAGE_PULP')) | default(_default_image, true) }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant