diff options
author | Christian M. Adams <rooftopcellist@gmail.com> | 2021-01-27 17:01:17 +0100 |
---|---|---|
committer | Christian M. Adams <rooftopcellist@gmail.com> | 2021-02-22 19:44:19 +0100 |
commit | 9672e7283404f608abcf9f2a1489db7867d672a4 (patch) | |
tree | a7e4184ef374ad28c9713dc96840267e4d25c20a /INSTALL.md | |
parent | Merge pull request #9131 from sezanzeb/patch-1 (diff) | |
download | awx-9672e7283404f608abcf9f2a1489db7867d672a4.tar.xz awx-9672e7283404f608abcf9f2a1489db7867d672a4.zip |
Consolidate the Local Docker installer and the dev env
- removes local_docker installer and points community users to our development environment (make docker-compose)
- provides a migration path from Local Docker Compose installations --> the dev environment
- the dev env can now be configured to use an external database
- consolidated the Local Docker and dev env docker-compose.yml files into one template file, used by the dockerfile role
- added a 'sources' role to template out config files
- the postgres data dir is no longer a bind-mount, it is a docker volume
- the redis socket is not longer a bind-mount, it is a docker volume
- the local_settings.py.docker-compose file no longer needs to be copied over in the dev env
- Create tmp rsyslog.conf in rsyslog volume to avoid cross-linking. Previously, the tmp code-generated rsyslog.conf was being written to /tmp (by default). As a result, we were attempting to shutil.move() across volumes.
- move k8s image build and push roles under tools/ansible
- See tools/docker-compose/README.md for usage of these changes
Diffstat (limited to 'INSTALL.md')
-rw-r--r-- | INSTALL.md | 43 |
1 files changed, 10 insertions, 33 deletions
diff --git a/INSTALL.md b/INSTALL.md index d96c2a086e..2c0fc9417c 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -12,7 +12,6 @@ This document provides a guide for installing AWX. + [System Requirements](#system-requirements) + [Choose a deployment platform](#choose-a-deployment-platform) + [Official vs Building Images](#official-vs-building-images) - * [Upgrading from previous versions](#upgrading-from-previous-versions) * [OpenShift](#openshift) + [Prerequisites](#prerequisites-1) + [Pre-install steps](#pre-install-steps) @@ -29,17 +28,6 @@ This document provides a guide for installing AWX. + [Post-install](#post-install-1) + [Accessing AWX](#accessing-awx-1) + [SSL Termination](#ssl-termination) - * [Docker-Compose](#docker-compose) - + [Prerequisites](#prerequisites-3) - + [Pre-install steps](#pre-install-steps-2) - - [Deploying to a remote host](#deploying-to-a-remote-host) - - [Inventory variables](#inventory-variables) - - [Docker registry](#docker-registry) - - [Proxy settings](#proxy-settings) - - [PostgreSQL](#postgresql-1) - + [Run the installer](#run-the-installer-2) - + [Post-install](#post-install-2) - + [Accessing AWX](#accessing-awx-2) - [Installing the AWX CLI](#installing-the-awx-cli) * [Building the CLI Documentation](#building-the-cli-documentation) @@ -84,9 +72,9 @@ Before you can run a deployment, you'll need the following installed in your loc - [Git](https://git-scm.com/) Requires Version 1.8.4+ - Python 3.6+ - [Node 14.x LTS version](https://nodejs.org/en/download/) - + This is only required if you're [building your own container images](#official-vs-building-images) with `use_container_for_build=false` + + This is only required if you're [building your own container images](#official-vs-building-images) - [NPM 6.x LTS](https://docs.npmjs.com/) - + This is only required if you're [building your own container images](#official-vs-building-images) with `use_container_for_build=false` + + This is only required if you're [building your own container images](#official-vs-building-images) ### System Requirements @@ -100,14 +88,13 @@ The system that runs the AWX service will need to satisfy the following requirem ### Choose a deployment platform -We currently support running AWX as a containerized application using Docker images deployed to either an OpenShift cluster, a Kubernetes cluster, or docker-compose. The remainder of this document will walk you through the process of building the images, and deploying them to either platform. +We currently support running AWX as a containerized application using Docker images deployed to either an OpenShift cluster or a Kubernetes cluster. The remainder of this document will walk you through the process of building the images, and deploying them to either platform. The [installer](./installer) directory contains an [inventory](./installer/inventory) file, and a playbook, [install.yml](./installer/install.yml). You'll begin by setting variables in the inventory file according to the platform you wish to use, and then you'll start the image build and deployment process by running the playbook. In the sections below, you'll find deployment details and instructions for each platform: - [OpenShift](#openshift) - [Kubernetes](#kubernetes) -- [Docker Compose](#docker-compose). ### Official vs Building Images @@ -130,28 +117,15 @@ If these variables are present then all deployments will use these hosted images > Multiple versions are provided. `latest` always pulls the most recent. You may also select version numbers at different granularities: 1, 1.0, 1.0.1, 1.0.0.123 -*use_container_for_build* - -> Use a local distribution build container image for building the AWX package. This is helpful if you don't want to bother installing the build-time dependencies as it is taken care of already. - - -## Upgrading from previous versions - -Upgrading AWX involves rerunning the install playbook. Download a newer release from [https://github.com/ansible/awx/releases](https://github.com/ansible/awx/releases) and re-populate the inventory file with your customized variables. - -For convenience, you can create a file called `vars.yml`: +To build your own container use the `build.yml` playbook: ``` -admin_password: 'adminpass' -pg_password: 'pgpass' -secret_key: 'mysupersecret' +ansible-playbook tools/ansible/build.yml -e awx_version=test-build ``` -And pass it to the installer: +The resulting image will automatically be pushed to a registry if `docker_registry` is defined. + -``` -$ ansible-playbook -i inventory install.yml -e @vars.yml -``` ## OpenShift @@ -437,6 +411,7 @@ If your provider is able to allocate an IP Address from the Ingress controller t Unlike Openshift's `Route` the Kubernetes `Ingress` doesn't yet handle SSL termination. As such the default configuration will only expose AWX through HTTP on port 80. You are responsible for configuring SSL support until support is added (either to Kubernetes or AWX itself). +<<<<<<< HEAD ## Docker-Compose ### Prerequisites @@ -644,6 +619,8 @@ The AWX web server is accessible on the deployment host, using the *host_port* v You will prompted with a login dialog. The default administrator username is `admin`, and the password is `password`. +======= +>>>>>>> c4d87ec843... Consolidate the Local Docker installer and the dev env # Installing the AWX CLI `awx` is the official command-line client for AWX. It: |