mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
Merge pull request #225 from AlanCoding/more_provisioning
update awx-manage command to new name
This commit is contained in:
4
Makefile
4
Makefile
@@ -208,10 +208,10 @@ init:
|
|||||||
if [ "$(VENV_BASE)" ]; then \
|
if [ "$(VENV_BASE)" ]; then \
|
||||||
. $(VENV_BASE)/awx/bin/activate; \
|
. $(VENV_BASE)/awx/bin/activate; \
|
||||||
fi; \
|
fi; \
|
||||||
$(MANAGEMENT_COMMAND) register_instance --hostname=$(COMPOSE_HOST); \
|
$(MANAGEMENT_COMMAND) provision_instance --hostname=$(COMPOSE_HOST); \
|
||||||
$(MANAGEMENT_COMMAND) register_queue --queuename=tower --hostnames=$(COMPOSE_HOST);\
|
$(MANAGEMENT_COMMAND) register_queue --queuename=tower --hostnames=$(COMPOSE_HOST);\
|
||||||
if [ "$(EXTRA_GROUP_QUEUES)" == "thepentagon" ]; then \
|
if [ "$(EXTRA_GROUP_QUEUES)" == "thepentagon" ]; then \
|
||||||
$(MANAGEMENT_COMMAND) register_instance --hostname=isolated; \
|
$(MANAGEMENT_COMMAND) provision_instance --hostname=isolated; \
|
||||||
$(MANAGEMENT_COMMAND) register_queue --queuename='thepentagon' --hostnames=isolated --controller=tower; \
|
$(MANAGEMENT_COMMAND) register_queue --queuename='thepentagon' --hostnames=isolated --controller=tower; \
|
||||||
$(MANAGEMENT_COMMAND) generate_isolated_key | ssh -o "StrictHostKeyChecking no" root@isolated 'cat > /root/.ssh/authorized_keys'; \
|
$(MANAGEMENT_COMMAND) generate_isolated_key | ssh -o "StrictHostKeyChecking no" root@isolated 'cat > /root/.ssh/authorized_keys'; \
|
||||||
elif [ "$(EXTRA_GROUP_QUEUES)" != "" ]; then \
|
elif [ "$(EXTRA_GROUP_QUEUES)" != "" ]; then \
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ ANSIBLE_REMOTE_TEMP=/tmp ANSIBLE_LOCAL_TEMP=/tmp ansible -i "127.0.0.1," -c loca
|
|||||||
awx-manage migrate --noinput --fake-initial
|
awx-manage migrate --noinput --fake-initial
|
||||||
echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'root@localhost', 'password')" | awx-manage shell
|
echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'root@localhost', 'password')" | awx-manage shell
|
||||||
awx-manage create_preload_data
|
awx-manage create_preload_data
|
||||||
awx-manage register_instance --hostname=$(hostname)
|
awx-manage provision_instance --hostname=$(hostname)
|
||||||
awx-manage register_queue --queuename=tower --hostnames=$(hostname)
|
awx-manage register_queue --queuename=tower --hostnames=$(hostname)
|
||||||
supervisord -c /supervisor_task.conf
|
supervisord -c /supervisor_task.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user