「AWX」- 安装与升级

通过 Docker Compose 运行,如何停止?

How to stop the awx docker containers? Please add it to the readme. · Issue #58 · ansible/awx · GitHub

docker-compose -f ~/.awx/awxcompose/docker-compose.yml stop

CentOS

ORACLE-BASE – AWX Installation on Oracle Linux 7 (OL7) Using the Docker-Compose Method
awx/INSTALL.md at devel · ansible/awx · GitHub

安装(Docker)

没什么可写的…… 项目下已经说的很清楚了,按照手册运行一下就行了,这里做个简单记录,实际以为「INSTALL.md」主;

#1 环境要求

部署 AWX 的主机上需要安装 Docker、docker-py 这些东西;

部署需要用到 Ansible 来运行 Playbook,所以要安装 Ansible 包;

#2 检出 AWX 源码

git clone …

#3 修改 installer/inventory 文件

修改源码目录下的 installer/inventory 文件:
1)修改 PostgreSQL 的信息:需要使用 PostgreSQL 数据库。要么使用 Docker 镜像,要么使用外部的 PostgreSQL 数据库。我使用了 Docker 镜像打包的 PostgreSQL 数据库,所以要修改postgres_data_dir变量(指定要挂载到镜像中,用于存储数据的目录)。如果使用外部数据库,那就需要安装 PostgreSQL 数据库,然后设置 pg_hostname 变量,参考手册;
2)设置 AWX 的帐号密码:帐号密码信息需要修改admin_useradmin_password变量;

修改之后保存接口;

#4 执行 Playbook 来安装 AWX 服务

# cd installer

# ansible-playbook -i inventory install.yml

#5 访问 AWX 服务

http://ipaddress/

参考文献

awx/installer/inventory
awx/INSTALL.md