9.3. 将数据迁移到 Ansible Automation Platform Operator


将 2.5 容器化或 RPM 安装的 RPM 部署迁移到 OpenShift Container Platform 时,您必须使用凭证创建一个 secret,以便从原始部署访问 PostgreSQL 数据库,然后在创建 Ansible Automation Platform 对象时指定它。

重要

Operator 目前不支持 Event-Driven Ansible 迁移。

先决条件

您已完成以下步骤:

9.3.1. 创建 Ansible Automation Platform 对象

使用以下步骤创建 AnsibleAutomationPlatform 自定义资源对象。

流程

  1. 登录到 Red Hat OpenShift Container Platform
  2. 进入到 Operators Installed Operators
  3. 选择项目命名空间中安装的 Ansible Automation Platform Operator。
  4. 选择 Ansible Automation Platform 选项卡。
  5. 单击 Create AnsibleAutomationPlatform
  6. Seclect YAML 视图 并粘贴以下内容,相应地修改:

    ---
    apiVersion: aap.ansible.com/v1alpha1
    kind: AnsibleAutomationPlatform
    metadata:
      name: myaap
    spec:
      postgres_configuration_secret: external-postgres-configuration
    
      controller:
        disabled: false
        postgres_configuration_secret: external-controller-postgres-configuration
        secret_key_secret: controller-secret-key
    
      hub:
        disabled: false
        postgres_configuration_secret: external-hub-postgres-configuration
        db_fields_encryption_secret: hub-db-fields-encryption-secret
  7. Create
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.