此内容没有您所选择的语言版本。
Appendix C. Understanding the node_replace_inventory.yml file
The node_replace_inventory.yml
file is an example Ansible inventory file that you can use to prepare a replacement host for your Red Hat Hyperconverged Infrastructure for Virtualization cluster.
You can find this file at /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/node_replace_inventory.yml
on any hyperconverged host.
C.1. Configuration parameters for node replacement
hosts
(required)Defines one active host in the cluster using the back-end FQDN.
cluster_nodes: hosts: host2-backend-fqdn.example.com: vars: [common host configuration]
gluster_maintenance_old_node
(required)Defines the backend FQDN of the node being replaced.
cluster_nodes: hosts: host2-backend-fqdn.example.com: vars: gluster_maintenance_old_node: host1-backend-fqdn.example.com
gluster_maintenance_new_node
(required)Defines the backend FQDN of the replacement node.
cluster_nodes: hosts: host2-backend-fqdn.example.com: vars: gluster_maintenance_new_node: new-host-backend-fqdn.example.com
gluster_maintenance_cluster_node
(required)An active node in the cluster. Cannot be the same as
gluster_maintenance_cluster_node_2
.cluster_nodes: hosts: host2-backend-fqdn.example.com: vars: gluster_maintenance_cluster_node: host2-backend-fqdn.example.com
gluster_maintenance_cluster_node_2
(required)An active node in the cluster. Cannot be the same as
gluster_maintenance_cluster_node
.cluster_nodes: hosts: host2-backend-fqdn.example.com: vars: gluster_maintenance_cluster_node_2: host3-backend-fqdn.example.com
C.2. Example node_replace_inventory.yml
cluster_node: hosts: host2-backend-fqdn.example.com: vars: gluster_maintenance_old_node: host1-backend-fqdn.example.com gluster_maintenance_new_node: new-host-backend-fqdn.example.com gluster_maintenance_cluster_node: host2-backend-fqdn.example.com gluster_maintenance_cluster_node_2: host3-backend-fqdn.example.com