安装并升级 Private Automation Hub


Red Hat Ansible Automation Platform 2.3

安装一个 Private Automation Hub 实例,或在在线或离线 Red Hat Enterprise Linux 8.4 和 9 物理或者虚拟机上升级到新版本。

Red Hat Customer Content Services

摘要

提供反馈:
如果您对本文档有任何改进建议,或发现错误,请联系技术支持 https://access.redhat.com,使用 Docs组件在 Ansible Automation PlatformJIRA 项目中创建一个问题。

前言

您可以安装 Private Automation Hub,或使用有效的 Red Hat Enterprise Linux (RHEL) 8.4 或更高版本,或 RHEL 9 或更高版本虚拟机或物理机器上升级到新版本。

使开源包含更多

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。我们从这四个术语开始:master、slave、黑名单和白名单。由于此项工作十分艰巨,这些更改将在即将推出的几个发行版本中逐步实施。有关更多详情,请参阅我们的首席技术官 Chris Wright 提供的消息

第 1 章 系统要求

安装 Private Automation Hub 实例需要以下内容:

Expand
表 1.1. 系统要求
 必需

订阅

有效的 Red Hat Ansible Automation Platform

OS

RHEL 8.4 或更高版本 64-bit (x86),或 RHEL 9.0 或更高版本 64-bit (x86)

Ansible

需要 2.14 版本

RAM

最小 8 GB

CPU

最少 2 个

磁盘

60 GB 专用硬盘空间

取决于存储的集合大小

浏览器

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

数据库

PostgreSQL 版本 13

注意

您不能在同一节点上安装 Ansible Automation Platform 和私有自动化中心实例。清单(inventory) 文件可以处理 Ansible Automation Platform 和 automation hub。这些说明仅用于安装 Ansible Automation Platform。

第 2 章 在线或者离线安装

选择根据 Red Hat Enterprise Linux 环境互联网连接安装私有自动化中心所需的 Ansible Automation Platform 安装程序。查看以下场景,并确定哪个 Ansible Automation Platform 安装程序满足您的需要。

注意

您必须具有有效的红帽客户帐户,才能访问红帽客户门户网站上的 Ansible Automation Platform 安装程序下载。

使用互联网访问进行安装

如果您的 Red Hat Enterprise Linux 环境连接到互联网,请使用 Ansible Automation Platform 安装程序安装私有自动化中心。通过互联网访问进行安装将检索最新的软件仓库、软件包和依赖项。

  1. 进入 Download Red Hat Ansible Automation Platform
  2. Ansible Automation Platform <latest-version> SetupDownload Now
  3. 解压文件:

    $ tar xvzf ansible-automation-platform-setup-<latest-version>.tar.gz
    Copy to Clipboard Toggle word wrap

在没有互联网访问的情况下安装

如果您无法访问互联网,或者不想从在线存储库安装独立的组件和依赖项,请使用 Ansible Automation Platform Bundle 安装程序安装私有自动化中心。仍然需要访问 Red Hat Enterprise Linux 软件仓库。所有其他依赖项都包含在 tar 归档中。

  1. 进入 Download Red Hat Ansible Automation Platform
  2. Ansible Automation Platform <latest-version> Setup BundleDownload Now
  3. 解压文件:

    $ tar xvzf ansible-automation-platform-setup-bundle-<latest-version>.tar.gz
    Copy to Clipboard Toggle word wrap

第 3 章 编辑清单文件

编辑清单文件以指定 Automation Hub 安装,并更新所需的参数。

  1. 导航到安装程序。

    1. [Bundled installer]

      $ cd ansible-automation-platform-setup-bundle-<latest-version>
      Copy to Clipboard Toggle word wrap
    2. [Online installer]

      $ cd ansible-automation-platform-setup-<latest-version>
      Copy to Clipboard Toggle word wrap
  2. 使用文本编辑器打开清单文件。
  3. 编辑 inventory 文件参数,以只指定自动化中心主机的安装。请参考以下示例。

    1. [automationcontroller] 清单信息留空
    2. 添加 [automationhub] 组主机信息。

      注意

      [automationhub] 主机提供一个可访问的 IP 地址,以确保用户可以从不同节点的 Private Automation Hub 同步内容。

    3. 更新 automationhub_admin_passwordautomationhub_pg_password 的值,以及根据您的安装规格的任何其他参数:

      示例

      [automationcontroller]
      
      
      [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
      Copy to Clipboard Toggle word wrap

要将自动化中心连接到 Red Hat Single Sign-On 安装,请在运行安装程序设置脚本前在清单文件中配置清单变量。

在连接到由 Ansible Automation Platform 管理的 Red Hat Single Sign-On 安装时,您必须配置不同的变量集合,而不是连接到外部 Red Hat Single Sign-On 安装。

如果您要首次安装自动化中心和红帽单点登录,或者您现有的 Ansible Automation Platform 管理 Red Hat Single Sign-On,请配置 Ansible Automation Platform 管理的 Red Hat Single Sign-On 变量。

如果您要安装自动化中心,且您想要将其连接到现有的外部管理的 Red Hat Single Sign-On 实例,请为外部管理的 Red Hat Single Sign-On 配置变量。

有关这些清单变量的更多信息,请参阅 Red Hat Ansible Automation Platform 安装指南中的 Red Hat Single Sign-On variables

可以为 Ansible Automation Platform 管理和外部 Red Hat Single Sign-On 配置以下变量:

Expand
变量必需或可选

sso_console_admin_password

必填

sso_console_admin_username

选填

sso_use_https

选填

sso_redirect_host

选填

sso_ssl_validate_certs

选填

sso_automation_platform_realm

选填

sso_automation_platform_realm_displayname

选填

sso_automation_platform_login_theme

选填

以下变量只能为 Ansible Automation Platform 管理 Red Hat Single Sign-On 配置:

Expand
变量必需或可选

sso_keystore_password

仅在 sso_use_https = true 时才需要

sso_custom_keystore_file

选填

sso_keystore_file_remote

选填

sso_keystore_name

选填

以下变量只能为外部 Red Hat Single Sign-On 配置:

Expand
变量描述

sso_host

必填

第 4 章 使用设置脚本安装自动化中心

配置适当的清单变量后,运行安装程序设置脚本。

4.1. 运行设置脚本

在完成使用安装私有 Automation Hub 所需的参数更新清单文件后,您可以运行设置脚本。

  • 运行 setup.sh 脚本来开始安装:

    $ ./setup.sh
    Copy to Clipboard Toggle word wrap

4.2. 验证红帽单点登录连接

安装程序使用 Red Hat Single Sign-On 变量来设置 Keycloak 域和客户端。

要验证您是否成功连接到现有的 Red Hat Single Sign-On 安装,请检查 settings.py 包含 Red Hat Single Sign-On 主机信息、域名称、密钥和 secret。

第 5 章 验证安装

安装完成后,您可以使用以下步骤验证私有自动化中心是否已成功安装:

  1. 进入您的私有自动化中心。
  2. 使用您在清单文件中设置的管理员凭据登录。

您的私有自动化中心现在可以进行初始配置。详情请查看以下管理指南:

第 6 章 升级到最新版本

您可以使用 Ansible Automation Platform 设置捆绑包安装程序将 Private Automation Hub 升级到最新版本。使用安装 Private Automation Hub 时配置的清单文件执行此升级。

  1. 进入 Download Red Hat Ansible Automation Platform
  2. Ansible Automation Platform <latest-version> Setup BundleDownload Now
  3. 解压文件:

    $ tar xvzf ansible-automation-platform-setup-bundle-<latest-version>.tar.gz
    Copy to Clipboard Toggle word wrap
  4. 将初始安装中的配置信息复制到清单文件中。
  5. 运行 setup.sh 脚本

    $ ./setup.sh
    Copy to Clipboard Toggle word wrap

验证您的升级

您可以通过查看服务器版本信息来验证是否成功升级了 Private Automation Hub。

  1. 登录到您的私有自动化中心。
  2. 点导航栏中的 ? 图标。
  3. About
  4. 验证服务器版本是否与您升级到的版本匹配。

法律通告

Copyright © 2024 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat