Chapter 4. Setting deployment variables
Change the directory to:
cd /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment
# cd /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deploymentCopy to Clipboard Copied! Toggle word wrap Toggle overflow Make a backup copy of the playbooks directory.
cp -r /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment playbook-templates
# cp -r /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment playbook-templatesCopy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the inventory file.
Make the following updates to the
playbooks/gluster_inventory.ymlfile.Add host FQDNs to the inventory file
On line 4, replace
host1with the FQDN of the first host.Lines 3-4 of gluster_inventory.yml
Host1
# Host1 servera.example.com:Copy to Clipboard Copied! Toggle word wrap Toggle overflow On line 71, replace
host2with the FQDN of the second host.Lines 70-71 of gluster_inventory.yml
#Host2 serverb.example.com:
#Host2 serverb.example.com:Copy to Clipboard Copied! Toggle word wrap Toggle overflow On line 138, replace
host3with the FQDN of the third host.Lines 137-138 of gluster_inventory.yml
#Host3 serverc.example.com:
#Host3 serverc.example.com:Copy to Clipboard Copied! Toggle word wrap Toggle overflow On line 237 and 238, replace
host2andhost3with the FQDN of the second and third host respectively.Lines 235-238 of gluster_inventory.yml
gluster: hosts: serverb.example.com: serverc.example.com:
gluster: hosts: serverb.example.com: serverc.example.com:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
If you want to use VDO for deduplication and compression
Uncomment the
Dedupe & Compression configandWith Dedupe & Compressionsections by removing the#symbol from the beginning of the following lines.#gluster_infra_vdo: #- { name: 'vdo_sdb1', device: '/dev/sdb1', logicalsize: '3000G', emulate512: 'on', slabsize: '32G', #blockmapcachesize: '128M', readcachesize: '20M', readcache: 'enabled', writepolicy: 'auto' } #- { name: 'vdo_sdb2', device: '/dev/sdb2', logicalsize: '3000G', emulate512: 'on', slabsize: '32G', #blockmapcachesize: '128M', readcachesize: '20M', readcache: 'enabled', writepolicy: 'auto' }#gluster_infra_vdo: #- { name: 'vdo_sdb1', device: '/dev/sdb1', logicalsize: '3000G', emulate512: 'on', slabsize: '32G', #blockmapcachesize: '128M', readcachesize: '20M', readcache: 'enabled', writepolicy: 'auto' } #- { name: 'vdo_sdb2', device: '/dev/sdb2', logicalsize: '3000G', emulate512: 'on', slabsize: '32G', #blockmapcachesize: '128M', readcachesize: '20M', readcache: 'enabled', writepolicy: 'auto' }Copy to Clipboard Copied! Toggle word wrap Toggle overflow #gluster_infra_volume_groups: #- vgname: vg_sdb1 #pvname: /dev/mapper/vdo_sdb1 #- vgname: vg_sdb2 #pvname: /dev/mapper/vdo_sdb2#gluster_infra_volume_groups: #- vgname: vg_sdb1 #pvname: /dev/mapper/vdo_sdb1 #- vgname: vg_sdb2 #pvname: /dev/mapper/vdo_sdb2Copy to Clipboard Copied! Toggle word wrap Toggle overflow Comment out the
Without Dedupe & Compressionsection by adding a#to the beginning of each line.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Edit the hosted engine variables file.
Update the following values in the
playbooks/he_gluster_vars.jsonfile.- he_appliance_password
- The root password of the host machine.
- he_admin_password
- The password for the root account of the Administration Portal.
- he_domain_type
- glusterfs - There is no need to change this value.
- he_fqdn
- The fully qualified domain name for the Hosted Engine virtual machine.
- he_vm_mac_addr
- A valid MAC address for the Hosted Engine virtual machine.
- he_default_gateway
- The IP address of the default gateway server.
- he_mgmt_network
-
The name of the management network. The default value is
ovirtmgmt. - he_host_name
- The short name of this host.
- he_storage_domain_name
-
HostedEngine - he_storage_domain_path
-
/engine - he_storage_domain_addr
- The IP address of this host on the storage network.
- he_mount_options
-
backup-volfile-servers=<host2-ip-address>:<host3-ip-address>, with the appropriate IP addresses inserted in place of<host2-ip-address>and<host3-ip-address>. - he_bridge_if
- The name of the interface to be used as the bridge.
- he_enable_hc_gluster_service
-
true