4. Ansible Execution Agent¶
4.1. はじめに¶
4.2. システム構成¶
4.2.1. 構成パターン¶
構成
|
説明
|
Ansibleスケールアウト可否
|
|---|---|---|
Ansible Execution Agent
|
Exastro IT Automation システムと Ansible Execution Agent を別環境(クローズド環境)に構成可能
Ansible BuilderとAnsible Runnerを使った動的なAnsible作業実行環境の生成 (任意の環境・モジュールを利用可能)
|
○ (Kubernetes環境に限る)
|
4.2.2. システム構成イメージ¶
4.3. システム要件¶
4.3.1. ハードウェア要件¶
動作確認済み構成
リソース種別 |
要求リソース |
|---|---|
CPU |
2 Cores (3.0 GHz, x86_64) |
Memory |
6GB |
Storage |
40GB |
リソース種別 |
要求リソース |
|---|---|
CPU |
4 Cores (3.0 GHz, x86_64) |
Memory |
8GB |
Storage |
80GB |
警告
4.3.2. OS要件¶
OS種別 |
バージョン |
|---|---|
RHEL9 |
Red Hat Enterprise Linux release 9.7 (Plow) |
RHEL10 |
Red Hat Enterprise Linux release 10.1 (Coughlan) |
Almalinux9 |
AlmaLinux release 9.7 (Moss Jungle Cat) |
- SELinuxがPermissiveに変更されていること。
$ sudo vi /etc/selinux/config
SELINUX=Permissive
$ getenforce
Permissive
4.3.3. ソフトウェア要件¶
以下の条件が満たされている必要があります。
動作確認済みバージョンの Python がインストールされていること
インストールを実行するユーザで python3 と pip3 コマンドが実行できること
注釈
ソフトウェア
|
バージョン(コミュニティ版)
|
バージョン(RHELサポート付きライセンス版)
|
|---|---|---|
OS種別
|
RHEL9/Almalinux9
|
RHEL9
|
Python
|
3.11
|
3.11
|
ansible-builder
|
3.1.1
|
3.1.1-1.2.el9ap
|
ansible-runner
|
2.4.3
|
2.4.2-3.el9ap
|
ソフトウェア
|
バージョン(コミュニティ版)
|
バージョン(RHELサポート付きライセンス版)
|
|---|---|---|
OS種別
|
RHEL10
|
RHEL10
|
Python
|
3.12
|
3.12
|
ansible-builder
|
3.1.1
|
3.1.1-2.el10ap
|
ansible-runner
|
2.4.3
|
2.4.2-2.el10ap
|
インストールパッケージ一覧¶
各種パッケージ一覧
表 4.7 Red Hat Enterprize Linux¶ パッケージ名
説明
RHEL 9
RHEL 10
yum-utils
dnf download / yumdownloaderコマンド実行パッケージ
〇
〇
createrepo
ローカルリポジトリ(オフライン作業時に必要)
〇
〇
gcc
C コンパイラ
〇
〇
gcc-c++
C++ コンパイラ
〇
〇
make
ビルド制御ツール
〇
〇
kernel-headers
カーネルヘッダーファイル
〇
〇
glibc
glibcライブラリ本体
〇
〇
glibc-common
glibcの共通ファイル
〇
〇
glibc-headers
glibcヘッダー
〇
〇
glibc-devel
glibc標準ヘッダー
〇
〇
langpacks-en
英語ロケール
〇
〇
python3.11
Python 3.11 実行環境
〇
python3.11-pip
Pythonパッケージ管理
〇
pthon3.11-devel
Python開発ヘッダー(ビルド用)
〇
python3.12
Python 3.12 実行環境
〇
python3.12-pip
Pythonパッケージ管理
〇
python3.12-devel
Python開発ヘッダー(ビルド用)
〇
keyrings.alt
root用Pythonパッケージ
〇
〇
pip
pipアップグレード
〇
〇
requests
Exastro ITA との REST API 通信
〇
〇
poetry (version1.6.0)
Python依存関係管理
〇
〇
cryptography
暗号化ライブラリ
〇
〇
git
ソースコード管理、バージョン管理
〇
〇
dokcer-compose
コンテナオーケストレーション(v2.20.3推奨)
〇
〇
ansible-builder
コンテナイメージビルドツール
〇
〇
ansible-runner
ansible実行環境
〇
〇
表 4.8 AlmaLinux¶ パッケージ名
説明
AlmaLinux 9
yum-utils
yumdownloaderコマンド実行パッケージ
〇
createrepo
ローカルリポジトリ(オフライン作業時に必要)
〇
gcc
C コンパイラ
〇
gcc-c++
C++ コンパイラ
〇
make
ビルド制御ツール
〇
kernel-headers
カーネルヘッダーファイル
〇
glibc
glibcライブラリ本体
〇
glibc-common
glibcの共通ファイル
〇
glibc-headers
glibcヘッダー
〇
glibc-devel
glibc標準ヘッダー
〇
langpacks-en
英語ロケール
〇
python3.11
Python 3.11 実行環境
〇
python3.11-pip
Pythonパッケージ管理
〇
python3.11-devel
Python開発ヘッダー(ビルド用)
〇
python3.12
Python 3.12 実行環境
python3.12-pip
Pythonパッケージ管理
python3.12-devel
Python開発ヘッダー(ビルド用)
keyrings.alt
root用Pythonパッケージ
〇
pip
pipアップグレード
〇
requests
Exastro ITA との REST API 通信
〇
poetry (version1.6.0)
Python依存関係管理
〇
cryptography
暗号化ライブラリ
〇
git
ソースコード管理、バージョン管理
〇
docker-compose
コンテナオーケストレーション(v2.20.3推奨)
〇
ansible-builder
コンテナイメージビルドツール
〇
ansible-runner
ansible実行環境
〇
※ansible-builder/ansible-runnerのバージョンについては、 動作確認済みバージョン情報(RHEL9/RHEL10/Almalinux9) を参照してください。
RHELサポート付きライセンス利用の場合¶
Red Hat コンテナーレジストリーの認証
podman login registry.redhat.io
利用するリポジトリ
RHEL9の場合:
rhel-9-for-x86_64-baseos-rpms rhel-9-for-x86_64-appstream-rpms ansible-automation-platform-2.5-for-rhel-9-x86_64-rpms
RHEL10の場合:
rhel-10-for-x86_64-baseos-rpms rhel-10-for-x86_64-appstream-rpms ansible-automation-platform-2.6-for-rhel-10-x86_64-rpms
有効化されているリポジトリの確認、リポジトリの有効化
RHEL9の場合:
sudo subscription-manager repos --list-enabled sudo subscription-manager repos --enable=rhel-9-for-x86_64-baseos-rpms sudo subscription-manager repos --enable=rhel-9-for-x86_64-appstream-rpms sudo subscription-manager repos --enable=ansible-automation-platform-2.5-for-rhel-9-x86_64-rpms
RHEL10の場合:
sudo subscription-manager repos --list-enabled sudo subscription-manager repos --enable=rhel-10-for-x86_64-baseos-rpms sudo subscription-manager repos --enable=rhel-10-for-x86_64-appstream-rpms sudo subscription-manager repos --enable=ansible-automation-platform-2.6-for-rhel-10-x86_64-rpms
4.3.4. 通信要件¶
接続先のITA
各種インストール、及びモジュール、BaseImage取得先等(インターネットへの接続を含む)
作業対象サーバ
4.3.5. その他の要件¶
Ansible builderで使用する動作確認済みのベースイメージ¶
動作確認済みビルドのベースイメージ
ベースイメージ種別 |
イメージ取得先 |
備考 |
|---|---|---|
ubi9 |
registry.access.redhat.com/ubi9/ubi-init:latest |
|
rhel9 |
registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel9:latest |
サポート付きライセンス利用の場合 |