Ubuntu 20.04 released a tool named Autoinstallation. Autoinstallation is comparable to cloud-init that several cloud offerings support for configuring virtual machines (VM). Autoinstallation achieves a similar configuration for a no-cloud environment.
We can use VirtualBox to create a new VM that is automatically configured with our Autoinstallation configuration.
I’ve helped several teams create and support their Continuous Integration (CI) processes. My approach to CI has changed over the years as I’ve learned from mistakes and incidents.
I hope these lessons help you prevent making the same mistakes I have.
1. Keep CI config files slim The less configuration and code that only exists in files such as .
Interactive rebase is the core of my Git process for creating a neat history to aid code-reviews and my future self with bisecting through history. I rebase so much that some aspects of Git become tedious, but fortunately, Git has a few features and configuration options to help rebase quicker.
Konstraint is a tool for converting Open Policy Agent policies written in rego into ConstraintTemplates and Constraints for Gatekeeper. In Open Policy Agent: Introduction to Gatekeeper, we learned how to deploy Gatekeeper and create ConstraintTemplates and Constraints. Then in Open Policy Agent: Unit Testing Gatekeeper Policies, we copied rego from ConstraintTemplates to validate syntax and unit test policies.
Previously, in Open Policy Agent: Introduction to Gatekeeper, we deployed Gatekeeper in a Kubernetes cluster and created some sample ConstraintTemplates and constraints to enforce Open Policy Agent (OPA) policies. Now, we’ll tackle creating unit tests for our policies.
Download opa CLI Open Policy Agent provides a CLI named opa.