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
				
			
		|  | @ -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