Skip to content

Commit

Permalink
Merge pull request #166 from leogallego/controller_101_aap25_rhel8
Browse files Browse the repository at this point in the history
controller_101_aap25_rhel8
  • Loading branch information
leogallego authored Dec 17, 2024
2 parents 55fcb03 + a640466 commit f2fc873
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 0 deletions.
11 changes: 11 additions & 0 deletions controller_101_aap25_rhel8/ansible-collections.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
collections:

## certified collections matching aap25/ee-supported-rhel8
- name: ansible.posix
- name: ansible.scm
- name: ansible.snmp
- name: ansible.utils
- name: ansible.yang
- name: ansible.controller
- name: ansible.platform
10 changes: 10 additions & 0 deletions controller_101_aap25_rhel8/ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[galaxy]
server_list = automation_hub, release_galaxy

[galaxy_server.automation_hub]
url=https://console.redhat.com/api/automation-hub/content/published/
auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token

[galaxy_server.release_galaxy]
url=https://galaxy.ansible.com/

4 changes: 4 additions & 0 deletions controller_101_aap25_rhel8/bindep.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python3-systemd
systemd-devel
python3.11-devel
gcc
31 changes: 31 additions & 0 deletions controller_101_aap25_rhel8/execution-environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
version: 3
images:
base_image:
name: registry.redhat.io/ansible-automation-platform-25/ee-minimal-rhel8:latest
dependencies:
galaxy: ansible-collections.yml
python: python-packages.txt
system: bindep.txt

additional_build_files:
# Can be used to resolve collections from private automation hub
- src: ansible.cfg
dest: configs

options:
package_manager_path: /usr/bin/microdnf

additional_build_steps:
prepend_base:
- RUN $PYCMD -m pip install --upgrade pip setuptools
prepend_galaxy:
# Add custom ansible.cfg which defines collection install sources
- ADD _build/configs/ansible.cfg /etc/ansible/ansible.cfg
# AH_TOKEN is passed into the build command using a --build-arg
# accept this as an ARG during this stage to reference later
- ARG AH_TOKEN
# Use the above ARG to define an environment variable holding
# the token for resolving private collections
- ENV ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_TOKEN=$AH_TOKEN

2 changes: 2 additions & 0 deletions controller_101_aap25_rhel8/python-packages.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jmespath
pytz

0 comments on commit f2fc873

Please sign in to comment.