1983508fb1
Reapply "log to file"
...
This reverts commit b0942bd174
.
2025-04-12 14:10:55 +02:00
d4860c8aed
switch subprocess output to logger
2025-04-12 14:08:55 +02:00
9c53abfb4c
fix logging levels so info gets shown too, not just warn
2025-04-12 13:38:19 +02:00
81011d0062
pass deploy env vars thru
2025-04-12 12:31:47 +02:00
a41405775e
get ssh socket in prod
2025-04-12 12:31:36 +02:00
b0942bd174
Revert "log to file"
...
This reverts commit 1a8d940a90
.
2025-04-12 11:36:18 +02:00
553753218e
pass vars separately
2025-04-12 11:33:59 +02:00
265d79aeef
local vars
2025-04-12 10:27:11 +02:00
1a8d940a90
log to file
2025-04-12 09:56:00 +02:00
f87275e384
use proper logger
2025-04-12 09:33:18 +02:00
8a50680b9f
document dev process
2025-04-10 14:01:07 +02:00
8f785d7582
point deployed TF to panel ssh key
2025-04-10 11:12:39 +02:00
4f83f51e17
rm .auto.tfvars.json, as the local ssh key and socket are not relevant deployed
2025-04-10 10:07:30 +02:00
ce0e8e39f2
un-track .terraform
2025-04-10 09:03:58 +02:00
1da2e9e497
special-args -> hermetic
2025-04-10 09:00:21 +02:00
79e58e21f4
nixos-anywhere -> terraform-nixos
...
intended to swap out nixos-anywhere for terraform-nixos, over:
- don't need nixos-anywhere to install nixos; we preload nixos to VMs
- [awkward non-flake
usage](https://nix-community.github.io/nixos-anywhere/howtos/use-without-flakes.html#3-set-nixos-version-to-use )
- seemed not to pick up on config changes, as observed by test VMs
losing their panel keys after TF sync
however, it seems that terraform-nixos has its own flaws:
- its output using a random id, i.e. forcing to push even on no changes
- so far did not get ssh authentication to work
2025-04-09 17:05:00 +02:00
2b0ee4e52d
add ssh key to not need root user
2025-04-09 17:05:00 +02:00
eb3b1425d0
leave subprocess user implicit
2025-04-09 17:04:53 +02:00
551e860b5b
use root user as in #301 - given #297 seems to actually deploy!
2025-04-09 17:04:53 +02:00
3270cc89e7
update mastodon host
2025-04-09 17:04:33 +02:00
182106cd89
update nixpkgs to unstable - resolves manual deploy error on bootloader already on newer version
2025-04-09 17:04:33 +02:00
c93f16bcb2
change ssh user to root
2025-04-09 17:04:33 +02:00
e02e399a02
use a mutable HOME in TF for nixos-anywhere to make a .ssh
dir in - will this not backfire?
2025-04-09 17:04:33 +02:00
76e0594956
for now gitignore .auto.tfvars.json used to track TF module of nixos-anywhere
...
in case we want that file for something else, we can move this (and its
ignore) to something separate.
2025-04-09 17:04:33 +02:00
0350f68427
untrack TF generated provider/module stuff - local dev now requires following launch/README.md
2025-04-09 17:04:33 +02:00
de27ec1fb2
rm comment
2025-04-09 17:04:15 +02:00
fc4fc60982
update nixos-anywhere to fix error 'installable ... does not correspond to a Nix language value'
2025-04-09 17:04:15 +02:00
b4a65169c6
rm launch flake, as i seem to have reached similar progress without it
2025-04-09 17:04:07 +02:00
29664fef8c
get TF in prod to the same 'installable ... does not correspond to a Nix language value' for non-flakes
...
seemingly gets further when a similar command is tried from terminal.
as per https://github.com/NixOS/nix/issues/8752#issuecomment-1694714693 ,
this may have to do with aligning the current working directory.
2025-04-09 17:04:07 +02:00
195a8d4de8
document updating TF module
2025-04-09 17:03:43 +02:00
727b62f588
update
2025-04-09 17:03:43 +02:00
c841c4e9fd
specify XDG_CACHE_HOME, workaround to error writing to /var/empty/.cache
2025-04-09 17:03:43 +02:00
225f2a5be6
skip tf lock in views.py over read-only nix env
2025-04-09 17:03:43 +02:00
b3e783d4a5
move tf init out of python over read-only nix env
2025-04-09 17:03:43 +02:00
c1aa71e319
properly pass repo dir for prod, be it with hard-coded TF init
2025-04-09 17:03:43 +02:00
817c724557
use flake-sourced nixos-anywhere in tf, to reproduce modules for nix
2025-04-09 17:00:20 +02:00
d599d5b640
switch launch shell to root flake's nixpkgs, see #279
2025-04-09 17:00:20 +02:00
fa770d4ef3
Revert "deduplicate flake inputs"
...
This reverts commit 95769084ce
.
2025-04-09 17:00:20 +02:00
be03794f5f
make re-exports explicit again
2025-04-09 17:00:20 +02:00
231c564c7a
deduplicate flake inputs
2025-04-09 17:00:20 +02:00
3eb6d93216
tf
2025-04-09 17:00:20 +02:00
f947e17d96
allow accessing test vms from fedi201's machine ssh key, closes #286
2025-04-09 17:00:01 +02:00
c27ec0a5b1
set NIX_PATH, enables use of <nixpkgs>
2025-04-09 16:59:36 +02:00
c69f1f52e0
allow accessing test vms from fedi201, closes #286 ( #297 )
...
Reviewed-on: Fediversity/Fediversity#297
Co-authored-by: Kiara Grouwstra <kiara@procolix.eu>
Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
2025-04-09 16:58:50 +02:00
ea8c61a712
A bunch more test machines
2025-04-02 15:06:17 +02:00
af3b2a62fd
Create a configuration resource even if the service is disabled
2025-04-02 15:06:17 +02:00
535da821fd
Display url after deployment ( #287 )
...
closes #264
Added a clickable link to the services that deployed.
Reviewed-on: Fediversity/Fediversity#287
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
Co-authored-by: lois <lois@procolix.eu>
Co-committed-by: lois <lois@procolix.eu>
2025-04-02 08:48:59 +02:00
88674c8efc
Show if deployment succeeded ( #283 )
...
Show which services deployed and if so, the urls
Co-authored-by: kevin <kevin@procolix.com>
Reviewed-on: Fediversity/Fediversity#283
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
Co-authored-by: lois <lois@procolix.eu>
Co-committed-by: lois <lois@procolix.eu>
2025-03-28 13:36:02 +01:00
e25ff10872
Work around weird Proxmox behaviour with test02 ( #282 )
...
Reviewed-on: Fediversity/Fediversity#282
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>
2025-03-27 15:48:35 +01:00
59f2ef1171
Remove print statements
2025-03-26 12:59:49 +01:00