forked from Fediversity/Fediversity
Upgrade automated provisioning of Proxmox VMs (#174)
This commit is contained in:
commit
d9a67c0db3
510 changed files with 365 additions and 162 deletions
README.md
deployment
README.mdflake-part.nix
hostKeys
provisioning.fedi010
provisioning.fedi011
provisioning.fedi012
provisioning.fedi013
provisioning.fedi014
provisioning.fedi015
provisioning.fedi016
provisioning.fedi017
provisioning.fedi018
provisioning.fedi019
provisioning.fedi020
provisioning.fedi021
provisioning.fedi022
provisioning.fedi023
provisioning.fedi024
provisioning.fedi025
provisioning.fedi026
provisioning.fedi027
provisioning.fedi028
provisioning.fedi029
provisioning.fedi030
provisioning.fedi031
provisioning.fedi032
provisioning.fedi033
provisioning.fedi034
provisioning.fedi035
provisioning.fedi036
provisioning.fedi037
provisioning.fedi038
provisioning.fedi039
provisioning.fedi040
provisioning.fedi041
provisioning.fedi042
provisioning.fedi043
provisioning.fedi044
provisioning.fedi045
provisioning.fedi046
provisioning.fedi047
provisioning.fedi048
provisioning.fedi049
provisioning.fedi050
provisioning.fedi051
provisioning.fedi052
provisioning.fedi053
provisioning.fedi054
provisioning.fedi055
provisioning.fedi056
provisioning.fedi057
provisioning.fedi058
|
@ -119,7 +119,8 @@ Most of the directories in this repository have their own README going into more
|
|||
details as to what they are for. As an overview:
|
||||
|
||||
- [`deployment/`](./deployment) contains bits and pieces having to do with
|
||||
auto-deployment of test VMs on a private Proxmox.
|
||||
auto-deployment of test VMs on a private Proxmox. This directory is
|
||||
deprecated, the information it contains outdate. Refer to `infra/` instead.
|
||||
|
||||
- [`infra/`](./infra) contains the configurations for the various VMs that are
|
||||
in production for the project, for instance the Git instances or the Wiki.
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
# Provisioning VMs via Proxmox
|
||||
|
||||
NOTE: This directory is outdated and most of the interesting code has moved to
|
||||
`infra/`. There is still some information to extract from here, but treat all
|
||||
that you read with a grain of salt.
|
||||
|
||||
## Quick links
|
||||
|
||||
Proxmox API doc
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
let
|
||||
allVmIds = builtins.genList (x: 100 + x) 156; # 100 -- 255
|
||||
makeInstaller = import ../infra/makeInstaller.nix;
|
||||
|
||||
in
|
||||
{
|
||||
|
@ -26,24 +25,6 @@ in
|
|||
}) allVmIds
|
||||
);
|
||||
|
||||
flake.isoInstallers.provisioning =
|
||||
let
|
||||
inherit (builtins) mapAttrs;
|
||||
in
|
||||
mapAttrs (
|
||||
vmname: nixosConfiguration:
|
||||
makeInstaller {
|
||||
inherit (inputs) nixpkgs;
|
||||
inherit nixosConfiguration;
|
||||
hostKeys = {
|
||||
ed25519 = {
|
||||
private = ./hostKeys/${vmname}/ssh_host_ed25519_key;
|
||||
public = ./hostKeys/${vmname}/ssh_host_ed25519_key.pub;
|
||||
};
|
||||
};
|
||||
}
|
||||
) self.nixosConfigurations.provisioning;
|
||||
|
||||
nixops4Deployments.feditest =
|
||||
{ providers, ... }:
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue