| 
									
										
										
										
											2024-01-10 17:56:40 +03:00
										 |  |  | #----------------------------------------------------------------------
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # TODO:
 | 
					
						
							|  |  |  | # - cleanup/destroy
 | 
					
						
							|  |  |  | # - update
 | 
					
						
							|  |  |  | # - backup
 | 
					
						
							|  |  |  | # - pull config
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | #----------------------------------------------------------------------
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # NOTE: The order here is important: 
 | 
					
						
							|  |  |  | # 	- to avoid bootstrapping network connections gate must be the 
 | 
					
						
							|  |  |  | # 	  first CT to get built to route the rest of CT's to the WAN 
 | 
					
						
							|  |  |  | # 	  connection during the build process.
 | 
					
						
							|  |  |  | # 	- ns should be the second to be built to provide the rest of the
 | 
					
						
							|  |  |  | # 	  CT's with DHCP network configuration.
 | 
					
						
							|  |  |  | # 	- the rest of the CT's are created in order of importance, strting 
 | 
					
						
							|  |  |  | # 	  from CT's needed for access and ending with services.
 | 
					
						
							|  |  |  | CTs := \
 | 
					
						
							| 
									
										
										
										
											2024-01-10 23:35:52 +03:00
										 |  |  |        gate ns \
 | 
					
						
							|  |  |  |        ssh wireguard syncthing \
 | 
					
						
							|  |  |  |        nextcloud gitea | 
					
						
							| 
									
										
										
										
											2024-01-10 17:56:40 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #----------------------------------------------------------------------
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .PHONY: FORCE | 
					
						
							|  |  |  | FORCE: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %: %/make.sh FORCE | 
					
						
							|  |  |  | 	$< | 
					
						
							| 
									
										
										
										
											2024-01-10 16:14:59 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-06 18:31:13 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | config.global: config.global.example | 
					
						
							|  |  |  | 	vim "+0r config.global.example" $@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-10 17:56:40 +03:00
										 |  |  | #----------------------------------------------------------------------
 | 
					
						
							|  |  |  | # Shorthands...
 | 
					
						
							| 
									
										
										
										
											2024-01-06 18:31:13 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-10 17:56:40 +03:00
										 |  |  | .PHONY: config | 
					
						
							|  |  |  | config: config.global | 
					
						
							| 
									
										
										
										
											2024-01-06 18:31:13 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-10 17:56:40 +03:00
										 |  |  | .PHONY: gate | 
					
						
							|  |  |  | gate: gate-traefik | 
					
						
							| 
									
										
										
										
											2024-01-06 18:31:13 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-07 16:18:27 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-10 17:56:40 +03:00
										 |  |  | #----------------------------------------------------------------------
 | 
					
						
							| 
									
										
										
										
											2024-01-06 18:31:13 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | .PHONY: all | 
					
						
							| 
									
										
										
										
											2024-01-10 17:56:40 +03:00
										 |  |  | all: config $(CTs)  | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-06 18:31:13 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-10 17:56:40 +03:00
										 |  |  | #----------------------------------------------------------------------
 |