安装并升级 Private Automation Hub
安装一个 Private Automation Hub 实例,或在在线或离线 Red Hat Enterprise Linux 7 和 8 物理或者虚拟机上升级到新版本。
摘要
前言
您可以安装 Private Automation Hub,或使用有效的 Red Hat Ansible Automation Platform 订阅在 Red Hat Enterprise Linux 7 或 8 虚拟机或物理机器上升级到新版本。
第 1 章 系统要求
安装 Private Automation Hub 实例需要以下内容:
表 1.1. 系统要求
必需 | |
---|---|
订阅 | 有效的 Red Hat Ansible Automation Platform |
OS | Red Hat Enterprise Linux 7.7 或更高的 64 位版本(x86)或 8.2 或更高的 64 位版本(x86) |
Ansible | 需要版本 2.9 |
RAM | 最小 4GB |
CPU | 最少 2 个 |
磁盘 | 20GB 专用的硬盘空间 取决于存储的集合大小 |
浏览器 | 当前支持的 Mozilla FireFox 或 Google Chrome 版本 |
数据库 | PostgreSQL 版本 10 |
您不能在同一节点上安装 Ansible Tower 和 Private Automation Hub 实例。清单(inventory)
文件可以处理 Ansible Tower 和 Automation Hub 的安装。这些说明仅用于安装 Automation Hub。
第 2 章 在线或者离线安装
根据 Red Hat Enterprise Linux 环境互联网的连接,选择 Ansible Automation Platform 安装程序来安装 Private Automation Hub。查看下面的场景,并确定哪些 Ansible Automation Platform 安装程序满足您的需要。
要访问红帽客户门户网站中的 Ansible Automation Platform 安装程序下载,需要一个有效的红帽客户帐户。
使用互联网访问进行安装
如果您的 Red Hat Enterprise Linux 环境连接到互联网,使用 Ansible Automation Platform 安装程序安装 Private Automation Hub。通过互联网访问进行安装将检索最新的软件仓库、软件包和依赖项。
- 进入 https://access.redhat.com/downloads/content/480
- 为 Ansible Automation Platform <latest-version> Setup 点 Download Now。
解压文件:
$ tar xvzf ansible-automation-platform-setup-<latest-version>.tar.gz
在没有互联网访问的情况下安装
如果您无法访问互联网,或者不想安装来自在线存储库中的组件和依赖组件,请使用 Ansible Automation Platform Bundle 安装程序安装 Private Automation Hub。仍然需要访问 Red Hat Enterprise Linux 软件仓库。所有其他依赖项都包含在 tar 归档中。
- 进入 https://access.redhat.com/downloads/content/480
- 为 Ansible Automation Platform <latest-version> Setup Bundle 点 Download Now。
解压文件:
$ tar xvzf ansible-automation-platform-setup-bundle-<latest-version>.tar.gz
第 3 章 编辑清单文件
编辑清单
文件以指定 Automation Hub 安装,并更新所需的参数。
进入安装程序
[Bundled installer]
$ cd ansible-automation-platform-setup-bundle-<latest-version>
[Online installer]
$ cd ansible-automation-platform-setup-<latest-version>
-
使用文本编辑器打开
清单
文件。 编辑
清单
文件参数以仅指定 Automaton Hub 主机的安装。请按照以下示例操作。-
将
[tower]
清单信息留空。 添加
[automationhub]
组主机信息。注意为
[automationhub]
主机提供一个可访问的 IP 地址,以确保用户可以从不同节点的 Private Automation Hub 同步内容。更新
automationhub_admin_password
和automation_pg_password
的值,以及根据您的安装规格的任何其他参数:示例
[tower] [automationhub] <reachable-ip> ansible_connection=local [all:vars] automationhub_admin_password= <PASSWORD> automationhub_pg_host='' automationhub_pg_port='' automationhub_pg_database='automationhub' automationhub_pg_username='automationhub' automationhub_pg_password=<PASSWORD> automationhub_pg_sslmode='prefer' # The default install will deploy a TLS enabled Automation Hub. # If for some reason this is not the behavior wanted one can # disable TLS enabled deployment. # # automationhub_disable_https = False # The default install will generate self-signed certificates for the Automation # Hub service. If you are providing valid certificate via automationhub_ssl_cert # and automationhub_ssl_key, one should toggle that value to True. # # automationhub_ssl_validate_certs = False # SSL-related variables # If set, this will install a custom CA certificate to the system trust store. # custom_ca_cert=/path/to/ca.crt # Certificate and key to install in Automation Hub node # automationhub_ssl_cert=/path/to/automationhub.cert # automationhub_ssl_key=/path/to/automationhub.key
-
将
第 4 章 运行设置脚本
在完成使用安装私有 Automation Hub 所需的参数更新清单
文件后,您可以运行设置脚本。
运行
setup.sh
脚本$ ./setup.sh
安装将开始。
第 5 章 验证安装
安装完成后,您可以使用您插入到清单
文件中的 admin 凭证登录来验证您的 Private Automation Hub 已被成功关闭。
- 进入到您的私有 Automation Hub
-
使用在
清单
文件中设置的 Admin 凭证登录。
您的私有 Automation Hub 现已准备好进行初始配置。详情请查看以下管理指南:
第 6 章 升级到最新版本
您可以使用 Ansible Automation Platform 设置捆绑包安装程序将 Private Automation Hub 升级到最新版本。使用安装 Private Automation Hub 时配置的清单
文件执行此升级。
- 进入 https://access.redhat.com/downloads/content/480
- 为 Ansible Automation Platform <latest-version> Setup Bundle 点 Download Now。
解压文件:
$ tar xvzf ansible-automation-platform-setup-bundle-<latest-version>.tar.gz
-
将初始安装中的配置信息复制到
清单
文件中。 运行
setup.sh
脚本$ ./setup.sh
验证您的升级
您可以通过查看服务器版本信息来验证是否成功升级了 Private Automation Hub。
- 登录到您的 Private Automation Hub。
- 点导航栏中的 ? 图标。
- 点 About。
- 验证服务器版本是否与您升级到的版本匹配。