This commit is contained in:
		
							parent
							
								
									136fcd98ed
								
							
						
					
					
						commit
						b8c016324a
					
				
					 2 changed files with 204 additions and 69 deletions
				
			
		
							
								
								
									
										28
									
								
								clan.nix
									
										
									
									
									
								
							
							
						
						
									
										28
									
								
								clan.nix
									
										
									
									
									
								
							|  | @ -11,28 +11,28 @@ | |||
|       description = "Management node 1"; | ||||
|       machineClass = "nixos"; | ||||
|       tags = [ "cloud:amarth" "region:oss" "nodeType:management" "criticallity:critical" "" ]; | ||||
|       deploy.targetHost = "root@192.168.1.223"; | ||||
|       # deploy.targetHost = "root@192.168.1.223"; | ||||
|     }; | ||||
|     c1 = { | ||||
|       name = "compute-1"; | ||||
|       description = "Compute node 1"; | ||||
|       machineClass = "nixos"; | ||||
|       tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity:medium" "" ]; | ||||
|       deploy.targetHost = "root@192.168.1.224"; | ||||
|       # deploy.targetHost = "root@192.168.1.224"; | ||||
|     }; | ||||
|     c2 = { | ||||
|       name = "compute-2"; | ||||
|       description = "Compute node 2"; | ||||
|       machineClass = "nixos"; | ||||
|       tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity:medium" "" ]; | ||||
|       deploy.targetHost = "root@192.168.1.225"; | ||||
|       # deploy.targetHost = "root@192.168.1.225"; | ||||
|     }; | ||||
|     c3 = { | ||||
|       name = "compute-3"; | ||||
|       description = "Compute node 3"; | ||||
|       machineClass = "nixos"; | ||||
|       tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity:medium" "" ]; | ||||
|       deploy.targetHost = "root@192.168.1.226"; | ||||
|       # deploy.targetHost = "root@192.168.1.226"; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|  | @ -45,6 +45,15 @@ | |||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|     internet = { | ||||
|       roles.default.machines = { | ||||
|         m1.settings.host = "192.168.1.223"; | ||||
|         c1.settings.host = "192.168.1.224"; | ||||
|         c2.settings.host = "192.168.1.225"; | ||||
|         c3.settings.host = "192.168.1.226"; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|     zerotier = { | ||||
|       roles.controller.machines."m1" = { }; | ||||
|       roles.peer.tags.all = { }; | ||||
|  | @ -76,6 +85,15 @@ | |||
|       roles.agent.machines."c2" = {}; | ||||
|       roles.agent.machines."c3" = {}; | ||||
|     }; | ||||
| 
 | ||||
|     customer-portal = { | ||||
|       module = { | ||||
|         name = "customer-portal"; | ||||
|         input = "amarth-services"; | ||||
|       }; | ||||
| 
 | ||||
|       roles.server.machines."m1" = {}; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   # Additional NixOS configuration can be added here. | ||||
|  | @ -84,7 +102,7 @@ | |||
|   machines = { | ||||
|     # m1 = { config, pkgs, ... }: { | ||||
|     #   environment.systemPackages = [ pkgs.asciinema ]; | ||||
|        | ||||
| 
 | ||||
|     #   nixpkgs.hostPlatform = "x86_64-linux"; | ||||
|     # }; | ||||
|     m1 = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue