Commit Graph

358 Commits

Author SHA1 Message Date
Brian McGee
8b518b78cd fix(data-mesher): default bootstrap nodes 2025-05-13 11:48:01 +01:00
pinpox
cea0d659c3 Remove unnecessary file 2025-05-12 15:54:50 +02:00
pinpox
70a991f4f2 migrate admin module 2025-05-12 15:54:49 +02:00
Jörg Thalheim
837d539826 data-mesher: don't set owner for public_key 2025-05-12 12:06:05 +02:00
Mic92
655c7e4eed Merge pull request 'Avoid a few cases of chmod-after-creation' (#3438) from tangential/clan-core:it-s_a_race into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3438
2025-05-04 07:08:43 +00:00
a-kenji
a0ec0a0bea clanModules/password: Fix vars documentation 2025-04-30 11:55:23 +02:00
a-kenji
287cd4b42a clanModules/iwd: Migrate from facts to vars 2025-04-29 13:55:45 +02:00
Jonathan Thiessen
9f745ff637 Avoid a few cases of chmod-after-creation 2025-04-28 17:11:21 -07:00
Johannes Kirschbauer
7708df94c0 fix: typo in auto-upgrade clanModule 2025-04-27 12:04:03 +02:00
Mic92
3e31cca267 Merge pull request 'clanModules/vaultwarden: Migrate from facts to vars' (#3394) from kenji/clan-core:ke-vaultwarden-migrate-to-vars into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3394
2025-04-23 11:32:52 +00:00
a-kenji
68170ec9fb clanModules/vaultwarden: Migrate from facts to vars
Closes: #3389
2025-04-23 13:01:52 +02:00
a-kenji
6531de6c07 clanModules/syncthing: Improve vars 2025-04-23 10:50:45 +00:00
a-kenji
38ff3f5a14 clanModules/syncthing: Group vars files 2025-04-23 10:50:45 +00:00
kenji
2d8847337c Merge pull request 'syncthing: Migrate from facts to vars' (#3388) from kenji/clan-core:syncthing into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3388
2025-04-23 06:25:12 +00:00
a-kenji
356b26e690 chore: treefmt 2025-04-23 08:00:16 +02:00
a-kenji
ca5ddcee93 clanModules/syncthing: Fix vars usage
This fixes vars usage in the syncthing module.
Also removes some of the assumptions that were made in order for
`sysuser` to work, as we now use `userborn` for the vm functionality.
2025-04-23 07:40:44 +02:00
Jörg Thalheim
cbde58e1d8 zerotier: migrate from facts to vars 2025-04-22 18:20:35 +02:00
Jörg Thalheim
55b425670c syncthing: warn that this module is currently not usuable without vms 2025-04-22 09:45:37 +02:00
Jörg Thalheim
3a1b49eaf8 syncthing: migrate to new inventory system 2025-04-22 09:45:37 +02:00
Jörg Thalheim
a1a515e6d9 state-version: fix default of config.system.stateVersion
fixes https://git.clan.lol/clan/clan-core/issues/3360
2025-04-21 15:37:22 +00:00
Jörg Thalheim
1049cc6edd mumble: fix certificate generator
no idea how this ever worked before.
2025-04-16 18:49:24 +02:00
Jörg Thalheim
16752e3e11 mumble: migrate to inventory 2025-04-16 18:49:24 +02:00
Jörg Thalheim
e956f2773e mumble: remove duplicate nixos test 2025-04-16 18:49:24 +02:00
Jörg Thalheim
50eff54001 mumble: migrate to vars 2025-04-16 18:49:24 +02:00
Jörg Thalheim
c05827abcc moonlight/sunshine: mark as unusuable outside of our VM
we depend on VM user, which only will work with our vm nixos module
2025-04-16 17:48:09 +02:00
Jörg Thalheim
bb7617fe2a migrate moonlight/sunshine to vars 2025-04-16 17:48:09 +02:00
RTUnreal
3f4ff94af6 clanModules: fix shellcheck errors 2025-04-09 19:44:00 +02:00
RTUnreal
2a2b8fb947 clanModules/borgbackup: fix shellcheck errors 2025-04-09 19:44:00 +02:00
RTUnreal
644147e2d4 clanModules/root-password: fix shellcheck errors 2025-04-09 19:44:00 +02:00
Jörg Thalheim
6ba2d7fc02 user-password: fix variables beeing incorrect 2025-04-08 09:37:05 +00:00
Jörg Thalheim
f24df0e33b user-password: migrate to vars 2025-04-08 10:16:59 +02:00
DavHau
085a8c2050 remove some references to config in options 2025-04-03 17:29:07 +07:00
DavHau
c411e8bddc remove definitions of clan.core.settings.machine.name on tests 2025-04-03 17:29:07 +07:00
Pablo Ovelleiro Corral
8ed186ce55 data-mesher: init module
Co-authored-by: Brian McGee <brian@bmcgee.ie>
2025-03-29 13:49:41 +00:00
Qubasa
5c62f113fe sshd: Fix missing cfg.fqdn regression 2025-03-21 17:45:25 +01:00
Michael Hoang
effcbaaa0f sshd: trust own ed25519 host key as a known host 2025-03-20 18:40:32 +09:00
a-kenji
1934384e3b clanModules/mycelium: Allow by default, if adding the module 2025-03-09 23:49:03 +00:00
Qubasa
434e38779e clan-cli: treefmt fix to iwd module 2025-03-07 14:26:37 +01:00
Guilhem Saurel
a135510047 Fix iwd space handling
ref man iwd.network:

> Key-value lines contain a setting key, an equal sign and the value of
> the setting. Whitespace preceding the key, the equal sign or the value,
> is ignored. The key must be a continuous string of alphanumeric and
> underscore characters and minus signs only. The value starts at the
> first non-whitespace character after the first equal sign on the line
> and ends at the end of the line and must be correctly UTF-8-encoded.
> […]
> String values, including file
> paths and hexstrings, are written as is except for five characters that
> may be backslash-escaped: space, \t, \r, \n and backslash itself.
> The latter three must be escaped. A space character must be escaped if
> it is the first character in the value string and is written as \s.

I guess this is what is expected then:
```
$ echo -e "  \t \r \\ "
 \

$ echo -e "  \t \r \\ " | sed "s=\\\=\\\\\\\=g;s=\t=\\\t=g;s=\r=\\\r=g;s=^ =\\\s="
\s \t \r \\
```
2025-03-07 14:26:37 +01:00
Pablo Ovelleiro Corral
66332c1ae6 Add auto-upgrade module 2025-03-04 10:09:37 +01:00
a-kenji
2fd6576c6f clanModules/iwd: Fix conversion link 2025-03-02 20:27:40 -08:00
vdbe
e6c03497a4 clanModules/root-password: don't deploy plain text password 2025-03-02 17:52:03 +01:00
vdbe
f06b756b97 clanModules/machine-id: fix value 2025-03-02 10:41:35 +01:00
a-kenji
6f68e2f3c0 clanModules/zerotier: Fix documentation 2025-02-26 00:41:20 +07:00
a-kenji
01e6204a96 clanModules/mycelium: Remove certain options for compatibility reasons
Remove certain options for compatibility reasons

We want to reintroduce them once we pass in `vars` through the
inventory.
2025-02-19 09:54:00 +00:00
a-kenji
b561675af8 clanModules/syncthing-static-peers: Migrate to vars
Part of the #2511 migration.
2025-02-15 23:34:25 +07:00
a-kenji
70ce6e5bd7 clanModules/garage: Migrate to vars
Part of the #2511 migration.
2025-02-15 11:21:09 +00:00
a-kenji
28e6d70c0d clanModules/state-version: Remove trailing newlines
The state version is now matched against certain regex rules.
We strip possible trailing newlines to improve compatibility.
2025-02-15 16:29:07 +07:00
a-kenji
f6466ead04 clanModules/root-password: Add inventory feature 2025-02-02 10:35:48 +00:00
a-kenji
2fb312ccc1 clanModules/root-password: Add inventory feature 2025-02-02 10:32:58 +00:00