Host a DevOps exam using NixOS

Опубликовано: 14 Сентябрь 2022
на канале: NixCon
449
5

Host a DevOps exam using NixOS - Yvan Sraka, Ryan Lahfa

2020-10-17 https://cfp.nixcon.org/nixcon2020/tal...

We will explore how to host a DevOps exam consisting in deploying a Bastion host and a KVM virtual machine per student in order for them to deploy a website which will be auto-validated.

DevOps students have to test their skills in a real-world exam, what's better than scripting this using NixOps in order to reuse it ?

They will be provided with their own user account on the Bastion and access to a jump user account, WireGuard will be autoconfigured on the host to enable access to their KVM host directly.

The main point is controlling the KVM guests "declaratively" and giving choice to the students to choose their guest OS: Debian or NixOS.

We will see how we can easily generate Nix expression from a scripting language, e.g. Python and feed it to NixOS.