第 3 章 容器名称


容器化安装程序使用 Podman 在 Red Hat Enterprise Linux 上部署 Ansible Automation Platform,它在主机机器上在容器中运行平台。客户管理产品和基础架构生命周期。

3.1. 容器增长拓扑

增长拓扑适用于开始使用 Ansible Automation Platform 的组织,不需要冗余或更高的计算来实现大量自动化。此拓扑允许较小的占用空间部署。

3.1.1. 基础架构拓扑

下图显示了红帽已经测试过此部署模型的基础架构拓扑,供客户在自我管理 Ansible Automation Platform 时使用:

图 3.1. 基础架构拓扑图

单个虚拟机已使用以下组件要求进行测试:

Expand
表 3.1. 虚拟机要求
要求最低要求

RAM

16 GB

CPU

4

本地磁盘

  • 总可用磁盘空间:60 GB
  • 安装目录:15 GB (如果在专用分区中)
  • 用于在线安装的 /var/tmp: 1 GB
  • 用于离线或捆绑安装的 /var/tmp: 3 GB
  • 临时目录(默认为 /tmp)用于离线或捆绑安装:10GB

磁盘 IOPS

3000

注意

如果使用 hub_seed_collections=true 执行捆绑的增长拓扑安装,则建议使用 32 GB RAM。请注意,通过此配置,安装时间将增加,并且可能需要 45 分钟或更长时间来完成集合。

Expand
表 3.2. 基础架构拓扑
用途组名称示例

所有 Ansible Automation Platform 组件

  • automationgateway
  • automationcontroller
  • automationhub
  • automationeda
  • database

3.1.2. 测试的系统配置

红帽已测试了以下配置来安装和运行 Red Hat Ansible Automation Platform:

Expand
表 3.3. 系统配置
类型描述

订阅

  • 有效的 Red Hat Ansible Automation Platform 订阅
  • 有效的 Red Hat Enterprise Linux 订阅(使用 BaseOS 和 AppStream 软件仓库)
 

操作系统

  • Red Hat Enterprise Linux 9.2 或更高版本的 Red Hat Enterprise Linux 9 次版本。
  • Red Hat Enterprise Linux 10 或更高版本的 Red Hat Enterprise Linux 10 次版本。
 

CPU 架构

x86_64, AArch64, s390x (IBM Z), ppc64le (IBM Power)

 

ansible-core

  • 对于安装: ansible-core 版本 2.14。
  • 对于 Ansible Automation Platform 操作: ansible-core 版本 2.16。
  • 安装程序使用 RHEL 9 AppStream 存储库中的 ansible-core 2.14 软件包。
  • Ansible Automation Platform 为其操作捆绑包 ansible-core 版本 2.16,因此您不需要手动安装它。

浏览器

当前支持的 Mozilla Firefox 或 Google Chrome 版本。

 

数据库

PostgreSQL 15

外部(客户支持)数据库需要 ICU 支持。

3.1.3. 网络端口

Red Hat Ansible Automation Platform 使用多个端口与其服务进行通信。这些端口必须处于打开状态,并可用于 Red Hat Ansible Automation Platform 服务器的传入连接,以便它正常工作。确保这些端口可用,且服务器防火墙不会阻止。

Expand
表 3.4. 网络端口和协议
端口号协议服务Source目的地

80/443

TCP

HTTP/HTTPS

Event-Driven Ansible

Automation hub

80/443

TCP

HTTP/HTTPS

Event-Driven Ansible

自动化控制器

80/443

TCP

HTTP/HTTPS

自动化控制器

Automation hub

80/443

TCP

HTTP/HTTPS

平台网关

自动化控制器

80/443

TCP

HTTP/HTTPS

平台网关

Automation hub

80/443

TCP

HTTP/HTTPS

平台网关

Event-Driven Ansible

5432

TCP

PostgreSQL

Event-Driven Ansible

外部数据库

5432

TCP

PostgreSQL

平台网关

外部数据库

5432

TCP

PostgreSQL

Automation hub

外部数据库

5432

TCP

PostgreSQL

自动化控制器

外部数据库

6379

TCP

Redis

Event-Driven Ansible

Redis 容器

6379

TCP

Redis

平台网关

Redis 容器

8443

TCP

HTTPS

平台网关

平台网关

27199

TCP

Receptor

自动化控制器

执行容器

3.1.4. 清单文件示例

使用示例清单文件为此拓扑执行安装:

# This is the Ansible Automation Platform installer inventory file intended for the container growth deployment topology.
# This inventory file expects to be run from the host where Ansible Automation Platform will be installed.
# Consult the Ansible Automation Platform product documentation about this topology's tested hardware configuration.
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/tested_deployment_models/container-topologies
#
# Consult the docs if you are unsure what to add
# For all optional variables consult the included README.md
# or the Ansible Automation Platform documentation:
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation

# This section is for your platform gateway hosts
# -----------------------------------------------------
[automationgateway]
aap.example.org

# This section is for your automation controller hosts
# -----------------------------------------------------
[automationcontroller]
aap.example.org

# This section is for your automation hub hosts
# -----------------------------------------------------
[automationhub]
aap.example.org

# This section is for your Event-Driven Ansible controller hosts
# -----------------------------------------------------
[automationeda]
aap.example.org

# This section is for the Ansible Automation Platform database
# -----------------------------------------------------
[database]
aap.example.org

[all:vars]
# Ansible
ansible_connection=local

# Common variables
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#general-variables
# -----------------------------------------------------
postgresql_admin_username=postgres
postgresql_admin_password=<set your own>

registry_username=<your RHN username>
registry_password=<your RHN password>

redis_mode=standalone

# Platform gateway
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#platform-gateway-variables
# -----------------------------------------------------
gateway_admin_password=<set your own>
gateway_pg_host=aap.example.org
gateway_pg_password=<set your own>

# Automation controller
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#controller-variables
# -----------------------------------------------------
controller_admin_password=<set your own>
controller_pg_host=aap.example.org
controller_pg_password=<set your own>
controller_percent_memory_capacity=0.5

# Automation hub
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#hub-variables
# -----------------------------------------------------
hub_admin_password=<set your own>
hub_pg_host=aap.example.org
hub_pg_password=<set your own>
hub_seed_collections=false

# Event-Driven Ansible controller
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#event-driven-ansible-variables
# -----------------------------------------------------
eda_admin_password=<set your own>
eda_pg_host=aap.example.org
eda_pg_password=<set your own>
Copy to Clipboard Toggle word wrap

只有在远程主机上安装时,才需要 SSH 密钥。如果进行一个基于本地虚拟机的安装,您可以使用 ansible_connection=local

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat