Skip to content

Commit

Permalink
Merge pull request #169 from HichamMourad/main
Browse files Browse the repository at this point in the history
update terraform ee
  • Loading branch information
HichamMourad authored Jan 6, 2025
2 parents 54849c6 + 2b57af5 commit c4f4020
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
9 changes: 9 additions & 0 deletions terraform_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/
13 changes: 10 additions & 3 deletions terraform_ee/execution-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ 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:
prepend_base:
- RUN $PYCMD -m pip install --upgrade pip setuptools
Expand All @@ -26,8 +33,8 @@ additional_build_steps:
- 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
# - 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 git
- RUN curl "https://releases.hashicorp.com/terraform/1.10.3/terraform_1.10.3_linux_386.zip" -o "/terraform.zip"
- RUN unzip /terraform.zip -d /terraform
- RUN mv /terraform/terraform /bin

0 comments on commit c4f4020

Please sign in to comment.