第3章 インベントリーファイルの編集
inventory ファイルを編集して Automation Hub のインストールを指定し、必要なパラメーターを更新します。
インストーラーに移動します。
[バンドルのインストーラー]
$ cd ansible-automation-platform-setup-bundle-<latest-version>
[オンラインインストーラー]
$ cd ansible-automation-platform-setup-<latest-version>
-
テキストエディターで
inventoryファイルを開きます。 inventoryファイルのパラメーターを編集して、Automation Hub ホストのみのインストールを指定します。次の例を参照してください。-
[automationcontroller]インベントリー情報は 空 のままにします。 [automationhub]グループホスト情報を追加します。注記[automationhub]ホストの到達可能な IP アドレスを指定して、ユーザーが別のノードから Private Automation Hub のコンテンツを同期できるようにします。インストール仕様に基づいて、
automationhub_admin_passwordとautomation_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 の両方に対して設定できます。
| 変数 | 必須またはオプション |
|---|---|
|
| 必須 |
|
| オプション |
|
| オプション |
|
| オプション |
|
| オプション |
|
| オプション |
|
| オプション |
|
| オプション |
以下の変数は、Ansible Automation Platform が管理する Red Hat Single Sign-On にのみ設定できます。
| 変数 | 必須またはオプション |
|---|---|
|
|
|
|
| オプション |
|
| オプション |
|
| オプション |
以下の変数は、外部 Red Hat Single Sign-On にのみ設定できます。
| 変数 | 説明 |
|---|---|
|
| 必須 |