Skip to content

Commit

Permalink
Add a way to import EE from remote registries (#49)
Browse files Browse the repository at this point in the history
* Add way to import EE from remote registries

* Fix undefined variables
  • Loading branch information
laurent-indermuehle authored Mar 13, 2024
1 parent 8076d22 commit 4854264
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 21 deletions.
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

0 comments on commit 4854264

Please sign in to comment.