Rapidly Build & Test Ansible Roles with Molecule + Docker

Описание к видео Rapidly Build & Test Ansible Roles with Molecule + Docker

🎓 My new Ansible Course (Productive with Ansible, 2024) now in Early Access: https://learn.toptechskills.com/cours...

Molecule is a tool originally developed by retr0h and now maintained by Ansible/Red Hat that automates testing of Ansible roles. Instead of a highly manual process, testing a role against any number of distros is as simple as running molecule test. Molecule has many drivers for testing your role on different kinds of infrastructure such as Docker, Vagrant and EC2. I suggest using the Docker driver since spinning up and tearing down instances is orders of magnitude faster than other drivers.

In this tutorial video I build a super simple redis role to show how you can use Molecule for both development and testing.

1:09 -- Setup & Get Started
2:26 -- Empty Molecule Project
4:05 -- Test the New Role
7:08 -- Role Development Workflow
8:49 -- Running on Multiple Platforms
10:02 -- Start Developing Redis Role
11:49 -- Write Your First Test
14:07 -- Manage Services on Docker
16:07 -- Converge On New Images
16:49 -- Test Services Are Started
17:50 -- Using a Non-Root User

MORE INFO

✅ READ THE IN-DEPTH TUTORIAL HERE == http://bit.ly/2SBKQVJ
✅ Jeff Geerling's Images on Docker Hub == https://hub.docker.com/u/geerlingguy
✅ My Images on Docker Hub == https://hub.docker.com/u/percygrunwald
✅ Molecule on GitHub == https://github.com/ansible/molecule/
✅ TestInfra on ReadTheDocs == https://testinfra.readthedocs.io/en/l...

SETUP/EDITOR/IDE

✅ Visual Studio Code (https://code.visualstudio.com/)
✅ Ansible extension by Microsoft (http://bit.ly/2SdnqoK).

Thanks for watching and hope it's entertaining/useful for you! Hit me up in the comments if you have any questions or feedback 💪.

Related & Channel
▶️ http://bit.ly/2VWid3D == Playlist of all Ansible videos
⭐️ http://bit.ly/2HavqCu == Subscribe to our YouTube Channel

Our Site & Socials
🌐 http://bit.ly/2shtKwZ == TopTechSkills.com
🐦 http://bit.ly/2RkgZkk == @TopTechSkills on Twitter
🐦 http://bit.ly/2AA19aN == @PercyGrunwald on Twitter
😃 http://bit.ly/2ACQgEW == @TopTechSkills on Facebook
🕹 http://bit.ly/2CWR3ST == @PercyGrunwald on Twitch

Комментарии

Информация по комментариям в разработке