tcharl.ansible_containerization

容器化 OverlayFS

  • Galaxy: Ansible Galaxy
  • Lint & requirements: Molecule
  • 测试: Build Status
  • 聊天: Join the chat at https://gitter.im/OsgiliathEnterprise/platform

此角色增强了原始的 geerlinguy docker 角色,并使用 Ansible volumes plus 角色来添加 Docker 的 overlayfs 驱动支持配置。

要求

您需要首先执行 ./configure,这将下载兄弟文件夹中的要求。 roles_path = ./roles:./roles/community

Molecule 测试

要执行测试,请构建您自己的 Fedora-33 Packer 镜像,启用 cgroup V1,并将其命名为 yourpseudo/fedora-33。 步骤如下:

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

然而,已经将具有这些属性的基础镜像 (tcharl/fedora-33-cgroupv1) 发布到 Vagrant Cloud,因此执行 molecule test 就足够了!

角色变量

只有 依赖变量,不包括依赖项的变量,更多信息请参见 molecule 测试

依赖项

如前所述:

示例剧本

请查看 在 molecule 测试中声明的变量,以及 它们的影响

许可证

Apache-2

作者信息

关于项目

Sets overlay2 driver for docker on top of an xfs-formatted disk

安装
ansible-galaxy install tcharl.ansible_containerization
许可证
other
下载
3.2k
拥有者
Osgiliath frameworks and all stuff from the Osgiliath corp!