Build Windows Templates in RHV
This commit is contained in:
0
simple_env/bindep.txt
Normal file
0
simple_env/bindep.txt
Normal file
11
simple_env/context/Containerfile
Normal file
11
simple_env/context/Containerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
ARG ANSIBLE_RUNNER_IMAGE=quay.io/ansible/ansible-runner:devel
|
||||
ARG PYTHON_BUILDER_IMAGE=quay.io/ansible/python-builder:latest
|
||||
|
||||
FROM $ANSIBLE_RUNNER_IMAGE as galaxy
|
||||
|
||||
ARG ANSIBLE_GALAXY_CLI_COLLECTION_OPTS=
|
||||
ADD _build /build
|
||||
|
||||
WORKDIR /build
|
||||
RUN ansible-galaxy role install -r requirements.yml --roles-path /usr/share/ansible/roles
|
||||
RUN ansible-galaxy collection install $ANSIBLE_GALAXY_CLI_COLLECTION_OPTS -r requirements.yml --collections-path /usr/share/ansible/collections
|
||||
28
simple_env/context/_build/requirements.yml
Normal file
28
simple_env/context/_build/requirements.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
collections:
|
||||
- name: davidban77.gns3
|
||||
source: https://galaxy.ansible.com
|
||||
|
||||
- name: netbox.netbox
|
||||
source: https://galaxy.ansible.com
|
||||
|
||||
- name: freeipa.ansible_freeipa
|
||||
source: https://hub.mgmt.toal.ca/api/galaxy/content/published/
|
||||
|
||||
- name: redhat.rhv
|
||||
source: https://cloud.redhat.com/api/automation-hub/
|
||||
|
||||
- name: redhat.satellite
|
||||
source: https://cloud.redhat.com/api/automation-hub/
|
||||
|
||||
- name: community.general
|
||||
source: https://galaxy.ansible.com
|
||||
|
||||
- name: jjaswanson4.install_satellite
|
||||
source: https://galaxy.ansible.com
|
||||
|
||||
- name: jjaswanson4.configure_satellite
|
||||
source: https://galaxy.ansible.com
|
||||
|
||||
- name: redhat.satellite
|
||||
source: https://cloud.redhat.com/api/automation-hub/
|
||||
12
simple_env/execution-environment.yml
Normal file
12
simple_env/execution-environment.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
version: 1
|
||||
dependencies:
|
||||
galaxy: requirements.yml
|
||||
python: requirements.txt
|
||||
system: bindep.txt
|
||||
|
||||
additional_build_steps:
|
||||
prepend: |
|
||||
RUN pip3 install --upgrade pip setuptools
|
||||
append:
|
||||
- RUN ls -la /etc
|
||||
1
simple_env/requirements.txt
Normal file
1
simple_env/requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
pynetbox
|
||||
28
simple_env/requirements.yml
Normal file
28
simple_env/requirements.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
collections:
|
||||
- name: davidban77.gns3
|
||||
source: https://galaxy.ansible.com
|
||||
|
||||
- name: netbox.netbox
|
||||
source: https://galaxy.ansible.com
|
||||
|
||||
- name: freeipa.ansible_freeipa
|
||||
source: https://hub.mgmt.toal.ca/api/galaxy/content/published/
|
||||
|
||||
- name: redhat.rhv
|
||||
source: https://cloud.redhat.com/api/automation-hub/
|
||||
|
||||
- name: redhat.satellite
|
||||
source: https://cloud.redhat.com/api/automation-hub/
|
||||
|
||||
- name: community.general
|
||||
source: https://galaxy.ansible.com
|
||||
|
||||
- name: jjaswanson4.install_satellite
|
||||
source: https://galaxy.ansible.com
|
||||
|
||||
- name: jjaswanson4.configure_satellite
|
||||
source: https://galaxy.ansible.com
|
||||
|
||||
- name: redhat.satellite
|
||||
source: https://cloud.redhat.com/api/automation-hub/
|
||||
Reference in New Issue
Block a user