feat: switch consul DNS in makefile

This commit is contained in:
vincent 2024-02-04 21:24:02 +01:00
parent e9ad317436
commit 41b1a71c76

View File

@ -10,12 +10,14 @@ vault-dev:
./vault/standalone_vault.sh $(FILE);\ ./vault/standalone_vault.sh $(FILE);\
fi fi
create-dev: vagranup:
vagrant up vagrant up
make -C ansible deploy_staging
create-dev-base: create-dev: vagranup DNS-stagging
vagrant up make -C ansible deploy_staging
make -C terraform deploy_vault
create-dev-base: vagranup DNS-stagging
make -C ansible deploy_staging_base make -C ansible deploy_staging_base
@ -24,3 +26,11 @@ destroy-dev:
serve: serve:
mkdocs serve mkdocs serve
DNS-stagging:
$(eval dns := $(shell dig oscar-dev.ducamps-dev.eu +short))
sudo resolvectl dns virbr2 "$(dns)";sudo resolvectl domain virbr2 "~consul"
DNS-production:
sudo resolvectl dns virbr2 "";sudo resolvectl domain virbr2 ""