fix: staging deployment configuration and redis secrets handling
This commit is contained in:
14
Makefile
14
Makefile
@@ -218,27 +218,27 @@ health:
|
||||
|
||||
|
||||
# Ansible Konfiguration
|
||||
ANSIBLE_INVENTORY=ansible/inventory/hosts.ini
|
||||
PLAYBOOK_DIR=ansible/playbooks/deploy
|
||||
ANSIBLE_INVENTORY=deployment/ansible/inventory/production.yml
|
||||
PLAYBOOK_DIR=deployment/ansible/playbooks/deploy
|
||||
TAGS=
|
||||
|
||||
.PHONY: dev staging production setup-server check
|
||||
|
||||
# Deployment-Ziele
|
||||
dev: ## Lokales Deployment (Development)
|
||||
ansible-playbook -i $(ANSIBLE_INVENTORY) $(PLAYBOOK_DIR)/dev.yml --ask-become-pass $(if $(TAGS),--tags="$(TAGS)",)
|
||||
cd deployment/ansible && ansible-playbook -i inventory/production.yml playbooks/deploy/dev.yml --ask-become-pass $(if $(TAGS),--tags="$(TAGS)",)
|
||||
|
||||
staging: ## Staging-Deployment
|
||||
ansible-playbook -i $(ANSIBLE_INVENTORY) $(PLAYBOOK_DIR)/staging.yml $(if $(TAGS),--tags="$(TAGS)",)
|
||||
cd deployment/ansible && ansible-playbook -i inventory/production.yml playbooks/deploy/staging.yml $(if $(TAGS),--tags="$(TAGS)",)
|
||||
|
||||
production: ## Produktions-Deployment
|
||||
ansible-playbook -i $(ANSIBLE_INVENTORY) $(PLAYBOOK_DIR)/production.yml $(if $(TAGS),--tags="$(TAGS)",)
|
||||
cd deployment/ansible && ansible-playbook -i inventory/production.yml playbooks/deploy/production.yml $(if $(TAGS),--tags="$(TAGS)",)
|
||||
|
||||
setup-server: ## Server-Grundkonfiguration
|
||||
ansible-playbook -i $(ANSIBLE_INVENTORY) ansible/setup.yml $(if $(LIMIT),--limit="$(LIMIT)",) $(if $(TAGS),--tags="$(TAGS)",)
|
||||
cd deployment/ansible && ansible-playbook -i inventory/production.yml playbooks/setup-infrastructure.yml $(if $(LIMIT),--limit="$(LIMIT)",) $(if $(TAGS),--tags="$(TAGS)",)
|
||||
|
||||
check: ## Serververbindung prüfen
|
||||
ansible -i $(ANSIBLE_INVENTORY) all -m ping $(if $(LIMIT),--limit="$(LIMIT)",)
|
||||
cd deployment/ansible && ansible -i inventory/production.yml all -m ping $(if $(LIMIT),--limit="$(LIMIT)",)
|
||||
|
||||
# Beispielaufrufe:
|
||||
# make staging TAGS="deploy,check"
|
||||
|
||||
Reference in New Issue
Block a user