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

Add CI to test the playbook #13

Open
St0rmingBr4in opened this issue May 12, 2020 · 3 comments
Open

Add CI to test the playbook #13

St0rmingBr4in opened this issue May 12, 2020 · 3 comments

Comments

@St0rmingBr4in
Copy link
Collaborator

A CI to test that the playbook is running successfully would be nice.

  • Should we use Github action, Travis, Circle CI or other ?
  • We need to test that systemd services works so running the playbook in docker might not be suitable
@geerlingguy
Copy link
Contributor

geerlingguy commented May 12, 2020

I typically use GitHub Actions or Travis CI, so I'm most familiar with those.

For my Ansible playbook testing (which usually requires testing systemd services), I use Molecule and some Docker images that have systemd built-in; for example: https://github.com/geerlingguy/ansible-for-devops/tree/master/molecule

The one part that gets a little tricky is if we want to test a master and node, that would require two containers, and the networking can be a little tricky there.

@St0rmingBr4in
Copy link
Collaborator Author

Molecule seems the way to go indeed.

@fnord123
Copy link

fnord123 commented Jun 6, 2020

One finding from #40 is that not only does the OS of the target machines (that will run k3s) matter, but that the OS of the Ansible host matters, which is obvious in retrospect. So a full featured CI environment should include not only the set of OS that are supported as target devices, but also the set of OS that are supported as Ansible host devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants