summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Bradberry <jeff.bradberry@gmail.com>2022-01-07 22:10:27 +0100
committerJeff Bradberry <jeff.bradberry@gmail.com>2022-01-10 17:37:19 +0100
commit386aa898ecf3864fa7363f1b32c8069368831880 (patch)
tree24915cf0a6435e83a99a7458af557341fb0f4206 /Makefile
parentRemove the auto-discovery feature (diff)
downloadawx-386aa898ecf3864fa7363f1b32c8069368831880.tar.xz
awx-386aa898ecf3864fa7363f1b32c8069368831880.zip
Remove the make init target
we want to fold that in to bootstrap_environment.sh.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 0 insertions, 19 deletions
diff --git a/Makefile b/Makefile
index ce82634869..bbc7cbc374 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,6 @@ COLLECTION_VERSION := $(shell $(PYTHON) setup.py --version | cut -d . -f 1-3)
# NOTE: This defaults the container image version to the branch that's active
COMPOSE_TAG ?= $(GIT_BRANCH)
-COMPOSE_HOST ?= $(shell hostname)
MAIN_NODE_TYPE ?= hybrid
VENV_BASE ?= /var/lib/awx/venv
@@ -145,24 +144,6 @@ version_file:
fi; \
$(PYTHON) -c "import awx; print(awx.__version__)" > /var/lib/awx/.awx_version; \
-# Do any one-time init tasks.
-comma := ,
-init:
- if [ "$(VENV_BASE)" ]; then \
- . $(VENV_BASE)/awx/bin/activate; \
- fi; \
- $(MANAGEMENT_COMMAND) provision_instance --hostname=$(COMPOSE_HOST) --node_type=$(MAIN_NODE_TYPE); \
- $(MANAGEMENT_COMMAND) register_queue --queuename=controlplane --instance_percent=100;\
- $(MANAGEMENT_COMMAND) register_queue --queuename=default --instance_percent=100;
- if [ ! -f /etc/receptor/certs/awx.key ]; then \
- rm -f /etc/receptor/certs/*; \
- receptor --cert-init commonname="AWX Test CA" bits=2048 outcert=/etc/receptor/certs/ca.crt outkey=/etc/receptor/certs/ca.key; \
- for node in $(RECEPTOR_MUTUAL_TLS); do \
- receptor --cert-makereq bits=2048 commonname="$$node test cert" dnsname=$$node nodeid=$$node outreq=/etc/receptor/certs/$$node.csr outkey=/etc/receptor/certs/$$node.key; \
- receptor --cert-signreq req=/etc/receptor/certs/$$node.csr cacert=/etc/receptor/certs/ca.crt cakey=/etc/receptor/certs/ca.key outcert=/etc/receptor/certs/$$node.crt verify=yes; \
- done; \
- fi
-
# Refresh development environment after pulling new code.
refresh: clean requirements_dev version_file develop migrate