5.3. Ansible Automation Platform Operator へのデータの移行
コンテナーまたは RPM でインストールした 2.5 のデプロイメントを OpenShift Container Platform に移行する場合は、PostgreSQL データベースにアクセスするための認証情報を含むシークレットを元のデプロイメントから作成し、Ansible Automation Platform オブジェクトを作成するときにそのシークレットを指定する必要があります。
重要
現時点では、Operator は Event-Driven Ansible の移行をサポートしていません。
前提条件
以下の手順を完了した。
5.3.1. Ansible Automation Platform オブジェクトの作成
AnsibleAutomationPlatform カスタムリソースオブジェクトを作成するには、次の手順を使用します。
手順
- Red Hat OpenShift Container Platform にログインします。
-
に移動します。 - プロジェクトの namespace にインストールされている Ansible Automation Platform Operator を選択します。
- Ansible Automation Platform タブを選択します。
- をクリックします。
YAML view を選択し、次の内容を適宜変更して貼り付けます。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow --- 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
--- 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
- をクリックします。