Initial commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# Migrating Data from Local Docker
|
||||
|
||||
If you are migrating data from a Local Docker installation (17.0.1 and prior), you can
|
||||
migrate your data to the development environment via the migrate.yml playbook.
|
||||
|
||||
> Note: This will also convert your postgresql bind-mount into a docker volume.
|
||||
|
||||
### Migrate data with migrate.yml
|
||||
|
||||
First, in the [`inventory` file](../inventory), set your `pg_password`, `broadcast_websocket_secret`, `secret_key`, and any other settings you need for your deployment. **Make sure you use the same values from the `inventory` file in your existing pre-18.0.0 Docker deployment.**
|
||||
|
||||
If you used a custom pgdocker or awxcompose location, you will need to set the `postgres_data_dir` and `old_docker_compose_dir` variables.
|
||||
|
||||
1. Run the [migrate playbook](../ansible/migrate.yml) to migrate your data to the new postgresql container and convert the data directory to a volume mount.
|
||||
```bash
|
||||
$ ansible-playbook -i tools/docker-compose/inventory tools/docker-compose/ansible/migrate.yml -e "migrate_local_docker=true" -e "postgres_data_dir=~/.awx/pgdocker" -e "old_docker_compose_dir=~/.awx/awxcompose"
|
||||
```
|
||||
|
||||
2. Change directory to the top of your awx checkout, and follow the [development environment installation instructions](../README.md) to start your containers:
|
||||
```bash
|
||||
$ make docker-compose-build
|
||||
$ make docker-compose
|
||||
$ docker exec tools_awx_1 make clean-ui ui-devel
|
||||
```
|
||||
|
||||
3. After ensuring your data has been successfully migrated, you may delete your old data directory (typically stored at `~/.awx/pgdocker`).
|
||||
|
||||
4. Note that after migration, the development environment will be available at https://localhost:8043/ (not http://localhost).
|
||||
@@ -0,0 +1,49 @@
|
||||
# How to use the logstash container
|
||||
|
||||
#### Modify the docker-compose.yml
|
||||
|
||||
Uncomment the following lines in the `docker-compose.yml`
|
||||
|
||||
```
|
||||
#- logstash
|
||||
...
|
||||
|
||||
#logstash:
|
||||
# build:
|
||||
# context: ./docker-compose
|
||||
# dockerfile: Dockerfile-logstash
|
||||
```
|
||||
|
||||
POST the following content to `/api/v2/settings/logging/` (this uses
|
||||
authentication set up inside of the logstash configuration file).
|
||||
|
||||
```
|
||||
{
|
||||
"LOG_AGGREGATOR_HOST": "http://logstash",
|
||||
"LOG_AGGREGATOR_PORT": 8085,
|
||||
"LOG_AGGREGATOR_TYPE": "logstash",
|
||||
"LOG_AGGREGATOR_USERNAME": "awx_logger",
|
||||
"LOG_AGGREGATOR_PASSWORD": "workflows",
|
||||
"LOG_AGGREGATOR_LOGGERS": [
|
||||
"awx",
|
||||
"activity_stream",
|
||||
"job_events",
|
||||
"system_tracking"
|
||||
],
|
||||
"LOG_AGGREGATOR_INDIVIDUAL_FACTS": false,
|
||||
"LOG_AGGREGATOR_TOWER_UUID": "991ac7e9-6d68-48c8-bbde-7ca1096653c6",
|
||||
"LOG_AGGREGATOR_ENABLED": true
|
||||
}
|
||||
```
|
||||
|
||||
> Note: HTTP must be specified in the `LOG_AGGREGATOR_HOST` if you are using the docker development environment.
|
||||
|
||||
An example of how to view the most recent logs from the container:
|
||||
|
||||
```
|
||||
docker exec -i -t $(docker ps -aqf "name=tools_logstash_1") tail -n 50 /logstash.log
|
||||
```
|
||||
|
||||
#### How to add logstash plugins
|
||||
|
||||
Add any plugins you need in `tools/elastic/logstash/Dockerfile` before running the container.
|
||||
Reference in New Issue
Block a user