WIP: bash-based deployment #301

Closed
kiara wants to merge 6 commits from kiara/fediversity:bash-deploy into main
Owner

implement #76 using bash/python to get a sense of what might be the simplest deployment method.
strategy used:

  • reproduce relevant environment stuff at panel vm fedi201
  • duplicate some code to forego nixops without breaking existing code
  • update packages to prevent some error stating cannot update with an older bootloader
  • access test VMs as per #297
implement #76 using bash/python to get a sense of what might be the simplest deployment method. strategy used: - reproduce relevant environment stuff at panel vm fedi201 - duplicate some code to forego nixops without breaking existing code - update packages to prevent some error stating cannot update with an older bootloader - access test VMs as per #297
kiara force-pushed bash-deploy from 246380e00f to f4ad9b9f0a 2025-04-03 16:50:23 +02:00 Compare
kiara force-pushed bash-deploy from b3ee74ecfb to 00bf58bbfc 2025-04-05 13:55:18 +02:00 Compare
kiara force-pushed bash-deploy from 00bf58bbfc to 429a4cbe23 2025-04-05 15:26:31 +02:00 Compare
requested reviews from fricklerhandwerk, Niols 2025-04-05 15:34:16 +02:00
rm tf lock
Some checks failed
/ check-pre-commit (pull_request) Successful in 24s
/ check-website (pull_request) Successful in 9s
/ check-peertube (pull_request) Successful in 21s
/ check-panel (pull_request) Failing after 27s
d0c2b02b74
use subprocess user implicit
Some checks failed
/ check-pre-commit (pull_request) Successful in 24s
/ check-website (pull_request) Successful in 8s
/ check-peertube (pull_request) Successful in 20s
/ check-panel (pull_request) Failing after 26s
6833fe99cb
add ssh key to not need root user
Some checks failed
/ check-pre-commit (pull_request) Successful in 25s
/ check-website (pull_request) Successful in 10s
/ check-peertube (pull_request) Successful in 21s
/ check-panel (pull_request) Failing after 26s
bfa31bad07
Author
Owner

i don't actually want this merged, i'll apply the learnings here to #274.

i don't actually want this merged, i'll apply the learnings here to #274.
kiara closed this pull request 2025-04-06 11:48:25 +02:00
Owner

I'm not entirely sure what the purpose of this PR is. My guess is that you are trying, with TF, to deploy NixOS configurations on pre-existing machines, without relying on things like nixos-anywhere. Is that correct?

(I will go back to reading the things when I get the bigger picture!)

I'm not entirely sure what the purpose of this PR is. My guess is that you are trying, with TF, to deploy NixOS configurations on pre-existing machines, without relying on things like nixos-anywhere. Is that correct? (I will go back to reading the things when I get the bigger picture!)
Owner

Oh, it's closed. Sorry.

Oh, it's closed. Sorry.
Author
Owner

@Niols nah no problem, i had opened it for feedback, as (maiming views.py aside) the overall approach would be similar.
this particular PR implements it without TF - the TF one without nixos-anywhere is branch terraform-nixos (no PR as of yet, may get merged into #274).

@Niols nah no problem, i had opened it for feedback, as (maiming `views.py` aside) the overall approach would be similar. this particular PR implements it without TF - the TF one without nixos-anywhere is branch [`terraform-nixos`](https://git.fediversity.eu/kiara/Fediversity/src/branch/terraform-nixos) (no PR as of yet, may get merged into #274).
Owner

Without TF, does that mean with NixOps4, or in a standalone fashion?

Without TF, does that mean with NixOps4, or in a standalone fashion?
Author
Owner

@Niols tihs particular implementation is standalone, specifically handled in a bash script + views.py - the rest of the implementation should be shared

@Niols tihs particular implementation is standalone, specifically handled in a bash script + `views.py` - the rest of the implementation should be shared
Some checks are pending
/ check-pre-commit (pull_request) Successful in 25s
Required
Details
/ check-website (pull_request) Successful in 10s
/ check-peertube (pull_request) Successful in 21s
Required
Details
/ check-panel (pull_request) Failing after 26s
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

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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#301
No description provided.