vmware builds

This commit is contained in:
2021-06-28 17:49:11 -04:00
parent 833f589d56
commit dfe9dea2ca
79 changed files with 1986 additions and 44 deletions

25
context/Containerfile Normal file
View File

@@ -0,0 +1,25 @@
ARG ANSIBLE_RUNNER_IMAGE=quay.io/ansible/ansible-runner:stable-2.9-devel
ARG PYTHON_BUILDER_IMAGE=quay.io/ansible/python-builder:latest
FROM $ANSIBLE_RUNNER_IMAGE as galaxy
ADD _build/ansible.cfg ~/.ansible.cfg
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
FROM $PYTHON_BUILDER_IMAGE as builder
ADD _build/requirements_combined.txt /tmp/src/requirements.txt
ADD _build/bindep_combined.txt /tmp/src/bindep.txt
RUN assemble
FROM $ANSIBLE_RUNNER_IMAGE
COPY --from=galaxy /usr/share/ansible /usr/share/ansible
COPY --from=builder /output/ /output/
RUN /output/install-from-bindep && rm -rf /output/wheels

View File

@@ -0,0 +1,59 @@
[defaults]
# Use the YAML callback plugin.
stdout_callback = yaml
# Profile
#stdout_callback = profile_tasks
# Turn on pipelining for speed
pipelining = True
# Increase polling speed, to check completed tasks
poll_interval = 5
# Increase forks for more better parallelism. :)
forks = 50
# This can get annoying for non-production environments, so disable it.
host_key_checking = False
# These are annoying during playbook authoring / testing.
retry_files_enabled = False
callback_whitelist = timer,profile_tasks
nocows = 1
deprecation_warnings=False
#display_skipped_hosts=False
# Installs collections into [current dir]/ansible_collections/namespace/collection_name
#collections_paths = ./
force_valid_group_names = always
interpreter_python = auto
# Installs roles into [current dir]/roles/namespace.rolename
roles_path = ./roles
inventory=/Users/ptoal/.ansible/inventories/toallab/inventory
inventory_plugins = host_list, script, yaml, ini, auto
#vault_identity_list = toallab@/home/ptoal/.toallab.vault
[ssh_connection]
scp_if_ssh = True
ssh_args = -o ControlMaster=auto -o ControlPersist=300s -o PreferredAuthentications=publickey,password
control_path = %(directory)s/ansible-ssh-%%h-%%p-%%r
[persistent_connection]
connect_timeout = 60
ssh_type = libssh
[galaxy]
server_list = automation_hub, public, staging
[galaxy_server.published_repo]
url=https://hub.mgmt.toal.ca/api/galaxy/content/published/
token="1a8b080f80ce789e64bd81257cffef3f8368f4b5"
[galaxy_server.automation_hub]
url=https://cloud.redhat.com/api/automation-hub/
auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
token="eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJhZDUyMjdhMy1iY2ZkLTRjZjAtYTdiNi0zOTk4MzVhMDg1NjYifQ.eyJpYXQiOjE2MTg4NDU3NTIsImp0aSI6IjNkYTBjMTRkLTAyMGEtNGYxNC05YTFlLWI4NzA5MWQ4NWM1OSIsImlzcyI6Imh0dHBzOi8vc3NvLnJlZGhhdC5jb20vYXV0aC9yZWFsbXMvcmVkaGF0LWV4dGVybmFsIiwiYXVkIjoiaHR0cHM6Ly9zc28ucmVkaGF0LmNvbS9hdXRoL3JlYWxtcy9yZWRoYXQtZXh0ZXJuYWwiLCJzdWIiOiJmOjUyOGQ3NmZmLWY3MDgtNDNlZC04Y2Q1LWZlMTZmNGZlMGNlNjpwdG9hbCIsInR5cCI6Ik9mZmxpbmUiLCJhenAiOiJjbG91ZC1zZXJ2aWNlcyIsIm5vbmNlIjoiNDVhOTA4NTUtZjNiYi00Mjg5LTlhZWMtY2VmNjQyNWZkZGNmIiwic2Vzc2lvbl9zdGF0ZSI6ImM0ZjRmODc1LTk3ZDMtNDljYy04MzIxLTQ3NGI1ZjFjYTg4NCIsInNjb3BlIjoib3BlbmlkIG9mZmxpbmVfYWNjZXNzIn0.KQCwoU5V46Pmi0F9dcGasHC02cKbh68whrYtCP3lz60"
[galaxy_server.public]
url=https://galaxy.ansible.com/
[galaxy_server.staging]
url=https://hub.mgmt.toal.ca/api/galaxy/content/staging/
token="1a8b080f80ce789e64bd81257cffef3f8368f4b5"

View File

@@ -0,0 +1,10 @@
openssl-devel [platform:rpm compile] # from collection ovirt.ovirt, redhat.rhv
gcc [platform:rpm compile] # from collection ovirt.ovirt, redhat.rhv
libcurl-devel [platform:rpm compile] # from collection ovirt.ovirt, redhat.rhv
libxml2-devel [platform:rpm compile] # from collection ovirt.ovirt, redhat.rhv
python3-pycurl [platform:rpm] # from collection ovirt.ovirt, redhat.rhv
python3-netaddr [platform:rpm] # from collection ovirt.ovirt, redhat.rhv
python3-jmespath [platform:rpm] # from collection ovirt.ovirt, redhat.rhv
python3-passlib [platform:rpm epel] # from collection ovirt.ovirt, redhat.rhv
qemu-img [platform:rpm] # from collection ovirt.ovirt, redhat.rhv
python38-devel # from collection user

View File

@@ -0,0 +1,37 @@
---
collections:
- name: davidban77.gns3
source: https://galaxy.ansible.com
- name: netbox.netbox
source: https://galaxy.ansible.com
- name: freeipa.ansible_freeipa
source: https://galaxy.ansible.com
# source: https://hub.mgmt.toal.ca/api/galaxy/content/published/
- name: ovirt.ovirt
source: https://galaxy.ansible.com
- 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/
- name: community.crypto
source: https://galaxy.ansible.com
- name: onepassword.connect

View File

@@ -0,0 +1,7 @@
gns3fy>=0.5.2 # from collection davidban77.gns3
ovirt-engine-sdk-python>=4.4.10,>=4.4.10 # from collection ovirt.ovirt,redhat.rhv
requests>=2.4.2 # from collection redhat.satellite
ipaddress # from collection redhat.satellite
pynetbox # from collection user
boto3 # from collection user
packaging # from collection user