4.6. 安装 Ansible Automation Platform 设置捆绑包


对于断开连接的安装,强烈建议使用 "bundle" 版本,因为它附带了 Ansible Automation Platform 的 RPM 内容,以及在安装过程中上传到私有自动化中心的默认执行环境镜像。

4.6.1. 下载设置捆绑包

流程

  1. 进入 https://access.redhat.com/downloads/content/480 并点 Download Now for the Ansible Automation Platform 2.3 Setup Bundle 下载 Ansible Automation Platform setup 捆绑包软件包。

4.6.1.1. 安装 Setup 捆绑包

安装捆绑包的下载和安装需要位于自动化控制器中。在自动化控制器中,解压缩捆绑包,编辑清单文件并运行设置。

  1. 解压捆绑包

    $ tar xvf \
       ansible-automation-platform-setup-bundle-2.3-1.2.tar.gz
    $ cd ansible-automation-platform-setup-bundle-2.3-1.2
  2. 编辑清单文件使其包含所需选项

    1. automationcontroller 组
    2. automationhub 组
    3. admin_password
    4. pg_password
    5. automationhub_admin_password
    6. automationhub_pg_host, automationhub_pg_port
    7. automationhub_pg_password

      清单示例

      [automationcontroller]
      automationcontroller.example.org ansible_connection=local
      
      [automationcontroller:vars]
      peers=execution_nodes
      
      [automationhub]
      automationhub.example.org
      
      [all:vars]
      admin_password='password123'
      
      pg_database='awx'
      pg_username='awx'
      pg_password='dbpassword123'
      
      receptor_listener_port=27199
      
      automationhub_admin_password='hubpassword123'
      
      automationhub_pg_host='automationcontroller.example.org'
      automationhub_pg_port='5432'
      
      automationhub_pg_database='automationhub'
      automationhub_pg_username='automationhub'
      automationhub_pg_password='dbpassword123'
      automationhub_pg_sslmode='prefer'
      注意

      清单应该在安装后保持不变,因为它用于备份、恢复和升级功能。如果清单文件包含密码,请考虑将备份副本保留在安全位置。

  3. 以 root 用户身份运行 AAP setup 捆绑包可执行文件

    $ sudo -i
    # cd /path/to/ansible-automation-platform-setup-bundle-2.3-1.2
    # ./setup.sh
  4. 安装完成后,进入安装清单文件中指定的自动化控制器节点的 Fully Qualified Domain Name (FQDN)。
  5. 使用安装清单文件中指定的管理员凭证登录。
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.