1
0
Fork 0
Commit graph

725 commits

Author SHA1 Message Date
853a67478f Merge branch 'stitching' of git.fediversity.eu:kiara/Fediversity into stitching 2025-03-12 11:58:12 +01:00
5680c2c6f4 Cleaned up code 2025-03-12 11:55:06 +01:00
a624f50d27
pass self thru in flake 2025-03-12 09:06:38 +01:00
862a761a4b Remove addding nixpkgs (did not fix the issue) 2025-03-11 16:22:24 +01:00
ebb019307b Pass REPO_DIR implicitly 2025-03-11 16:12:43 +01:00
361484c658
add NIX_DIR 2025-03-11 15:25:03 +01:00
25e16fed7a Convert configuration form to json
WIP: Get nix in scope
2025-03-11 14:46:11 +01:00
e79c974969
WIP: trigger nixops from panel
Closes .

Note I had not yet manage to successfully test this.

Manually trying the parameterized NixOps4 I tried using the following
command, tho I had yet to get this to work as well:

```sh
DEPLOYMENT='{"domain": "fediversity.net", "mastodon": {"enable": false},
"pixelfed": {"enable": true}, "peertube": {"enable": false}}' nix
develop --extra-experimental-features "configurable-impure-env"
--command nixops4 apply test
```

(or rather, I used a hardcoded Nix here so as to make it not use Lix.)

So far this had failed for me with:

```
the following units failed:
acme-mastodon.web.garage.fediversity.net.service
...
nixops4 error: Failed to create resource garage-configuration
```
2025-03-11 13:41:33 +01:00
e0053da5bb add basic service configuration
- test the form interaction for a fixed schema version
- also add a database migration missed in the last commit
2025-03-09 23:10:17 +01:00
9dd92b4cc1 basic versioned forms
this is still rudimentary since the actual forms are not auto-generated
from the underlying model. the comments show a path towards that.
2025-03-06 11:47:26 +01:00
981ba011ab store versioned configurations
Test manually:

```shell-session
$ manage shell
>>> from panel.models import Configuration
>>> Configuration().value
'{"enable":false,"domain":"fediversity.eu"}'
>>> Configuration().save()
>>> Configuration.objects.first().parsed_value
Configuration(enable=False, domain=<Domain.EU: 'fediversity.eu'>)
```
2025-03-05 09:32:03 +01:00
438f7d280a add django-pydantic-field 2025-03-05 09:00:18 +01:00
cba66d1b8b allow adding extra Python packages 2025-03-05 08:57:55 +01:00
4db91bd0b7
Transmit initial user from JSON to services 2025-02-28 10:57:31 +01:00
086a69ac53
Support injecting initial user in Pixelfed service 2025-02-28 10:56:22 +01:00
6e386a9fd6 Merge pull request 'Generate machines' list automatically' () from Niols/Fediversity:generate-machines-list-by-hand into main
Reviewed-on: 
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
2025-02-27 22:06:57 +01:00
9cc1e40b5d Merge pull request 'deploy fedipanel' () from kiara/Fediversity:deploy-panel into main
Reviewed-on: 
Reviewed-by: Nicolas Jeannerod <nicolas.jeannerod@moduscreate.com>
2025-02-27 22:06:24 +01:00
0b18938eaa
Support specifying disk size 2025-02-27 16:45:11 +01:00
52e4dc8aec
Make ShellCheck happy 2025-02-27 16:45:11 +01:00
816099eb1f
Document regenerating the list of machines 2025-02-27 16:45:11 +01:00
34476bf93b
Add jq to the environment 2025-02-27 16:45:11 +01:00
8ba000307f
Generate list of machines from config 2025-02-27 16:45:11 +01:00
b42d654ab6
Track machines' descriptions 2025-02-27 16:45:11 +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
cbed66c934
Report errors in subprocesses 2025-02-27 11:35:55 +01:00
0c75a4053e
Report already deleted VM in a clean way 2025-02-27 11:35:55 +01:00
beb225faf7
Better logging of VM removal 2025-02-27 11:35:55 +01:00
e27cc6e96a
Generalise test deployment; get config from JSON 2025-02-27 11:35:54 +01:00
dfe1af608b contributors: add fricklerhandwerk ()
Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
Reviewed-on: 
2025-02-27 10:47:47 +01:00
f828afd5d5
minimum setup i got working for deployment 2025-02-27 09:07:13 +01:00
d702ce3d05
Update flake inputs
In particular, grab a version of NixOps4 that reports SSH failures (\o)
2025-02-26 10:49:27 +01:00
e819dc4bcc
Stop mentioning non-existing deployments 2025-02-26 09:15:10 +01:00
90efd14e54
Remove unused VMs
This has been done in sync with @kevin who removed them from the
Procolix infrastructure as well.
2025-02-26 09:15:10 +01:00
e7e175ef78
Fix typo 2025-02-26 09:14:47 +01:00
1d4004ccf4
update fedipanel import references 2025-02-25 17:11:50 +01:00
ed98d21513
Add ShellCheck to pre-commits (and therefore CI) 2025-02-25 17:10:25 +01:00
6182ba192c
Make ShellCheck happy 2025-02-25 17:10:25 +01:00
44a69fb376
Clean up pre-commit opt-out mechanism 2025-02-25 17:10:25 +01:00
d5264a52a1
panel: override STATIC_ROOT 2025-02-25 16:11:40 +01:00
3354c89503
WIP: deploy fedipanel
Closes 
2025-02-25 16:11:40 +01:00
4e30363c5f
Generate list of machines from machines subdir 2025-02-25 11:57:21 +01:00
2e346d1de7
Move test machines configuration to test-machines directory 2025-02-25 11:57:21 +01:00
c74145fe24
Split machine definitions into subdirectories 2025-02-25 11:57:21 +01:00
3f9c174d97
Get rid of the deployment/ directory 2025-02-25 11:57:20 +01:00
f4153a048c
Reintroduce test machines deployment 2025-02-25 11:57:20 +01:00
f6960010cd
One deployment per machine; bundle test machines 2025-02-25 11:57:20 +01:00
bc8ad08228
Make removal script support ids or names 2025-02-25 11:57:20 +01:00