(Click to open topic with navigation)
This topic contains instructions on how to install Moab Viewpoint (Viewpoint).
In this topic:
Viewpoint requires a connection to Moab Server and MWS installed on the shared host. Viewpoint may also be installed on that shared host or on a different host. For documentation clarity, the instructions refer to the shared Moab Server and MWS Server host as the Moab Server Host and the host on which you install Viewpoint Server as the Viewpoint Server Host.
In this section:
3.11.1.A Security Enhanced Linux
For Red Hat-based systems where Security Enhanced Linux (SELinux) is enforced, you need to adjust SELinux to allow the web server to make network connections and create and write to the log file.
On the Viewpoint Server Host, do the following:
[root]# getenforce
SELinux can vary by version and architecture and that these instructions may not work in all possible environments.
[root]# yum install policycoreutils-python [root]# semanage permissive -a httpd_t
[root]# vi /etc/sysconfig/selinux SELINUX=disabled [root]# setenforce 0
If your site is running firewall software on its hosts, you will need to configure the firewall to allow connections to the necessary ports.
In this section:
Open the Viewpoint PostgreSQL Database Port (5432)
Viewpoint requires access to the Viewpoint PostgreSQL database. Depending on your system configuration, your PostgreSQL databases may not be installed on the same host as their corresponding component servers. For example, you may choose to install the Viewpoint PostgreSQL database on the same host where you have installed the Insight PostgreSQL database instead of on the Viewpoint Server Host.
If you choose to install the Viewpoint PostgreSQL database on a different host from where you will install Viewpoint Server, do the following on the Viewpoint Database Host:
[root]# iptables-save > /tmp/iptables.mod [root]# vi /tmp/iptables.mod # Add the following lines immediately *before* the line matching # "-A INPUT -j REJECT --reject-with icmp-host-prohibited" -A INPUT -p tcp --dport 5432 -j ACCEPT [root]# iptables-restore < /tmp/iptables.mod [root]# service iptables save
Open the Apache Web Server Port (8081)
On the Viewpoint Server Host, do the following:
[root]# iptables-save > /tmp/iptables.mod [root]# vi /tmp/iptables.mod # Add the following lines immediately *before* the line matching # "-A INPUT -j REJECT --reject-with icmp-host-prohibited" -A INPUT -p tcp --dport 8081 -j ACCEPT [root]# iptables-restore < /tmp/iptables.mod [root]# service iptables save
Open the Viewpoint File Manager Port (8443)
On the Moab Server Host, do the following:
[root]# iptables-save > /tmp/iptables.mod [root]# vi /tmp/iptables.mod # Add the following lines immediately *before* the line matching # "-A INPUT -j REJECT --reject-with icmp-host-prohibited" -A INPUT -p tcp --dport 8443 -j ACCEPT [root]# iptables-restore < /tmp/iptables.mod [root]# service iptables save
3.11.1.C Configure the ViewpointQueryHelper Plugin
You will need to configure the MWS ViewpointQueryHelper plugin to allow Viewpoint to query the Insight MongoDB (MongoDB host, database, port, and user information).
Do the following:
Click to enlarge |
Key | Value Description |
---|---|
host | Name or IP address of the host on which Insight MongoDB resides. |
database | Name of the MongoDB database to which Insight writes. |
port | Port number for Insight MongoDB (typically 27017). |
user | User name with which MWS connects to Insight MongoDB. |
password | Password used by the user listed in the value for the "user" key. |
This is the user name and password you specified when installing Insight. See the step "Add the required MongoDB users to Insight MongoDB and Moab MongoDB; regardless of whether they share a host." for the user and password information.
See also About Moab Web Services Plugins in the Moab Web Services Reference Guide for more information.
3.11.2 Install Viewpoint Server
You must complete the prerequisite tasks earlier in this topic before installing the Viewpoint Server. See 3.11.1 Prerequisites.
Do the following:
These instructions assume you will install the Viewpoint PostgreSQL database on the same host as the Insight PostgreSQL database (strongly recommended). Depending on your system confirmation, this may be the on the Insight Server Host or on the PostgreSQL Database Host.
If you choose to install the Viewpoint PostgreSQL database on a host that does not already have a PostgreSQL database, you will need to install the Viewpoint PostgreSQL database. See 3.10.2.C Install PostgreSQL for more information.
On the host containing the Insight PostgreSQL, do the following:
[root]# su - postgres [postgres]$ psql CREATE USER moab_viewpoint WITH PASSWORD 'changeme!'; CREATE DATABASE moab_viewpoint WITH OWNER=moab_viewpoint; \q [postgres]$ exit
[root]# yum install moab-viewpoint-filemanager [root]# yum install python-setuptools
Step 1. Create CA (Certificate Authority).
Step 2. Create server (WebDav server) certificate and key.
Step 3. Create client certificate and key.
Step 4. Configure WebDav server.
For example:
[root]# cd /opt/acfileman/utils/certs-handling [root]# ./ac-cert-tool.sh create-ca [root]# ./ac-cert-tool.sh create-server-cert --altnames 127.0.0.1,localhost <moab_host> [root]# ./ac-cert-tool.sh create-client-cert [root]# bash certs/servers/<moab_host>/install-server-certs.sh -u root:root -p 600 /opt/acfileman/etc/ [root]# vi /opt/acfileman/etc/uwsgi.ini
Provided you followed the above steps, your key files will have been installed in /opt/acfileman/etc/server-cert.pem and /opt/acfileman/etc/server-key.pem. To change the location where your certificates are stored, edit the /opt/acfileman/etc/uwsgi.ini file accordingly.
[root]# chkconfig acfileman on [root]# service acfileman restart
[root]# vi /opt/moab/etc/moab.cfg
ENABLENEGJOBPRIORITY TRUE
You must set this Moab parameter to support Viewpoint features that enable users to specify user priorities for their jobs. See Advanced Settings in the Viewpoint Reference Guide for more information on enabling user priorities for jobs.
[root]# vi /opt/moab/etc/moab.cfg USEMOABJOBID TRUE
[root]# service moab restart
On the Moab Server Host, register Viewpoint as a client in MWS.
The following is a suggested script for generating the client secret:
dd if=/dev/urandom count=24 bs=1 2>/dev/null | base64
[root]# vi /opt/mws/etc/mws-config.groovy grails.plugin.springsecurity.oauthProvider.clients = [ [ clientId: "viewpoint", clientSecret: "<ENTER-CLIENTSECRET-HERE>", authorizedGrantTypes: ["password"] ] ]
[root]# service tomcat restart
[root]# yum install moab-viewpoint
/etc/httpd/conf.d/viewpoint.conf
Virtual host configurations should be made within this file. See http://httpd.apache.org/docs/2.2/vhosts/ for more information.
[admin] username = viewpoint-admin password = pbkdf2_sha256$20000$ZHeToCJgrSUH$+xmzYdhpqZCJokxO9eGzyr2B6jrfCgLlBT+pBgMis4w= [environment] VIEWPOINT_DATABASE_NAME = moab_viewpoint VIEWPOINT_DATABASE_PASSWORD = changeme! VIEWPOINT_DATABASE_USER = moab_viewpoint VIEWPOINT_DATABASE_HOST = localhost VIEWPOINT_DATABASE_PORT = 5432 [settings] past_hours = 24 future_hours = 4
Be aware of the following:
To encrypt the password, do the following (substituting "changeme!" with your password):
[root]# echo -n 'changeme!' | /opt/viewpoint/bin/viewpoint makehash Using default hasher pbkdf2_sha256$20000$ZHeToCJgrSUH$+xmzYdhpqZCJokxO9eGzyr2B6jrfCgLlBT+pBgMis4w=
The default hashing algorithm is pbkdf2_sha256. To show the other available algorithms, run /opt/viewpoint/bin/viewpoint makehash --help
bcrypt_sha256 and bcrypt are not supported on Red Hat 7-based systems.
[environment]: "changeme!", although unencrypted, is the default for the Viewpoint database password. If you do not change this password, your Viewpoint database will not be secure. For tips on choosing a good password, see https://www.us-cert.gov/ncas/tips/ST04-002.
[root]# /opt/viewpoint/bin/viewpoint migrate
[root]# chkconfig httpd on [root]# service httpd restart
3.11.3 Enable Access to the Viewpoint File Manager
This section finishes the SSL authentication steps you began when you installed moab-viewpoint-filemanager -- that is, Step 5 of /opt/acfileman/utils/certs-handling/Readme.txt that you skipped earlier.
Do the following:
[root]# cd /opt/acfileman/utils/certs-handling/certs
[root]# scp ca/ca-cert.pem client/client-cert.pem client/client-key.pem root@<viewpoint_host>:/opt/viewpoint/lib/viewpoint/webdav_client
[root]# cd /opt/viewpoint/lib/viewpoint/webdav_client [root]# chmod 600 ca-cert.pem client-key.pem client-cert.pem [root]# chown apache:apache ca-cert.pem client-key.pem client-cert.pem [root]# service httpd restart
Do the following:
The Viewpoint administrative user has very limited rights.
The Configuration page displays with only the authorized features. The following is an example of what you will see once you first log in.
Click to enlarge |
Click to enlarge |
Do the following:
The Configuration page displays.
If your configuration uses a secure connection between Viewpoint and MWS, the URL must contain "https" and the secure port.
In the Node Names to Ignore field, enter the nodes that you want Viewpoint to ignore. Separate node names with a comma (,).
Choose whether you wish to use Google Analytics to help improve this product.
Do the following:
The following image is an example of the File Manager Configuration page.
Click to enlarge |
Field | Description |
---|---|
Server URL | The name of the Moab Server host on which you installed the File Manager Service and the port number for the File Manager Service (for example, "https://server:8443"). |
Server Verify SSL | When enabled:
|
SSL Certificate File | The location of the SSL certificate file on the Viewpoint Server. Usually, /opt/viewpoint/lib/viewpoint/webdav_client/client-cert.pem. |
SSL Certificate Key | The location of the SSL certificate key on the Viewpoint Server. Usually, /opt/viewpoint/lib/viewpoint/webdav_client/client-key.pem. |
CA Bundle File | The location of the CA bundle file on the Viewpoint Server. Usually, /opt/viewpoint/lib/viewpoint/webdav_client/ca-cert.pem. |
Server Root Path | The root URL path where File Manager Service publishes its API (usually it is simply "/"). |
Accessible Roots | The root folders that users can access from the File Manager page. This can be used to limit users' access to certain directories, without giving them access to the "/" folder on the remote file system (RFS). Separate root folders with a colon (for example, /home:/usr/share/groups).
For example, if you define /home and /usr/share/groups as accessible roots, although users will be able to see a tree similar to the following, the users will not be able to see (access) anything inside /usr other than "share" and anything inside "share" other than "groups". | - /home/ | - user1/ - user2/ - youruser/ - /usr/ | - share/ | - groups/ |
Maximum Upload Size (bytes) | Total amount of data that can be uploaded in a single file. A value of '-1' means unlimited. |
3.11.7 Grant Users Access to Viewpoint
For a user to be able to access Viewpoint, he or she must be a member of a principal.
Do the following:
Viewpoint comes configured with an admin and a user role that you can assign to the principals. You can also modify the default roles and create new roles as needed. See About Roles in the Moab Viewpoint Reference Guide for more information.
Related Topics