搜索

1.2. 安装 Ansible Automation Platform Central 身份验证以用于自动化 hub

download PDF

Ansible Automation Platform Central Authentication 安装将包含在您的 Red Hat Ansible Automation Platform 安装程序中。按照以下步骤安装 Ansible Automation Platform,然后在清单文件中配置必要的参数,以成功安装 Ansible Automation Platform 和中央身份验证。

1.2.1. 选择并获取 Red Hat Ansible Automation Platform 安装程序

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

注意

需要有效的红帽客户帐户才能访问红帽客户门户上的 Red Hat Ansible Automation Platform 安装程序下载。

使用互联网访问进行安装

如果您的 Red Hat Enterprise Linux 环境连接到互联网,请选择 Red Hat Ansible Automation Platform 安装程序。使用互联网访问进行安装会检索最新的软件仓库、软件包和依赖项。选择以下方法之一来设置 Ansible Automation Platform 安装程序。

Tarball 安装

  1. 进入 Red Hat Ansible Automation Platform 下载页面。
  2. Ansible Automation Platform <latest-version> SetupDownload Now
  3. 解压文件:

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

RPM 安装

  1. 安装 Ansible Automation Platform 安装程序软件包

    v.2.4 for RHEL 8 for x86_64

    $ sudo dnf install --enablerepo=ansible-automation-platform-2.4-for-rhel-8-x86_64-rpms ansible-automation-platform-installer

    v.2.4 for RHEL 9 for x86-64

    $ sudo dnf install --enablerepo=ansible-automation-platform-2.4-for-rhel-9-x86_64-rpms ansible-automation-platform-installer
注意

dnf install 启用存储库,因为默认禁用存储库。

使用 RPM 安装程序时,文件位于 /opt/ansible-automation-platform/installer 目录下。

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

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

  1. 进入 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

1.2.2. 配置 Red Hat Ansible Automation Platform 安装程序

在运行安装程序前,请编辑安装程序软件包中找到的清单文件,以配置自动化中心和 Ansible Automation Platform Central 身份验证的安装。

注意

为 [automationhub] 主机提供可访问的 IP 地址,以确保用户可以从不同节点同步私有 Automation Hub 中的内容,并将新镜像推送到容器注册表。

  1. 进入安装程序目录:

    1. 在线安装程序:

      $ cd ansible-automation-platform-setup-<latest-version>
    2. 捆绑的安装程序:

      $ cd ansible-automation-platform-setup-bundle-<latest-version>
  2. 使用文本编辑器打开 inventory 文件。
  3. 编辑 [automationhub] 下的清单文件参数以指定自动化 hub 主机的安装:

    1. 使用 IP 地址或 FQDN 作为自动化中心位置,在 [automationhub] 下添加组主机信息。
    2. 根据您的安装规格,输入 automationhub_admin_password,automationhub_pg_password 的密码,以及任何额外的参数。
  4. sso_keystore_password 字段中输入密码。
  5. 编辑 [SSO] 下的清单文件参数,以指定要在其上安装中央身份验证的主机:

    1. sso_console_admin_password 字段中输入密码,并根据您的安装规格输入其他参数。

1.2.3. 运行 Red Hat Ansible Automation Platform 安装程序

更新清单文件后,使用安装程序软件包中找到的 setup.sh playbook 运行安装程序。

  1. 运行 setup.sh playbook:

    $ ./setup.sh

1.2.4. 以中央身份验证管理员用户身份登录

安装 Red Hat Ansible Automation Platform 后,以 admin 用户身份使用您在清单文件中指定的 admin 凭据登录中央身份验证服务器。

  1. 进入到您的 Ansible Automation Platform Central Authentication 实例。
  2. 使用在清单文件的 sso_console_admin_usernamesso_console_admin_password fields 中指定的 admin 凭证进行登录。

成功安装 Ansible Automation Platform Central 身份验证后,并且登录 admin 用户后,您可以按照以下步骤添加用户存储提供商(如 LDAP)。

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.