Skip to content

Commit

Permalink
Merge branch 'main' into netbox-aap25-241030
Browse files Browse the repository at this point in the history
  • Loading branch information
leogallego authored Oct 31, 2024
2 parents 41bee84 + c72c572 commit b0214ed
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 13 deletions.
9 changes: 9 additions & 0 deletions aws_ee/ansible.cfg
Original file line number Diff line number Diff line change
@@ -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/
4 changes: 4 additions & 0 deletions aws_ee/bindep.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
unzip
dnf
systemd-devel [compile platform:rhel-8]
python3.11-devel [compile platform:rhel-8]
pkgconf-pkg-config [compile platform:rhel-8]
gcc [compile platform:rhel-8]
33 changes: 23 additions & 10 deletions aws_ee/execution-environment.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
---
version: 1

build_arg_defaults:
EE_BASE_IMAGE: 'registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8'
version: 3
images:
base_image:
name: registry.redhat.io/ansible-automation-platform-25/ee-minimal-rhel8:latest

dependencies:
galaxy: requirements.yml
python: requirements.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:
append:
- RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "/awscliv2.zip"
- RUN unzip /awscliv2.zip -d /aws
- RUN /aws/aws/install
- RUN curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/linux_64bit/session-manager-plugin.rpm" -o "/session-manager-plugin.rpm"
- RUN dnf install -y /session-manager-plugin.rpm
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
7 changes: 7 additions & 0 deletions aws_ee/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
pysnow
requests
netaddr
#
# When updating the minimal requirements please also update
# - tests/unit/constraints.txt
# - tests/integration/constraints.txt
# - tests/integration/targets/setup_botocore_pip
botocore>=1.31.0
boto3>=1.28.0
4 changes: 3 additions & 1 deletion aws_ee/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
collections:
- name: servicenow.itsm
- name: amazon.aws
- name: ansible.controller
- name: ansible.platform
- name: ansible.posix
- name: awx.awx
- name: amazon.cloud
- name: community.aws
- name: cloud.terraform
version: 1.0.0
1 change: 0 additions & 1 deletion network-netbox-eda-ee/execution-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ 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
Expand Down
2 changes: 1 addition & 1 deletion workshop_ee/execution-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: 3
images:
base_image:
name: 'registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel8:latest'
name: 'registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:latest'

additional_build_files:
# Can be used to resolve collections from private automation hub
Expand Down
1 change: 1 addition & 0 deletions workshop_ee/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
petname==2.6
netaddr

0 comments on commit b0214ed

Please sign in to comment.