安装并升级 Private Automation Hub

Red Hat Ansible Automation Platform 1.2

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

Red Hat Customer Content Services

摘要

提供反馈:
如果您对本文档有任何改进建议,或发现了任何错误,请在 http://issues.redhat.com 中创建问题。选择 Automation Hub(AAH) 项目并使用 Documentation 组件。

前言

您可以安装 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。通过互联网访问进行安装将检索最新的软件仓库、软件包和依赖项。

  1. 进入 https://access.redhat.com/downloads/content/480
  2. Ansible Automation Platform <latest-version> SetupDownload Now
  3. 解压文件:

    $ tar xvzf ansible-automation-platform-setup-<latest-version>.tar.gz

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

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

  1. 进入 https://access.redhat.com/downloads/content/480
  2. Ansible Automation Platform <latest-version> Setup BundleDownload Now
  3. 解压文件:

    $ tar xvzf ansible-automation-platform-setup-bundle-<latest-version>.tar.gz

第 3 章 编辑清单文件

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

  1. 进入安装程序

    1. [Bundled installer]

      $ cd ansible-automation-platform-setup-bundle-<latest-version>
    2. [Online installer]

      $ cd ansible-automation-platform-setup-<latest-version>
  2. 使用文本编辑器打开清单文件。
  3. 编辑清单文件参数以仅指定 Automaton Hub 主机的安装。请按照以下示例操作。

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

      注意

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

    3. 更新 automationhub_admin_passwordautomation_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 所需的参数更新清单文件后,您可以运行设置脚本。

  1. 运行 setup.sh 脚本

    $ ./setup.sh

安装将开始。

第 5 章 验证安装

安装完成后,您可以使用您插入到清单文件中的 admin 凭证登录来验证您的 Private Automation Hub 已被成功关闭。

  1. 进入到您的私有 Automation Hub
  2. 使用在清单文件中设置的 Admin 凭证登录。

您的私有 Automation Hub 现已准备好进行初始配置。详情请查看以下管理指南:

第 6 章 升级到最新版本

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

  1. 进入 https://access.redhat.com/downloads/content/480
  2. Ansible Automation Platform <latest-version> Setup BundleDownload Now
  3. 解压文件:

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

    $ ./setup.sh

验证您的升级

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

  1. 登录到您的 Private Automation Hub。
  2. 点导航栏中的 ? 图标。
  3. About
  4. 验证服务器版本是否与您升级到的版本匹配。

法律通告

Copyright © 2021 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.