diff --git a/base-de-25/ansible-collections.yml b/base-de-25/ansible-collections.yml new file mode 100644 index 0000000..93c4c9a --- /dev/null +++ b/base-de-25/ansible-collections.yml @@ -0,0 +1,19 @@ +--- +collections: + - name: ansible.eda + version: 1.4.3 + # - name: cloin.eda + # version: 2.1.16 + - name: cloin.datadog + version: 1.0.5 + - name: cloin.prometheus + version: 0.1.0 + - name: ansible.utils + version: 3.0.0 + - name: dynatrace.event_driven_ansible + version: 1.2.0 + - name: crowdstrike.falcon + version: 4.2.0 + - name: cloin.eda + version: 2.1.19 + - name: kubealex.eda diff --git a/base-de-25/ansible.cfg b/base-de-25/ansible.cfg new file mode 100644 index 0000000..0d1febf --- /dev/null +++ b/base-de-25/ansible.cfg @@ -0,0 +1,9 @@ +[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/ \ No newline at end of file diff --git a/base-de-25/execution-environment.yml b/base-de-25/execution-environment.yml new file mode 100644 index 0000000..1d5f3be --- /dev/null +++ b/base-de-25/execution-environment.yml @@ -0,0 +1,31 @@ +--- +version: 3 +images: + base_image: + name: 'registry.redhat.io/ansible-automation-platform-25/de-minimal-rhel8:latest' + +additional_build_files: + # Can be used to resolve collections from private automation hub + - src: ansible.cfg + dest: configs + +dependencies: + galaxy: ansible-collections.yml + python: python-packages.txt + system: system-packages.txt + +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 diff --git a/base-de-25/python-packages.txt b/base-de-25/python-packages.txt new file mode 100644 index 0000000..adbe6bb --- /dev/null +++ b/base-de-25/python-packages.txt @@ -0,0 +1,4 @@ +aiohttp +aiokafka +requests +aiomqtt diff --git a/base-de-25/system-packages.txt b/base-de-25/system-packages.txt new file mode 100644 index 0000000..f647b29 --- /dev/null +++ b/base-de-25/system-packages.txt @@ -0,0 +1,4 @@ +pkgconf-pkg-config [platform:rpm] +systemd-devel [platform:rpm] +gcc [platform:rpm] +python39-devel [platform:rpm] \ No newline at end of file