mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-28 18:50:08 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
882e39370e
commit
9ba285256c
57
Makefile
57
Makefile
@ -15,20 +15,10 @@ EDITOR ?= vim
|
|||||||
|
|
||||||
# CTs...
|
# CTs...
|
||||||
#
|
#
|
||||||
# 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.
|
|
||||||
CORE_CTs := \
|
|
||||||
gate ns
|
|
||||||
MINIMAL_CTs := \
|
MINIMAL_CTs := \
|
||||||
ssh wireguard
|
ssh wireguard
|
||||||
APP_CTs := \
|
APP_CTs := \
|
||||||
syncthing nextcloud #gitea
|
syncthing nextcloud
|
||||||
# Optional (see dev target)...
|
# Optional (see dev target)...
|
||||||
DEV_CTs := \
|
DEV_CTs := \
|
||||||
gitea
|
gitea
|
||||||
@ -86,25 +76,14 @@ config.global: config.global.example
|
|||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
# Shorthands...
|
# Bootstrapping...
|
||||||
|
|
||||||
.PHONY: config
|
|
||||||
config: config.global
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY: gate
|
|
||||||
gate: gate-traefik
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
|
|
||||||
# Bootstrap stage 1: build basic infrastructure...
|
# Bootstrap stage 1: build basic infrastructure...
|
||||||
.PHONY: bootstrap
|
.PHONY: bootstrap
|
||||||
bootstrap: \
|
bootstrap: \
|
||||||
host-bootstrap \
|
host-bootstrap \
|
||||||
gate-bootstrap \
|
gate-bootstrap ns \
|
||||||
ns ssh wireguard \
|
$(MINIMAL_CTs) \
|
||||||
bootstrap-clean
|
bootstrap-clean
|
||||||
|
|
||||||
|
|
||||||
@ -121,29 +100,27 @@ finalize: bootstrap-clean gate-bootstrap-clean
|
|||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
# Shorthands...
|
||||||
|
|
||||||
.PHONY: core
|
.PHONY: config
|
||||||
core: config $(CORE_CTs)
|
config: config.global
|
||||||
|
|
||||||
|
|
||||||
.PHONY: minimal
|
.PHONY: gate
|
||||||
minimal: core $(MINIMAL_CTs)
|
gate: gate-traefik
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
all: $(APP_CTs)
|
||||||
|
|
||||||
|
|
||||||
.PHONY: dev
|
.PHONY: dev
|
||||||
dev: minimal $(DEV_CTs)
|
dev: $(DEV_CTs)
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all
|
|
||||||
all: minimal $(APP_CTs)
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY: test
|
|
||||||
test:
|
|
||||||
@echo "TEST!"
|
|
||||||
|
|
||||||
test2: test test
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user