第3章 インベントリーファイルの編集

inventory ファイルを編集して Automation Hub のインストールを指定し、必要なパラメーターを更新します。

  1. インストーラーに移動します。

    1. [バンドルのインストーラー]

      $ cd ansible-automation-platform-setup-bundle-<latest-version>
    2. [オンラインインストーラー]

      $ cd ansible-automation-platform-setup-<latest-version>
  2. テキストエディターで inventory ファイルを開きます。
  3. inventory ファイルのパラメーターを編集して、Automation Hub ホストのみのインストールを指定します。次の例を参照してください。

    1. [automationcontroller] インベントリー情報は のままにします。
    2. [automationhub] グループホスト情報を追加します。

      注記

      [automationhub] ホストの到達可能な IP アドレスを指定して、ユーザーが別のノードから Private Automation Hub のコンテンツを同期できるようにします。

    3. インストール仕様に基づいて、automationhub_admin_passwordautomation_pg_password、および追加のパラメーターの値を更新します。

      [automationcontroller]
      
      
      [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

3.1. Automation Hub の Red Hat Single Sign-On 環境への接続

Automation Hub を Red Hat Single Sign-On インストールに接続するには、インストーラー設定スクリプトを実行する前に、inventory ファイルでインベントリー変数を設定します。

Ansible Automation Platform が管理する Red Hat Single Sign-On インストールに接続するには、外部の Red Hat Single Sign-On インストールに接続するのではなく、別の変数セットを設定する必要があります。

3.1.1. Automation Hub を Red Hat Single Sign-On インスタンスに接続するためのインベントリーファイル変数

Automation Hub と Red Hat Single Sign-On を初めてインストールする場合、または既存の Ansible Automation Platform が管理する Red Hat Single Sign-On がある場合は、Ansible Automation Platform が管理する Red Hat Single Sign-On の変数を設定します。

Automation Hub をインストールし、これを既存の外部で管理される Red Hat Single Sign-On インスタンスに接続する場合は、外部で管理される Red Hat Single Sign-On の変数を設定します。

これらのインベントリー変数の詳細は、Red Hat Ansible Automation Platform インストールガイドAnsible Automation Hub 変数 を参照してください。

以下の変数は、Ansible Automation Platform の管理対象および外部の Red Hat Single Sign-On の両方に対して設定できます。

変数必須またはオプション

sso_console_admin_password

必須

sso_console_admin_username

オプション

sso_use_https

オプション

sso_redirect_host

オプション

sso_ssl_validate_certs

オプション

sso_automation_platform_realm

オプション

sso_automation_platform_realm_displayname

オプション

sso_automation_platform_login_theme

オプション

以下の変数は、Ansible Automation Platform が管理する Red Hat Single Sign-On にのみ設定できます。

変数必須またはオプション

sso_keystore_password

sso_use_https = true の場合のみ必須

sso_custom_keystore_file

オプション

sso_keystore_file_remote

オプション

sso_keystore_name

オプション

以下の変数は、外部 Red Hat Single Sign-On にのみ設定できます。

変数説明

sso_host

必須