From 4715a28fdcd87440400d17154bfa361d99db29cc Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 12 May 2026 15:06:28 +0300 Subject: Add local vm for testing, adjust configs --- principles.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 principles.md (limited to 'principles.md') diff --git a/principles.md b/principles.md new file mode 100644 index 0000000..245846c --- /dev/null +++ b/principles.md @@ -0,0 +1,7 @@ +# Migration principles + +1. Jail definitions should be localized, e.g. jails/ingress.yml. A jail definition should define zfs mounts, nullfs mounts, files to install, networking scripts (pre_start etc) to insert into jail.conf. +2. Jails should be defined as hosts in the inventory file. To reach them, ansible should use a ssh conn to the host and then `jexec $jailname`. +3. Each structure in the jail definition yml (e.g. `pkg: ["nginx"]`) should be handled by an ansible role that activates when a relevant structure is defined in the jail definition. +4. Both the host (pursotin) and the jails inside it should be defined in this project, so ansible should be configured to use correct hosts and correct connection methods depending on host. +5. The main playbooks should be very light and just dispatch. -- cgit v1.3