tcharl.ansible_containerization
Containerization OverlayFS
This role enhances the original geerlinguy docker role and uses the Ansible volumes plus role to add support for the overlayfs driver in Docker.
Requirements
First, run ./configure
to download the necessary requirements into sibling folders.
roles_path = ./roles:./roles/community
Molecule Tests
To run tests, you need to create a Fedora-33 Packer image with cgroup V1 and name it yourpseudo/fedora-33. Here’s how:
git clone [email protected]:chef/bento.git
cd "$(dirname ${BASH_SOURCE[0]})/bento/packer_templates/fedora"
sed -i -e "s/dnf -y install \(.*\)/dnf -y install \1 grubby \&\& grubby --update-kernel=ALL --args=\"systemd.unified_cgroup_hierarchy=0\" --make-default/" bento/packer_templates/fedora/scripts/install-supporting-packages.sh
packer build -var "box_basename=$distroversion" -only=$PACKER_VM_DRIVER $distroversion.json
cd "$(dirname ${BASH_SOURCE[0]})/bento/builds"
vagrant box add $distroversion.virtualbox.box --name platform/$distroshortversion
Alternatively, you can use a pre-built image (tcharl/fedora-33-cgroupv1) available on Vagrant Cloud, so you can simply run molecule test
.
Role Variables
Only dependency variables should be considered, not those of the dependencies. For more details, check the molecule tests.
Dependencies
As mentioned, the key dependencies are:
Example Playbook
Refer to the declared vars in the molecule test, and see their impact.
License
Author Information
- Twitter: @tcharl
- Github: @tcharl
- LinkedIn: Charlie Mordant
Informazioni sul progetto
Sets overlay2 driver for docker on top of an xfs-formatted disk
Installa
ansible-galaxy install tcharl.ansible_containerization
Licenza
other
Download
3.2k
Proprietario
Osgiliath frameworks and all stuff from the Osgiliath corp!