WIP: trigger nixops from panel #211

Closed
kiara wants to merge 66 commits from kiara/fediversity:stitching into main
Owner

Closes #76.

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:

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
Closes #76. 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 ```
kevin was assigned by kiara 2025-02-27 22:41:12 +01:00
lois was assigned by kiara 2025-02-27 22:41:12 +01:00
Niols was assigned by kiara 2025-02-27 22:41:12 +01:00
note that i haven't done much with validation or conditional
enabling/hiding - if we start doing front-end frameworks those may have
opinions on this
don't use hungarian notation for model names
All checks were successful
/ check-pre-commit (pull_request) Successful in 29s
/ check-website (pull_request) Successful in 11s
/ check-peertube (pull_request) Successful in 25s
0788ba17f3
rename form and add navigation element
All checks were successful
/ check-pre-commit (pull_request) Successful in 26s
/ check-website (pull_request) Successful in 11s
/ check-peertube (pull_request) Successful in 22s
9b0d92db2d
add enable toggle, let operators have many configuraitons
All checks were successful
/ check-pre-commit (pull_request) Successful in 28s
/ check-website (pull_request) Successful in 13s
/ check-peertube (pull_request) Successful in 24s
c7937ac705
this commit is a bit of a jumble, but it allows us to disable
a configuration so the associated deployment can in principle be
garbage-collected, and allows operators to have multiple configurations.
it also (as a temporary hack) ties the deployment subdomain to the username so it's clear to
operators where we're deploying to.
Seperation of configuration form
All checks were successful
/ check-pre-commit (pull_request) Successful in 24s
/ check-website (pull_request) Successful in 9s
/ check-peertube (pull_request) Successful in 20s
2429b37ee9
fix saving for sepparated models
Some checks failed
/ check-pre-commit (pull_request) Failing after 26s
/ check-website (pull_request) Successful in 10s
/ check-peertube (pull_request) Successful in 22s
ecb107dd56
Remove trailing whitespace
All checks were successful
/ check-pre-commit (pull_request) Successful in 25s
/ check-website (pull_request) Successful in 10s
/ check-peertube (pull_request) Successful in 21s
c143d45051
Squash migrations
All checks were successful
/ check-pre-commit (pull_request) Successful in 25s
/ check-website (pull_request) Successful in 9s
/ check-peertube (pull_request) Successful in 21s
f912c16897
For now, I created yet another deployment. Basically, this seems to tell me that we only ever use:

- one deployment per machine (when we change its configuration)
- one big deployment for all of them (eg. for nixpkgs updates or new contributor)

but that the current split into themes doesn't really work. I can discontinue it in another PR.

`fedi201` is accessible under `fedi201.abundos.eu`. Its configuration lives in `infra/fedi201/default.nix`. This Nix file is a NixOps4 resource module, not a NixOS configuration module; you probably want to add a `nixos.module` field to it where you put your NixOS configuration.

Reviewed-on: Fediversity/Fediversity#183
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
Closes #25

Co-authored-by: kiara Grouwstra <kiara@procolix.eu>
Reviewed-on: Fediversity/Fediversity#176
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
It has been off for a long while now. We will just add a VM again if
there is one ever.
Closes #101
This has been done in sync with @kevin who removed them from the
Procolix infrastructure as well.
In particular, grab a version of NixOps4 that reports SSH failures (\o)
Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
Reviewed-on: Fediversity/Fediversity#208
Reviewed-on: Fediversity/Fediversity#201
Reviewed-by: Nicolas Jeannerod <nicolas.jeannerod@moduscreate.com>
Reviewed-on: Fediversity/Fediversity#209
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
Author
Owner

closing in favor of #246 as i seem unable to force-push my rebase to the PR

closing in favor of #246 as i seem unable to force-push my rebase to the PR
kiara closed this pull request 2025-03-11 13:20:46 +01:00
Some checks are pending
/ check-pre-commit (pull_request) Failing after 25s
Required
Details
/ check-website (pull_request) Successful in 10s
/ check-peertube (pull_request) Successful in 21s
Required
Details
/ check-data-model (pull_request)
Required
/ check-resources (pull_request)
Required
/ check-deployment-basic (pull_request)
Required
/ check-mastodon (pull_request)
Required
/ check-deployment-cli (pull_request)
Required
/ check-deployment-panel (pull_request)
Required
/ check-panel (pull_request)
Required

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: fediversity/fediversity#211
No description provided.