Chapter 6. Setting deployment variables

  1. Make a backup copy of the playbooks directory.

    # cp -r playbooks playbook-templates
  2. Edit the inventory file.

    Make the following updates to the playbooks/gluster_inventory.yml file.

    1. 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 and host3 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:

    2. If you want to use VDO for deduplication and compression

      1. Uncomment the Dedupe & Compression config and With 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
      2. 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
  3. 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