Rate This Document
Findability
Accuracy
Completeness
Readability

Installing HAF on Host Nodes

  1. Install the software package on the host nodes (server1, agent1, agent2, agent3) and execute the service flow from the host nodes.
  2. Modify the installation configuration file.

    Skip this step if the default configuration file haf_host_install.conf in Configuration Items for HAF Deployment meets your service requirements.

    When installing the HAF software on a host node, you can modify the haf_host_install.conf file to modify the installation configuration of nodes in a batch. For details about the options that can be modified, see Configuration Items for HAF Deployment.

    You are advised to use the configuration file to modify the options that cannot be modified by haf-tool.

    The following describes how to disable TLS identity authentication and data encryption/decryption. By default, this switch is enabled. To disable it, set the corresponding parameter to 0.

    The command is as follows:

    cd /opt/haf-software

    sed -i 's/\"host_tls_switch\": 1/\"host_tls_switch\": 0/g' install-config/haf_host_install.conf

    To modify other options, you can run related commands as required.

    1. Select all host nodes and click Configure Service.

    2. Select Custom and click Next.

    3. Select Command Execution and click Add a Task.

    4. Set task 1 parameters and click Save.
      Table 1 Parameter description

      Parameter

      Description

      Task Name

      Disabling TLS

      Task Description

      Disabling TLS

      Run Directory

      /opt/haf-software

      Run Command

      sed -i 's/\"host_tls_switch\": 1/\"host_tls_switch\": 0/g' install-config/haf_host_install.conf

      Whether to Check Return Code

      Yes

      Expected Return Code

      0

    5. Save the settings and click to execute the service flow.

  3. Install HAF on the host nodes.
    1. Select all host nodes and click Configure Service.

    2. Select Custom and click Next.

    3. Select Command Execution and click Add a Task.

    4. Set task 1 parameters and click Save.
      Table 2 Parameter description

      Parameter

      Description

      Task Name

      Installing the HAF package on host nodes

      Task Description

      Installing the HAF package on host nodes and generating the key for initialization

      Run Directory

      /opt/haf-software

      Run Command

      ./haf_installer -m host -p /opt/haf-software/haf-host-1.0.tar.gz -t /opt/

      NOTE:

      The script parameters are described as follows:

      • -m host: The installation is performed on a host node.
      • -p /opt/haf-software/haf-host-1.0.tar.gz: path of the package to be installed on the host node.
      • -t /opt/: HAF installation directory on the host node. The default directory is /opt. -t is optional.

      Whether to Check Return Code

      Yes

      Expected Return Code

      0

    1. Execute the service flow. Click Finish in the lower right corner and then click Run Service to execute the service flow.