Commit Graph

332 Commits

Author SHA1 Message Date
DavHau
e09658c817 secrets: ensure all added/deleted files get committed 2024-04-24 17:26:32 +07:00
Jörg Thalheim
d049067096 factstore: secret backends now can return the path to a secret dynamically
try to move path function out
2024-04-10 15:14:30 +00:00
Jörg Thalheim
73321e230a add flake-parts module for clan 2024-04-03 16:45:06 +02:00
Jörg Thalheim
237fb9234d migrate secrets to new api 2024-03-28 11:02:14 +01:00
lassulus
2893025f3f refactor clanCore.secrets -> clanCore.facts 2024-03-27 16:03:16 +01:00
DavHau
90a504936c checks: add check for rendering docs 2024-03-27 16:59:42 +07:00
Jörg Thalheim
4b37835bc7 localbackup: rename mountHook/umountHook to preMountHook/postUnmountHook 2024-03-26 14:58:37 +01:00
Jörg Thalheim
bb17d74ec6 localbackup: integrate into regression test 2024-03-25 13:26:42 +01:00
clan-bot
b6ef23aba2 Merge pull request 'clanModules: init matrix-synapse' (#1017) from matrix-synapse into main 2024-03-22 11:39:50 +00:00
lassulus
549b3d543b checks/matrix-synapse: init 2024-03-22 12:26:37 +01:00
Jörg Thalheim
4994f1c69d backups: add test for pre and post restore command 2024-03-20 09:32:01 +01:00
Jörg Thalheim
fa94ee4b96 backups: no longer interpret backup interface as bash commands 2024-03-20 09:32:01 +01:00
Jörg Thalheim
8abc7acf60 make backup provider more generic 2024-03-20 08:29:05 +00:00
Jörg Thalheim
27af4da84d refactor backup test to be just a single machine 2024-03-19 14:32:11 +01:00
Jörg Thalheim
ede4d3f6e5 re-format with nixfmt 2024-03-17 19:48:49 +01:00
Jörg Thalheim
a607d0cb86 clan.borgbackup: drop enable option 2024-03-12 11:21:10 +01:00
Jörg Thalheim
d3c09b342d fix container tests 2024-03-07 14:13:11 +01:00
Jörg Thalheim
8edaa9856a fix install test 2024-03-07 14:13:11 +01:00
Jörg Thalheim
800bfd4653 add flash command 2024-03-07 14:13:11 +01:00
Jörg Thalheim
d84b5e7457 add confirmation prompt when installing 2024-03-07 14:13:11 +01:00
Jörg Thalheim
c23a878dfd drop meshnamed from repository
It's not super useful and we can always add it back later if we need it.
2024-03-06 10:02:21 +01:00
lassulus
cfdba84d9d fix pyproject syntax, ignore E731 2024-03-03 06:20:08 +01:00
Jörg Thalheim
5554c4df2e encrypt backups by default 2024-02-22 15:03:22 +01:00
lassulus
73f4b0f4c6 fix borgbackup check
we need to switch to the classical test environment again, because borg
was complaining otherwise
2024-02-12 12:59:32 +01:00
lassulus
a94201c1d0 allow passing of extra_config into machines 2024-02-11 08:40:41 +01:00
Qubasa
d1a1bcf1eb Added --debug flag clan command in nix tests 2024-02-05 13:37:35 +07:00
Jörg Thalheim
584299e199 rename deployment address to target address
This is a prepares having a build server for deployment
2024-02-02 16:39:29 +07:00
lassulus
b6e67aac60 clan-cli install: use new Machine interface, fix mypy error 2024-01-24 15:49:24 +01:00
lassulus
f67e750bbf clan-cli backups: use new machine class for eval 2024-01-24 15:49:12 +01:00
Jörg Thalheim
e93dff98f6 don't garbage collect in nix vm tests
Otherwise we loose our build inputs
2024-01-19 15:02:25 +01:00
Jörg Thalheim
08085d81dd zt-tcp-relay: add clan module + test 2024-01-12 14:25:31 +01:00
Jörg Thalheim
31fcd44351 drop qemu-rutabaga patches 2024-01-12 12:20:29 +01:00
Qubasa
6647c38417 Working test_secrets_generate 2024-01-11 21:48:39 +01:00
Jörg Thalheim
656d94ed4d schema-check: set clanName dummy 2024-01-11 18:02:50 +01:00
Jörg Thalheim
bb26c85573 drop deadcode 2024-01-11 18:00:42 +01:00
Jörg Thalheim
ca0749c76f drop runSchemaTests/runMockApi from checks 2024-01-11 17:53:06 +01:00
DavHau
5cdd9a1817 VMs: port vm_persistence test to python 2024-01-09 14:47:33 +07:00
DavHau
4bdf769075 VMs: persist state folders on host
Done:
- move vm inspect attrs from system.clan.vm.config to clanCore.vm.inspect. This gives us proper name and type checking. everything in `system` is basically freeform, so the previous option definitions were never enforced
- when running VMs, mount state directory from ~/.config/clan/vmstate/{...} from the host to /var/vmstate inside the vm
- create bind mount inside the VM from /var/vmstate/{folder} to / for all folders defined in clanCore.state.<name>.folders

TODOs:
- make sure directories in ~/.config/clan/vmstate never collide (include hash of clan-url, etc.)
- port impure test to python
2024-01-08 18:38:07 +07:00
Qubasa
c6188c17fb pytest: Removed -s flag for CI 2023-12-26 18:20:41 +01:00
lassulus
71469d4c8c checks: add test-installation 2023-12-18 23:41:31 +01:00
lassulus
0490cbb52c checks backups: remove debug output 2023-12-18 23:41:31 +01:00
lassulus
f932dab29c flake: define option for clanInternals
We need this to define test machines in different flake modules
2023-12-18 23:41:31 +01:00
lassulus
dc08be2879 checks: move ssh_keys to lib/ssh 2023-12-16 22:52:18 +01:00
lassulus
be33de4ddd checks backup: limit to linux systems 2023-12-16 22:02:36 +01:00
lassulus
e1094742d3 checks: add backup test 2023-12-16 21:46:19 +01:00
Jörg Thalheim
f81a9ffb69 add wayland-proxy-virtwl module 2023-12-15 14:14:20 +01:00
a-kenji
9d2476111f init: syncthing module
Assumes one `introducer` peer, which can AutoShare configured folders,
with peers that know the `deviceID` of the introducer.
2023-12-07 14:10:15 +01:00
clan-bot
1338282c62 Merge pull request 'backups: add clanCore backup & clan borgbackup module' (#605) from lassulus-backups into main 2023-12-04 16:51:33 +00:00
lassulus
83dd430d03 implement backup cli for borgbackup 2023-12-04 17:47:23 +01:00
Jörg Thalheim
59d1829f4d disallow variable shadowing 2023-11-30 14:31:37 +01:00