f5db62e053
Add a basic integration test ( #323 )
...
This PR adds a basic deployment test to the repository. This test will, in a NixOS test, run a deployer VM and a target VM, and check that we manage to run `nixops4 apply` on the deployer VM to change things on the target VM. The ideas are all @roberth 's and this test has been extremely heavily inspired by https://github.com/nixops4/nixops4-nixos/blob/main/test/default/nixosTest.nix .
Reviewed-on: Fediversity/Fediversity#323
Reviewed-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
2025-04-30 15:03:36 +02:00
b645660118
deployment module: set configuration explicitly ( #315 )
...
this change is a no-op (it merely indents the option definitions by one,
by setting `config` explicitly) and prepares an addition of option
declarations that would otherwise be lost in the huge diff.
Reviewed-on: Fediversity/Fediversity#315
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
2025-04-22 11:30:33 +02:00
af3b2a62fd
Create a configuration resource even if the service is disabled
2025-04-02 15:06:17 +02:00
4db91bd0b7
Transmit initial user from JSON to services
2025-02-28 10:57:31 +01:00
f34f2e45ab
Get panel config as a block - use eg. mastodon.enable
2025-02-27 11:43:44 +01:00
07b3cd90d7
Make clearer what nixos.module
is
2025-02-27 11:39:07 +01:00
ea98ccebfc
Very vague and minimalistic description of deployment/
2025-02-27 11:35:55 +01:00
c66889f58f
Better naming of makeMakeDeployment
arguments
2025-02-27 11:35:55 +01:00
e27cc6e96a
Generalise test deployment; get config from JSON
2025-02-27 11:35:54 +01:00
3f9c174d97
Get rid of the deployment/
directory
2025-02-25 11:57:20 +01:00
fb5bed9042
Remove other host keys
2025-02-25 11:57:20 +01:00
636e4636f7
Add test machines
2025-02-25 11:57:20 +01:00
0bea2d0bb1
Mark deployment/
as deprecated
2025-02-21 20:24:41 +01:00
398dc05ad5
Rename provisioning host keys to match nixosConfiguration
entries
2025-02-21 20:24:40 +01:00
57e6127a7a
Move provision.sh
and remove.sh
to infra/
2025-02-21 20:24:40 +01:00
f8ec8e7d93
Decouple id and name
2025-02-21 20:24:40 +01:00
d77b04ec18
Apply makeInstallerIso
to conf in provision.sh
2025-02-21 20:24:40 +01:00
bf0a35de6c
makeInstaller
-> makeInstallerIso
2025-02-21 20:24:40 +01:00
9e95287715
Make API URL an argument of the provisioning script
2025-02-21 20:24:40 +01:00
cd83536e2f
Allow Garage and services to run on different machines
2025-02-21 17:52:50 +01:00
1eeaa04df6
Introduce fediversity.garage.enable
2025-02-21 17:52:50 +01:00
a5d226ed22
Get rid of fediversity.enable
2025-02-21 17:52:50 +01:00
78a85b27ff
Put the S3 secrets into files
...
...but not everywhere, there remains some FIXMEs where ultimately the
secrets do get into the store.
2025-02-21 17:52:50 +01:00
b547912794
Make access and secret keys parameters
2025-02-21 17:52:50 +01:00
a1cfcf1d71
Same treatment for Peertube
2025-02-21 17:52:50 +01:00
c6fb52915a
More clean up of the deployment flake
...
Co-authored-by: Kiara Grouwstra <kiara@procolix.eu>
2025-02-21 10:01:06 +01:00
df182d5a67
Follow changes in removal script
2025-02-21 10:01:06 +01:00
9611e4ff9a
Support more configuration in the .proxmox
file
2025-02-21 10:01:06 +01:00
5cc86bff94
Move makeInstaller
to infra/
2025-02-21 10:01:05 +01:00
dc3a4dc4e8
Merge machine
argument into the attrset argument
2025-02-21 10:01:05 +01:00
d7bcb45789
Clean up code in deployment/
2025-02-21 10:01:05 +01:00
1df61bbe4d
remove trailing whitespace from deployment/README.md ( #171 )
...
Reviewed-on: Fediversity/Fediversity#171
Reviewed-by: Kevin Muller <kevin@procolix.com>
Co-authored-by: Kiara Grouwstra <kiara@procolix.eu>
Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
2025-02-20 15:11:33 +01:00
446e866cb2
remove the currently unused RSA keys ( #165 )
...
Reviewed-on: Fediversity/Fediversity#165
Reviewed-by: Nicolas Jeannerod <nicolas.jeannerod@moduscreate.com>
2025-02-20 12:43:48 +01:00
fb64d2b9c9
convert readmes from org to markdown
2025-02-19 20:23:48 +01:00
18a14d29ab
Fix vm_id
-> vmid
...
It probably was changed by mistake beforehand.
2025-02-19 18:29:31 +01:00
797ce362bd
Add debug mode to provisioning script
2025-02-19 18:29:31 +01:00
5f29388776
printf + exit -> die
2025-02-19 18:29:31 +01:00
253a5ad8fa
Fix missing space, add missing quotes
2025-02-19 18:29:31 +01:00
807808ed00
bash scripts: snake-case variables, deduplicate $RANDOM, satisfy LSP
...
Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
2025-02-19 18:29:31 +01:00
f547f451e1
Remove ISOs after provisioning
2025-01-29 15:35:49 +01:00
be1065c2d3
Fix paths to provisioning scripts
2025-01-27 15:26:38 +01:00
e45441f12a
Clean up section on Fediversity Proxmox
2025-01-27 15:26:38 +01:00
5aa6ca3ae6
Small clean up around VM ids
2025-01-27 11:57:29 +01:00
bdf43717fa
update VPN docs to show WireGuard config on NixOS
2025-01-24 12:27:45 +01:00
69cad1592e
Rename “default” NixOps4 deployment
2024-11-18 10:56:38 +01:00
3765a7e049
Mention the scripts in the README
2024-11-17 00:07:21 +01:00
94e5356886
Parallelise removal script
2024-11-17 00:07:20 +01:00
74bf29bb75
Parallelise provisioning script
2024-11-17 00:07:20 +01:00
56d125a5b0
Rework and cleanup provisioning script
2024-11-17 00:07:20 +01:00
95389bb615
Remove useless piece of code
...
Ids must start at 100 because of Proxmox.
2024-11-17 00:07:20 +01:00