Chapter 4. Setting deployment variables
Change the directory to:
# cd /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment
Make a backup copy of the playbooks directory.
# cp -r /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment playbook-templates
Edit the inventory file.
Make the following updates to the
playbooks/gluster_inventory.yml
file.Add host FQDNs to the inventory file
On line 4, replace
host1
with the FQDN of the first host.Lines 3-4 of gluster_inventory.yml
# Host1 servera.example.com:
On line 71, replace
host2
with the FQDN of the second host.Lines 70-71 of gluster_inventory.yml
#Host2 serverb.example.com:
On line 138, replace
host3
with the FQDN of the third host.Lines 137-138 of gluster_inventory.yml
#Host3 serverc.example.com:
On line 237 and 238, replace
host2
andhost3
with the FQDN of the second and third host respectively.Lines 235-238 of gluster_inventory.yml
gluster: hosts: serverb.example.com: serverc.example.com:
If you want to use VDO for deduplication and compression
Uncomment the
Dedupe & Compression config
andWith Dedupe & Compression
sections 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_volume_groups: #- vgname: vg_sdb1 #pvname: /dev/mapper/vdo_sdb1 #- vgname: vg_sdb2 #pvname: /dev/mapper/vdo_sdb2
Comment out the
Without Dedupe & Compression
section by adding a#
to the beginning of each line.# Without Dedupe & Compression gluster_infra_volume_groups: - vgname: vg_sdb1 pvname: /dev/sdb1 - vgname: vg_sdb2 pvname: /dev/sdb2
Edit the hosted engine variables file.
Update the following values in the
playbooks/he_gluster_vars.json
file.- 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