Configuration

Configuration

  • Initialize DB
    scl enable rh-postgresql10 "postgresql-setup initdb"
  • Start services: Postgresql Database
    systemctl start rh-postgresql10-postgresql.service
  • Start services: RabbitMQ
    systemctl start rabbitmq-server
  • Create Postgres user and DB:
    scl enable rh-postgresql10 "su postgres -c \"createuser -S awx\""
    scl enable rh-postgresql10 "su postgres -c \"createdb -O awx awx\""
  • Import Database data:
    sudo -u awx scl enable rh-python36 rh-postgresql10 rh-git29 "GIT_PYTHON_REFRESH=quiet awx-manage migrate"
  • Initial configuration of AWX
    echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'root@localhost', 'password')" | sudo -u awx scl enable rh-python36 rh-postgresql10 "GIT_PYTHON_REFRESH=quiet awx-manage shell"
    sudo -u awx scl enable rh-python36 rh-postgresql10 rh-git29 "GIT_PYTHON_REFRESH=quiet awx-manage create_preload_data" # Optional Sample Configuration
    sudo -u awx scl enable rh-python36 rh-postgresql10 rh-git29 "GIT_PYTHON_REFRESH=quiet awx-manage provision_instance --hostname=$(hostname)"
    sudo -u awx scl enable rh-python36 rh-postgresql10 rh-git29 "GIT_PYTHON_REFRESH=quiet awx-manage register_queue --queuename=tower --hostnames=$(hostname)"
  • Configure NGINX as proxy:
    wget -O /etc/nginx/nginx.conf https://raw.githubusercontent.com/MrMEEE/awx-build/master/nginx.conf

Installation Services