D.2. 静的ネットワーク設定に必要な変数

DHCP 設定は、デフォルトでホスト型エンジン仮想マシンで使用されます。ただし、静的 IP または FQDN を使用する場合は、以下の変数を定義します。

he_vm_ip_addr
ホスト型エンジン仮想マシン(IPv4 または IPv6)の静的 IP アドレス。
he_vm_ip_prefix
ホスト型エンジン仮想マシン(IPv4 または IPv6)の IP プレフィックス
he_dns_addr
ホスト型エンジン仮想マシン(IPv4 または IPv6)用の DNS サーバー。
he_default_gateway
ホスト型エンジン仮想マシン(IPv4 または IPv6)のデフォルトゲートウェイ。
he_vm_etc_hosts
ホストエンジンの仮想マシンの IP アドレスと FQDN をホストの /etc/hosts に指定します(ブール値)。

静的ホスト型エンジン設定を含む he_gluster_vars.json ファイルの例

{
  "he_appliance_password": "mybadappliancepassword",
  "he_admin_password": "mybadadminpassword",
  "he_domain_type": "glusterfs",
  "he_fqdn": "engine.example.com",
  "he_vm_mac_addr": "00:01:02:03:04:05",
  "he_default_gateway": "gateway.example.com",
  "he_mgmt_network": "ovirtmgmt",
  "he_storage_domain_name": "HostedEngine",
  "he_storage_domain_path": "/engine",
  "he_storage_domain_addr": "host1-backend.example.com",
  "he_mount_options": "backup-volfile-servers=host2-backend.example.com:host3-backend.example.com",
  "he_bridge_if": "interface name for bridge creation",
  "he_enable_hc_gluster_service": true,
  "he_mem_size_MB": "16384",
  "he_cluster": "Default",
  "he_vm_ip_addr": "10.70.34.43",
  "he_vm_ip_prefix": "24",
  "he_dns_addr": "10.70.34.6",
  "he_default_gateway": "10.70.34.255",
  "he_vm_etc_hosts": "false",
  "he_network_test": "ping"
}

注記

DNS が利用できない場合は、dns の代わりに he_network_testping を使用してください。

Example: "he_network_test": "ping"