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

Add a way to import EE from remote registries #49

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion group_vars/all/ah_ee_images.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
# ah_ee_images:
# Documentation:
# https://github.com/ansible/galaxy_collection/blob/devel/roles/ee_image/README.md
ah_ee_images: []
# - name:
# state: "{{ target_state }}"
# append: false
Expand Down
2 changes: 1 addition & 1 deletion group_vars/all/ah_ee_namespaces.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# ah_ee_namespaces:
ah_ee_namespaces: []
# - name:
# append:
# groups:
Expand Down
30 changes: 17 additions & 13 deletions group_vars/all/ah_ee_registries.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
---
# ah_ee_registries:
# - name:
# new_name:
# url:
# username:
# password:
# tls_validation:
# proxy_url:
# proxy_username:
# proxy_password:
# download_concurrency:
# rate_limit:
# state: "{{ target_state }}"
# Documentations:
# - https://github.com/ansible/galaxy_collection/blob/devel/roles/ee_registry/README.md
# - https://github.com/ansible/galaxy_collection/blob/devel/roles/ee_registry_index/README.md
# - https://github.com/ansible/galaxy_collection/blob/devel/roles/ee_registry_sync/README.md
ah_ee_registries: []
# - name: registry_redhat_io
# url: https://registry.redhat.io
# username: "{{ rh_username }}"
# password: "{{ rh_password }}"
# tls_validation: true
# download_concurrency: 10
# rate_limit: 8
# proxy_url: ""
# proxy_username: ""
# proxy_password: ""
# wait: true
# state: present
...
22 changes: 16 additions & 6 deletions group_vars/all/ah_ee_repositories.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
---
# ah_ee_repositories:
# - name:
# description:
# readme:
# readme_file:
# state: "{{ target_state }}"
# Documentation:
# https://github.com/ansible/galaxy_collection/tree/devel/roles/ee_repository
ah_ee_repositories: []
# - name: ansible-automation-platform/ee-minimal-rhel8
# readme: "" # mutex with readme_file
# readme_file: "" # mutex with readme
# description: >-
# ee-minimal is an automation execution environment for Red Hat Ansible
# Automation Platform.
# registry: registry_redhat_io
# upstream_name: ansible-automation-platform/ee-minimal-rhel8
# include_tags:
# - 2.16.3-1
# exclude_tags:
# - latest # https://access.redhat.com/solutions/6980874
# state: present
...
25 changes: 25 additions & 0 deletions playbooks/hub_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,31 @@
ansible.builtin.include_role:
name: infra.ah_configuration.publish

- name: Include ee_registry role
ansible.builtin.include_role:
name: infra.ah_configuration.ee_registry
when: ah_ee_registries | length is not match('0')

- name: Include ee_registry_index role
ansible.builtin.include_role:
name: infra.ah_configuration.ee_registry_index
when: ah_ee_registries | length is not match('0')

- name: Include ee_registry_sync role
ansible.builtin.include_role:
name: infra.ah_configuration.ee_registry_sync
when: ah_ee_registries | length is not match('0')

- name: Include ee_repository role
ansible.builtin.include_role:
name: infra.ah_configuration.ee_repository
when: ah_ee_repositories | length is not match('0')

- name: Include ee_image role
ansible.builtin.include_role:
name: infra.ah_configuration.ee_image
when: ah_ee_images | length is not match('0')

- name: Include group role
ansible.builtin.include_role:
name: infra.ah_configuration.group
Expand Down
Loading