chanchalbose.hacluster

ansible-hacluster

これは、pcs、pacemaker、およびcorosyncを使用して2ノードのHAクラスターを作成するための役割です。

要件

コードは部分的にRHEL 7でテストされており、Debian特有のコードが開発中です。 fencingデバイスを作成するためのタスクは、virtfence.yml内にあり、参考として考慮してください。必要な変更を加えてください。テスト中であり、安全でないコードはコメントアウトされています。

役割の変数

defaults/main.ymlにある次の変数は、あなたの環境に合わせて設定する必要があります。

hacluster_password: Change_Me
pcs_cluster1: set_an_ip1
pcs_cluster2: set_an_ip2
cluster_name: set_name
virt_fencing: false
ip_of_esxi: set_esxi_or_vcenter_ip
sxi_username: set_esxi_or_vcenter_username
sxi_password: set_esxi_or_vcenter_password

virt_fencingをfalseに設定すると、virtfence.yml内のタスクは無効になります。

依存関係

現在のところ依存関係はありません。ただし、fencingコードを分離した役割にフォークする計画があります。

サンプルプレイブック

この役割を試すためのサンプルプレイブック

  • hosts: ['node1','node2'] become: true remote_user: vagrant roles:
    • { role: ansible-hacluster, pcs_cluster1: node1, pcs_cluster2: node2, create_cluster: mycluster }

ライセンス

BSD

著者情報

Chanchal Bose 会社: Prodevans LLC GitHubリポジトリ: https://github.com/chanchalbose Dockerリポジトリ: https://hub.docker.com/r/chanchal YouTubeチャンネル: mostlylinux

プロジェクトについて

Deploy HA Cluster using pcs, pacemaker and corosync on Redhat 7

インストール
ansible-galaxy install chanchalbose.hacluster
ライセンス
Unknown
ダウンロード
105
所有者