Task 7. Configure Survey for the cluster

This task includes the following steps.

Note After completing the this task, you also need to update the Service Manager Service Portal URL in the System Information Record in Service Manager so that survey links sent through email can work. For details, see Task 8. Update the System Information Record in Service Manager.

Step 1. Open two survey ports for the application nodes

In this step, you will open two ports (9980 and 9981) for the two application nodes for the Survey functionality.

Note Perform this step from the load balancer node as root.

  1. Log on to the load balancer node as root.
  2. Add the following lines in the /etc/nginx/conf.d/propel.conf file:

    upstream survey {
        server <application node 1 FQDN>:9981;
        server <application node 2 FQDN>:9981;
    }
     
    upstream survey-ui {
        server <application node 1 FQDN>:9980;
        server <application node 2 FQDN>:9980;
    }
     
    server {
        listen 9981 ssl;
     
        proxy_cookie_domain idm $host;
     
        proxy_http_version 1.1;
     
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host:$server_port;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Real-IP $remote_addr;
     
        ssl_certificate /opt/hp/propel/security/propel_host.crt;
        ssl_certificate_key /opt/hp/propel/security/propel_host.key.rsa;
     
        location / {
            proxy_pass https://survey;
        }
    }
     
    server {
        listen 9980 ssl;
     
        proxy_cookie_domain idm $host;
     
        proxy_http_version 1.1;
     
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host:$server_port;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Real-IP $remote_addr;
     
        ssl_certificate /opt/hp/propel/security/propel_host.crt;
        ssl_certificate_key /opt/hp/propel/security/propel_host.key.rsa;
     
        location / {
            proxy_pass https://survey-ui;
        }
    }
  3. Restart Nginx:

    # systemctl restart nginx

Step 2. Modify the survey configuration on the application nodes

In this step, you will update the survey configuration on each of the two application nodes by changing the FQDN of each node to the FQDN of the load balancer node.

On each of the application nodes, perform the following steps:

  1. Open the following files:

    • /opt/hp/propel/survey/config.yml
    • /opt/hp/propel/survey-ui/app.json
  2. Change the local host FQDN in each file to the FQDN of the load balancer node.
  3. Restart the survey service:

    # systemctl stop survey
    # systemctl start survey