docs: the full migration plan; ci: deploy NixOS hosts
All checks were successful
nixos / nixos (push) Successful in 55s
All checks were successful
nixos / nixos (push) Successful in 55s
MIGRATION.md is now the complete plan for moving production from Ansible and Terraform to NixOS and OpenTofu: what was rehearsed and how, the preparation that needs no downtime, one runbook per host with its checks and rollback, the clean-up including the branch renames, and the rules for running restored production data on test servers. The NixOS workflow now deploys on main, ops first, building on each host. It checks /etc/NIXOS before touching a host, so it skips both servers until their conversion and cannot reach a Debian one. known_hosts moves to the repository root for it. Renovate learns the Nix files: version comments, the runner's job images and flake.lock (weekly). The Ansible patterns stay until Ansible is gone. Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
fa46d26f89
commit
ebbf458983
1 changed files with 434 additions and 210 deletions
|
|
@ -14,11 +14,22 @@
|
|||
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\s+[a-z_0-9]+:\\s*\"?(?<currentValue>[^\"\\s]+)\"?"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Versions in the NixOS config, marked the same way: # renovate: ... above `name = \"<image>:<tag>\";` or `name = \"<version>\";`",
|
||||
"customType": "regex",
|
||||
"managerFilePatterns": [
|
||||
"/^nixos/.+\\.nix$/"
|
||||
],
|
||||
"matchStrings": [
|
||||
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\s+[A-Za-z_0-9]+ = \"(?:[^\"]*:)?(?<currentValue>[^\":]+)\";"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Runner job images, pinned in the labels: docker://<image>:<tag>",
|
||||
"customType": "regex",
|
||||
"managerFilePatterns": [
|
||||
"/^ansible/roles/forgejo_runner/(templates/config\\.yaml\\.j2|tasks/main\\.yaml)$/"
|
||||
"/^ansible/roles/forgejo_runner/(templates/config\\.yaml\\.j2|tasks/main\\.yaml)$/",
|
||||
"/^nixos/hosts/asxpio-services/runner\\.nix$/"
|
||||
],
|
||||
"matchStrings": [
|
||||
"docker://(?<depName>[a-z0-9./_-]+):(?<currentValue>[A-Za-z0-9._-]+)"
|
||||
|
|
@ -37,7 +48,8 @@
|
|||
{
|
||||
"description": "Runner labels name their line (node-20, debian-12, python-3.11): never leave it",
|
||||
"matchFileNames": [
|
||||
"ansible/roles/forgejo_runner/**"
|
||||
"ansible/roles/forgejo_runner/**",
|
||||
"nixos/hosts/asxpio-services/runner.nix"
|
||||
],
|
||||
"matchUpdateTypes": [
|
||||
"major"
|
||||
|
|
@ -47,7 +59,8 @@
|
|||
{
|
||||
"description": "python-3.11 / python-3.12 labels stay on their minor line",
|
||||
"matchFileNames": [
|
||||
"ansible/roles/forgejo_runner/**"
|
||||
"ansible/roles/forgejo_runner/**",
|
||||
"nixos/hosts/asxpio-services/runner.nix"
|
||||
],
|
||||
"matchPackageNames": [
|
||||
"python"
|
||||
|
|
@ -57,7 +70,8 @@
|
|||
},
|
||||
{
|
||||
"matchFileNames": [
|
||||
"ansible/roles/forgejo_runner/**"
|
||||
"ansible/roles/forgejo_runner/**",
|
||||
"nixos/hosts/asxpio-services/runner.nix"
|
||||
],
|
||||
"matchPackageNames": [
|
||||
"python"
|
||||
|
|
@ -75,7 +89,8 @@
|
|||
{
|
||||
"description": "Both label files carry the same pins: one PR per image",
|
||||
"matchFileNames": [
|
||||
"ansible/roles/forgejo_runner/**"
|
||||
"ansible/roles/forgejo_runner/**",
|
||||
"nixos/hosts/asxpio-services/runner.nix"
|
||||
],
|
||||
"groupName": "runner job images",
|
||||
"matchUpdateTypes": [
|
||||
|
|
@ -101,5 +116,14 @@
|
|||
"The deploy job that applies this shows as cancelled; the next run confirms the result."
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"nix": {
|
||||
"enabled": true
|
||||
},
|
||||
"lockFileMaintenance": {
|
||||
"enabled": true,
|
||||
"schedule": [
|
||||
"before 6am on monday"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue