Ansibleロール: pacemaker

説明
このロールは、HAクラスターを設定および構成するためのpacemaker/corosyncサービスを提供します。
インストール
ansible-galaxy install skriptfabrik.pacemaker
要件
なし
ロール変数
変数 |
型 |
デフォルト |
コメント |
corosync_authkey_file |
文字列 |
/etc/corosync/authkey |
corosync認証キーのファイルパス |
corosync_bindnet_interface |
文字列 |
|
クラスター通信に使用するインターフェース |
corosync_cluster_name |
文字列 |
corosync-cluster |
corosyncクラスター名 |
corosync_config_file |
文字列 |
/etc/corosync/corosync.conf |
corosync設定ファイルのパス |
corosync_log_file |
文字列 |
/var/log/corosync/corosync.log |
corosyncログファイルのパス |
pacemaker_cluster_group |
文字列 |
|
クラスターのansibleホストグループ名 |
pacemaker_cluster_properties |
辞書のリスト |
|
クラスター設定の定義 |
pacemaker_cluster_resources |
辞書のリスト |
|
クラスターリソースの定義 |
pacemaker_cluster_constraints |
辞書のリスト |
|
クラスター制約の定義 |
pacemaker_cluster_properties
定義辞書
キー |
型 |
デフォルト |
コメント |
name |
文字列 |
|
クラスターのプロパティ名 |
state |
文字列 |
present |
present : リソースを作成または更新
absent : リソースを削除 |
value |
混合型 |
null |
クラスターのプロパティ値 (値が定義されていない場合はデフォルトに設定) |
pacemaker_cluster_resources
定義辞書
キー |
型 |
デフォルト |
コメント |
resource_id |
文字列 |
|
一意なクラスターリソース名 |
state |
文字列 |
present |
present : リソースを作成または更新
absent : リソースを削除 |
provider |
文字列 |
|
リソースプロバイダーの名前 (利用可能なプロバイダーを一覧表示するには pcs resource providers を使用) |
options |
文字列のリスト |
[] |
オプションのプロバイダーオプションのリスト |
operations |
辞書のリスト |
[] |
オプションのリソース操作 |
stickiness |
整数 |
0 |
オプションのリソーススティッキネス値 |
test_command |
文字列 |
null |
サービスリソースの構成をテストするためのオプションコマンド |
operations
定義辞書
キー |
型 |
デフォルト |
コメント |
name |
文字列 |
|
操作名 (例: start , stop , monitor ) |
state |
文字列 |
present |
present : リソースを作成または更新
absent : リソースを削除 |
options |
文字列のリスト |
[] |
オプションの操作オプションのリスト |
pacemaker_cluster_constraints
定義辞書
キー |
型 |
デフォルト |
コメント |
type |
文字列 |
|
制約のタイプ
colocation または order |
colocation |
辞書 |
|
type=colocation のための共存制約設定 |
order |
辞書 |
|
type=order のための順序制約設定 |
colocation
制約定義辞書
キー |
型 |
デフォルト |
コメント |
state |
文字列 |
present |
present : 制約を作成または更新
absent : 制約を削除 |
source_resource_id |
文字列 |
|
制約のソースリソースID |
target_resource_id |
文字列 |
|
制約のターゲットリソースID |
score |
整数/文字列 |
INFINITY |
制約スコア |
order
制約定義辞書
キー |
型 |
デフォルト |
コメント |
first_resource |
文字列 |
|
最初のリソースのID |
first_resource_action |
文字列 |
|
最初のリソースのアクション (例: start ) |
second_resource |
文字列 |
|
2番目のリソースのID |
second_resource_action |
文字列 |
|
オプションの2番目のリソースのアクション (例: start ) |
options |
文字列のリスト |
[] |
オプションの順序オプションのリスト |
依存関係
なし
例プレイブック
- hosts: all
roles:
- skriptfabrik.pacemaker
作者
ライセンス
このプロジェクトはMITライセンスの下にあります。
著作権
(c) 2022, skriptfabrik GmbH