summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlan Rominger <arominge@redhat.com>2021-08-26 19:37:13 +0200
committerGitHub <noreply@github.com>2021-08-26 19:37:13 +0200
commitee4792dbf8380007456e090716d408c5b3ea38d3 (patch)
treebd2acd65f2c3e02fc6b4ee4d9233cd9bce8c6166 /Makefile
parentClean up work_type processing and fix execution vs control capacity (#10930) (diff)
downloadawx-ee4792dbf8380007456e090716d408c5b3ea38d3.tar.xz
awx-ee4792dbf8380007456e090716d408c5b3ea38d3.zip
Add an option to create a cluster with control-only nodes (#10946)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7e35284667..cd62221d9c 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ VERSION := $(shell cat VERSION)
# 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/
SCL_PREFIX ?=
@@ -172,7 +173,7 @@ init:
if [ "$(VENV_BASE)" ]; then \
. $(VENV_BASE)/awx/bin/activate; \
fi; \
- $(MANAGEMENT_COMMAND) provision_instance --hostname=$(COMPOSE_HOST); \
+ $(MANAGEMENT_COMMAND) provision_instance --hostname=$(COMPOSE_HOST) --node_type=$(MAIN_NODE_TYPE); \
$(MANAGEMENT_COMMAND) register_queue --queuename=controlplane --instance_percent=100;\
if [ ! -f /etc/receptor/certs/awx.key ]; then \
rm -f /etc/receptor/certs/*; \