Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infra namespace #107

Merged
merged 3 commits into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/tests/ee_builder/ee_builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
- name: Playbook to configure ansible controller organizations
hosts: localhost
gather_facts: false
collections:
- sean_m_sullivan.tower_utilities
- containers.podman
vars:
# builder_dir: /tmp
ee_registry_dest: quay.io/ssulliva/ee_tools
ee_base_image: quay.io/ssulliva/ee_tools # quay.io/podman/stable
ee_name: ee_tools
ee_bindep:
- python3
- python3-pip
ee_python:
- podman
- ansible-core
- ansible-runner
- ansible-lint
- ansible-builder
ee_collections:
- name: sean_m_sullivan.ee_utilities
- name: containers.podman
ee_append:
- RUN pip3 install ansible-core
- VOLUME /var/lib/docker
- VOLUME /runner
roles:
- infra.ee_utilities.ee_builder
...
38 changes: 38 additions & 0 deletions .github/tests/ee_builder/ee_builder_base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
- name: Playbook to configure ansible controller organizations
hosts: localhost
gather_facts: false
collections:
- sean_m_sullivan.tower_utilities
- containers.podman
vars:
# builder_dir: /tmp
ee_registry_dest: quay.io/ssulliva/ee_tools
ee_name: ee_tools
ee_bindep:
- crun
ee_python:
- podman
- ansible-core
- ansible-runner
- ansible-lint
- ansible-builder
ee_collections:
- name: awx.awx
- name: sean_m_sullivan.tower_utilities
version: 0.3.2-develh
- name: containers.podman
ee_append:
- RUN useradd build; dnf -y module enable container-tools:rhel8; dnf -y update; dnf -y reinstall shadow-utils; dnf -y install podman fuse-overlayfs /etc/containers/storage.conf; rm -rf /var/cache /var/log/dnf* /var/log/yum.*
- RUN useradd podman; echo podman:10000:5000 > /etc/subuid; echo podman:10000:5000 > /etc/subgid;
- RUN chown podman:podman -R /home/podman
- ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/containers.conf /etc/containers/containers.conf
- ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/podman-containers.conf /home/podman/.config/containers/containers.conf
- RUN chown podman:podman -R /home/podman
- RUN sed -i -e 's|^#mount_program|mount_program|g' -e '/additionalimage.*/a "/var/lib/shared",' /etc/containers/storage.conf
- RUN mkdir -p /var/lib/shared/overlay-images /var/lib/shared/overlay-layers; touch /var/lib/shared/overlay-images/images.lock; touch /var/lib/shared/overlay-layers/layers.lock
- RUN sed -i -e '/^cgroup_manager.*/d' -e '/\#\ cgroup_manager\ =/a cgroup_manager = "cgroupfs"' /usr/share/containers/containers.conf
- ENV _BUILDAH_STARTED_IN_USERNS="" BUILDAH_ISOLATION=chroot
roles:
- infra.ee_utilities.ee_builder
...
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# Ignore any included collections
collections/*
!collections/requirements.yml
galaxy.yml
*.tar.gz

# Ignore Vim working files
Expand Down
33 changes: 33 additions & 0 deletions galaxy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
namespace: infra
name: ee_utilities
version: 2.0.1
description: A collection of utility roles for usage with Ansible Execution Enviroments
readme: README.md
authors:
- Sean Sullivan @sean-m-sullivan
- Tom Page @Tompage1994
- David Danielsson @djdanielsson
repository: https://github.com/redhat-cop/ee_utilities
issues: https://github.com/redhat-cop/ee_utilities/issues
build_ignore:
- galaxy.yml.j2
- release.yml
- .github
- .markdownlint.yml
- .ansible-lint
- .yamllint.yml
- .pre-commit-config.yaml
- .gitignore
- .gitattributes
license:
- GPL-3.0-or-later
tags:
- execution
- enviroments
- collection
- utilities
- utils
- ee_utilities
- ee_utils
dependencies: {}