Continuous Testing with Molecule, Ansible, and GitHub Actions

  Рет қаралды 22,644

Jeff Geerling

Jeff Geerling

Күн бұрын

Пікірлер: 42
@markberry5994
@markberry5994 4 жыл бұрын
Thanks for making this available. It wasn't available after the live session and I was told that on demand won't be up until after the conference ends. And then it will only be available for a year. Great session.
@jeremys6003
@jeremys6003 4 жыл бұрын
they are usually available minutes after the presentation is over. I see it there now.
@markberry5994
@markberry5994 4 жыл бұрын
@@jeremys6003 yeah, they did appear after a short time. Support gave incorrect info. I find the service they are using a bit janky.
@jeremys6003
@jeremys6003 4 жыл бұрын
@@markberry5994 Agreed but I did just learn the sessions will stay online for 12 months.
@ShawkingIT
@ShawkingIT 4 жыл бұрын
Watched this live and watching again 😀
@kylewalker2949
@kylewalker2949 4 жыл бұрын
Awesome and thorough as always! Thanks for all you do Jeff!
@LorenzoBettini
@LorenzoBettini 3 жыл бұрын
Thank you for this great presentation of rare quality and clarity! And thanks for your book! :)
@DracStarDrac
@DracStarDrac 4 жыл бұрын
Great tutorial sir, and this comes right after almost all sessions of Ansible Fest , did saw you there
@NewAgeDIY
@NewAgeDIY 4 жыл бұрын
As someone that hasn’t got a clue on what your talking about I find myself learning more on each subject you review. Jeff your so far a head of me that your words are zipping past me at the speed of light. It’s as though I have found a book written by a alien race. Very interesting to look at but I haven’t figured out if I have it up side down or right side up. 👇🏽👆🏾
@kenmurphy4259
@kenmurphy4259 4 жыл бұрын
Awesome demo and explanation of Molecule. I need to port this over to a Network Automation scenario
@RobertoPazAr
@RobertoPazAr 4 жыл бұрын
Great video. Very clear as usual.
@1988marksie
@1988marksie 4 жыл бұрын
Why not run the linting in actions rather than molecule? That way it only runs once rather than once per os/playbook test on molecule.
@JeffGeerling
@JeffGeerling 4 жыл бұрын
That's not a bad idea. I still like having the ability to run `molecule lint` though, locally, and having Molecule do that work for me. The lint step only takes 3-5 seconds, but it would shave a little time if I just had a separate job that only did the lint, and the other jobs just ran the molecule test scenario without needing to have ansible-lint and yamllint installed (though they install pretty quick).
@chrisjsewell
@chrisjsewell 4 жыл бұрын
It’s funny you should say this, on github.com/marvel-nccr I am just in the process of updating our roles testing from travis to GH Actions. In this I have also moved the linting from molecule to pre-commit, with the added bonus of using yaml-pretty-format to remove some of the manual work. This gist is essentially what I’m adding: gist.github.com/chrisjsewell/c8b4465e1bc006f483d9313d3a33eff4
@chrisjsewell
@chrisjsewell 4 жыл бұрын
There is also adds continuous deployment added 😀 But it would be great if ansible-galaxy had more focussed support for this, as they have with the TravisCI webhook
@kaivalyashah
@kaivalyashah 4 жыл бұрын
What is the advantage of running daily/monthly tests if you are already testing on every PR and push?
@JeffGeerling
@JeffGeerling 4 жыл бұрын
For many projects, there are days or weeks where nobody is actively working on them, so the regular CI runs can catch things like bitrot (compatibility with newer versions of Ansible, ansible-test, etc.
@shaunmoneil
@shaunmoneil 4 ай бұрын
Is there any chance an updated version of this is anywhere on your todo list? It seems there's been a lot of breaking changes, and I can no longer find any molecule getting-started that actually works with the current changes
@antogx1
@antogx1 Жыл бұрын
awesome content
@AnatoliyPedchenko
@AnatoliyPedchenko 4 жыл бұрын
I don't understand the use of `- import_playbook: ../../main.yml`. Why not just use something like - name: Converge hosts: all roles: - role: my_role
@LKamii
@LKamii 4 жыл бұрын
This is to test a playbook. Sometimes you want to test playbooks with multiple roles or just simple playbooks not utilizing roles.
@roberthealey7238
@roberthealey7238 Жыл бұрын
Would you considered an update on using molecule? There have been a lot of changes recently…
@roberthealey7238
@roberthealey7238 Жыл бұрын
Most notably/irritating is the removal of the lint command from molecule. 😠
@minecraftchest1
@minecraftchest1 2 жыл бұрын
I would like to see you use Gitlab CI.
@mallikbm3990
@mallikbm3990 3 жыл бұрын
Thanks Jeff for such a great presentation. Can this be used to test any codebase not just limited to Ansible roles?
@AlexWillmer
@AlexWillmer 4 жыл бұрын
Introductions finish at time index 5:40
@Maeltht
@Maeltht 4 жыл бұрын
Great Great Tutorial. What is the best way to convert this? I would like to use molecule-ec2 with gitlab-ci
@Fireflierification
@Fireflierification 3 жыл бұрын
Nice video! I am only just getting into this and it can get rather confusing with all options one has. Do you ever use Jenkins for any sorts of purposes in relation to Ansible or does this fulfill your needs?
@JohnMitchellCalif
@JohnMitchellCalif 4 жыл бұрын
thanks so much! Your talk is super-clear and useful as always. I'm producing a screencast very similar to this one, where I'm developing a *Terraform* script using Molecule. M/Ansible is super useful and flexible, I hope that the combination with TF is a "best of both worlds" thing vs a "brain explody" thing :)
@JeffGeerling
@JeffGeerling 4 жыл бұрын
I haven't personally used Terraform with Molecule, but it seems doable! I know a lot of people use Ansible + Terraform.
@omaralikhan4633
@omaralikhan4633 4 жыл бұрын
excuseme, what is your $PS1?
@_XY_
@_XY_ 2 жыл бұрын
Green checkmark good ✅✅
@mayurchavhan8590
@mayurchavhan8590 4 жыл бұрын
Lot of Actions ehhh, Keep on coming...
@_XY_
@_XY_ 2 жыл бұрын
👏👏
@alexalexl245
@alexalexl245 4 жыл бұрын
Hello Jeremy! Please help me how to deploy jenkins server with Ansible, your role in ansible-galaxy don't work :((
@ran_red
@ran_red 3 ай бұрын
Molecule is such a clusterf to use that I just stopped trying to learn and just started using Goss
@webarchitect
@webarchitect 4 жыл бұрын
There's a problem I have on testing ansible role while in development. I can see that you always require role itself by it's name in `converge.yml` in almost all your `ansible-role-*` repos, and it causes INSTALLATION OF THE STABLE VERSION FROM GALAXY. But I don't think this is a good idea! How do you test changes then? I mean, how can you test a branch or PR then? I believe that the best practice should be make `converge.yml` use only current state of the code of the role, where it is. Doing this way you can even run `molecule test` locally before committing and pushing anything. And I also found that it should be something like ``` tasks: - name: "Include this role" include_role: name: "ansible-role-myrole" ``` And this is how it's generated by `molecule init role`. So there are two questions I have: 1. Is there any more nice way to do the same without specifying name "ansible-role-myrole"? 2. Why don't you use this in your repos? Thank you! :)
@webarchitect
@webarchitect 4 жыл бұрын
I got it! You intentionally create the working directory "geerlingguy.php", so the `roles: geerlingguy.php` doesn't go to the galaxy! That's a tricky!
@RavianXReaver
@RavianXReaver 4 жыл бұрын
Faster than Sonic
@JeffGeerling
@JeffGeerling 4 жыл бұрын
SEGAAAAAAAAAAA
@RavianXReaver
@RavianXReaver 4 жыл бұрын
@@JeffGeerling I was really hoping to join today but couldn't keep track of time :( but tomorrow is another day!
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,8 МЛН
Ful Video ☝🏻☝🏻☝🏻
1:01
Arkeolog
Рет қаралды 14 МЛН
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
«Жат бауыр» телехикаясы І 30 - бөлім | Соңғы бөлім
52:59
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 340 М.
Make your Ansible playbooks flexible, maintainable, and scalable
47:26
GitHub Actions Certification - Full Course to PASS the Exam
3:09:59
freeCodeCamp.org
Рет қаралды 217 М.
GitHub Actions Tutorial - Basic Concepts and CI/CD Pipeline with Docker
32:31
TechWorld with Nana
Рет қаралды 1,6 МЛН
You did WHAT with Ansible?!
20:56
Jeff Geerling
Рет қаралды 141 М.
Getting started with Ansible and Molecule testing
15:13
Basecamp 11 Session 2: Smart Contracts
1:37:39
Starknet Foundation
Рет қаралды 44
Rails 8 Development with Dev Containers and rails-new
25:53
Stateless Code
Рет қаралды 61
Let's learn GitHub Actions in a self-hosted Homelab!
23:53
Christian Lempa
Рет қаралды 42 М.
Ful Video ☝🏻☝🏻☝🏻
1:01
Arkeolog
Рет қаралды 14 МЛН