CI: improve consul stagging switch
This commit is contained in:
parent
993753f284
commit
46b4a51935
11
makefile
11
makefile
@ -15,7 +15,8 @@ vagranup:
|
|||||||
|
|
||||||
create-dev: vagranup DNS-stagging
|
create-dev: vagranup DNS-stagging
|
||||||
make -C ansible deploy_staging
|
make -C ansible deploy_staging
|
||||||
make -C terraform deploy_vault env=stagging
|
make -C terraform deploy_vault env=staging
|
||||||
|
VAULT_TOKEN=$(shell cat ~/vaultUnseal/staging/rootkey) python ./script/generate-vault-secret
|
||||||
|
|
||||||
create-dev-base: vagranup DNS-stagging
|
create-dev-base: vagranup DNS-stagging
|
||||||
make -C ansible deploy_staging_base
|
make -C ansible deploy_staging_base
|
||||||
@ -28,9 +29,11 @@ serve:
|
|||||||
mkdocs serve
|
mkdocs serve
|
||||||
|
|
||||||
DNS-stagging:
|
DNS-stagging:
|
||||||
$(eval dns := $(shell dig oscar-dev.ducamps-dev.eu +short))
|
$(eval dns := $(shell dig oscar-dev.lan.ducamps.dev +short))
|
||||||
sudo resolvectl dns virbr2 "$(dns)";sudo resolvectl domain virbr2 "~consul"
|
$(eval dns1 := $(shell dig nas-dev.lan.ducamps.dev +short))
|
||||||
|
sudo resolvectl dns virbr2 "$(dns)" "$(dns1)";sudo resolvectl domain virbr2 "~consul";sudo systemctl restart systemd-resolved.service
|
||||||
|
|
||||||
|
|
||||||
DNS-production:
|
DNS-production:
|
||||||
sudo resolvectl dns virbr2 "";sudo resolvectl domain virbr2 ""
|
sudo resolvectl dns virbr2 "";sudo resolvectl domain virbr2 "";sudo systemctl restart systemd-resolved.service
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user