Skip to content

Commit

Permalink
Add Infra Type
Browse files Browse the repository at this point in the history
  • Loading branch information
lumarel authored Nov 14, 2023
1 parent ae9196d commit 43ed26a
Show file tree
Hide file tree
Showing 8 changed files with 119 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
matrix:
type:
- cloud
- infra
- network
- storage
- sync
Expand Down Expand Up @@ -113,6 +114,7 @@ jobs:
- "2.15"
type:
- cloud
- infra
- network
- storage
- sync
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
matrix:
type:
- cloud
- infra
- network
- storage
- sync
Expand Down Expand Up @@ -114,6 +115,7 @@ jobs:
- "2.15"
type:
- cloud
- infra
- network
- storage
- sync
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
matrix:
type:
- cloud
- infra
- network
- storage
- sync
Expand Down Expand Up @@ -109,6 +110,7 @@ jobs:
- "2.15"
type:
- cloud
- infra
- network
- storage
- sync
Expand Down
20 changes: 20 additions & 0 deletions build/requirements-infra.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
git+https://github.com/ansible/ansible-sign

ncclient
paramiko
pykerberos
pyOpenSSL>22.1.0
pypsrp[kerberos,credssp]
pywinrm[kerberos,credssp]
toml
pexpect>=4.5
python-daemon
pyyaml
requests-credssp
six

dnspython
netaddr
netapp-lib
psutil
pycdlib
11 changes: 11 additions & 0 deletions build/requirements-infra.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
collections:
- name: ansible.netcommon
- name: ansible.posix
- name: ansible.utils
- name: ansible.windows
- name: community.crypto
- name: community.general
- name: community.vmware
- name: netapp.ontap
- name: vmware.vmware_rest
28 changes: 28 additions & 0 deletions execution-environment-2.14-infra.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
version: 3
images:
base_image:
name: quay.io/rockylinux/rockylinux:9
dependencies:
ansible_core:
package_pip: ansible-core==2.14.*
ansible_runner:
package_pip: ansible-runner
galaxy: build/requirements-infra.yml
python: build/requirements-infra.txt
system: build/bindep.txt
additional_build_steps:
append_base:
- RUN $PYCMD -m pip install -U pip
prepend_builder:
- RUN dnf install -y epel-release
prepend_final:
- RUN dnf install -y epel-release
append_final:
- COPY --from=quay.io/ansible/receptor:devel /usr/bin/receptor /usr/bin/receptor
- RUN mkdir -p /var/run/receptor
- ADD https://raw.githubusercontent.com/ansible/ansible/ff3ee9c4bdac68909bcb769091a198a7c45e6350/lib/ansible/cli/inventory.py /usr/local/lib/python3.9/site-packages/ansible/cli/inventory.py
- RUN chmod 0644 /usr/local/lib/python3.9/site-packages/ansible/cli/inventory.py
- ADD certs /etc/pki/ca-trust/source/anchors
- RUN update-ca-trust
- RUN git lfs install --system
26 changes: 26 additions & 0 deletions execution-environment-2.15-infra.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
version: 3
images:
base_image:
name: quay.io/rockylinux/rockylinux:9
dependencies:
ansible_core:
package_pip: ansible-core==2.15.*
ansible_runner:
package_pip: ansible-runner
galaxy: build/requirements-infra.yml
python: build/requirements-infra.txt
system: build/bindep.txt
additional_build_steps:
append_base:
- RUN $PYCMD -m pip install -U pip
prepend_builder:
- RUN dnf install -y epel-release
prepend_final:
- RUN dnf install -y epel-release
append_final:
- COPY --from=quay.io/ansible/receptor:devel /usr/bin/receptor /usr/bin/receptor
- RUN mkdir -p /var/run/receptor
- ADD certs /etc/pki/ca-trust/source/anchors
- RUN update-ca-trust
- RUN git lfs install --system
28 changes: 28 additions & 0 deletions execution-environment-infra.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
version: 3
images:
base_image:
name: quay.io/rockylinux/rockylinux:9
dependencies:
ansible_core:
package_pip: ansible-core<2.15
ansible_runner:
package_pip: ansible-runner
galaxy: build/requirements-infra.yml
python: build/requirements-infra.txt
system: build/bindep.txt
additional_build_steps:
append_base:
- RUN $PYCMD -m pip install -U pip
prepend_builder:
- RUN dnf install -y epel-release
prepend_final:
- RUN dnf install -y epel-release
append_final:
- COPY --from=quay.io/ansible/receptor:devel /usr/bin/receptor /usr/bin/receptor
- RUN mkdir -p /var/run/receptor
- ADD https://raw.githubusercontent.com/ansible/ansible/ff3ee9c4bdac68909bcb769091a198a7c45e6350/lib/ansible/cli/inventory.py /usr/local/lib/python3.9/site-packages/ansible/cli/inventory.py
- RUN chmod 0644 /usr/local/lib/python3.9/site-packages/ansible/cli/inventory.py
- ADD certs /etc/pki/ca-trust/source/anchors
- RUN update-ca-trust
- RUN git lfs install --system

0 comments on commit 43ed26a

Please sign in to comment.