(Click to open topic with navigation)
These instructions describe how to install Moab Web Services (MWS).
To
You must deploy Moab Web Services on the same server as Moab Workload Manager.
[root]# service moab start
The default location for the MWS home directory is /opt/mws. These instructions assume the default location.
Here is a sample script for this setup:
[root]# mkdir -p \
/opt/mws/etc/mws.d \
/opt/mws/hooks \
/opt/mws/log \
/opt/mws/plugins \
/opt/mws/spool/hooks \
/opt/mws/utils
[root]# chown -R tomcat:tomcat /opt/mws # Depending on your OS, the Tomcat username might be tomcat6.
[root]# chmod -R 555 /opt/mws
[root]# chmod u+w \
/opt/mws/log \
/opt/mws/plugins \
/opt/mws/spool \
/opt/mws/spool/hooks \
/opt/mws/utils
[root]# mkdir /tmp/mws-install
[root]# cd /tmp/mws-install
[root]# tar xvzf $HOME/Downloads/mws-8.0.3.tar.gz
Copy the extracted utility files to the utility directory created above and give the tomcat user ownership of the directory.
[root]# cd /tmp/mws-install/mws-8.0.3/utils
[root]# cp * /opt/mws/utils
[root]# chown tomcat:tomcat /opt/mws/utils/*
Set up the MWS configuration files. In the extracted directory are several configuration files.
Copy mws-config.groovy to /opt/mws/etc.
[root]# cd /tmp/mws-install/mws-8.0 [root]# cp mws-config.groovy /opt/mws/etc
[root]# cp mws-config-<your suite choice>.groovy /opt/mws/etc/mws.d
[root]# chown tomcat:tomcat /opt/mws/etc/mws-config.groovy /opt/mws/etc/mws.d/mws-config-hpc.groovy [root]# chmod 400 /opt/mws/etc/mws-config.groovy /opt/mws/etc/mws.d/mws-config-hpc.groovy
The key you specify must be encoded in Base64, and must match exactly the key specified in the MESSAGEQUEUESECRETKEY when installing Moab Workload Manager (see Installing Moab Workload Manager).
Important: If MWS is configured to encrypt the message queue and Moab is not (or vice versa) then the messages from Moab will be ignored. Furthermore, all attempts to access the MWS service resource will fail.
[root]# vi /opt/mws/etc/mws-config.groovy // Replace <ENTER-KEY-HERE> with the contents of /opt/moab/etc/.moab.key.
moab.secretKey = "<ENTER-KEY-HERE>" moab.server = "localhost" moab.port = 42559 // Replace <ENTER-KEY-HERE> with the value of MESSAGEQUEUESECRETKEY in /opt/moab/etc/moab-private.cfg. moab.messageQueue.secretKey = "<ENTER-KEY-HERE>"
// Change these to be whatever you like. auth.defaultUser.username = "moab-admin" auth.defaultUser.password = "changeme!"
If you do not change auth.defaultUser.password, your MWS will not be secure (because anyone reading these instructions would be able to log into your MWS). Here are some tips for choosing a good password.
You can configure only one authentication method in mws-config.groovy—LDAP or PAM, but not both. If you have configured both LDAP and PAM, MWS defaults to using LDAP.
If you need multiple authentication methods, you must add them to your local PAM configuration. See your distribution documentation for details.
ldap.server = "192.168.0.5" ldap.port = 389 ldap.baseDNs = ["dc=acme,dc=com"] ldap.bindUser = "cn=Manager,dc=acme,dc=com" ldap.password = "*****" ldap.directory.type = "OpenLDAP Using InetOrgPerson Schema"
This is just an example LDAP connection. Be sure to use the appropriate domain controllers (dc) and common names (cn) for your environment.
If you followed the Adaptive Computing tutorial, Setting up OpenLDAP on CentOS 6, your ldap.directory.type should be set to "OpenLDAP Using InetOrgPerson Schema." However, the use of other schemas is supported. For more information see LDAP Configuration using mws-config.groovy.
To see how to configure a secure connection to the LDAP server, see Securing the LDAP connection.
pam.configuration.service = "login"
This is just an example PAM configuration file name. Make sure you specify the name of the configuration file you want MWS to use.
For more information about PAM configuration with MWS, see PAM (pluggable authentication module) configuration using mws-config.groovy.
There is a security risk when authenticating local users through your PAM configuration. This behavior is highly discouraged and not supported by Adaptive Computing.
... grails.mongo.username = "mws_user" grails.mongo.password = "secret3"
CATALINA_OPTS="-DMWS_HOME=/opt/mws -Xms256m -Xmx3g -XX:MaxPermSize=384m -Dfile.encoding=UTF8"
JAVA_HOME="/usr/java/latest"
Some Linux distributions use /etc/default/tomcat6 or /etc/sysconfig/tomcat6 instead of /etc/tomcat6/tomcat6.conf.
[root]# chkconfig tomcat6 on
[root]# service tomcat6 stop
[root]# cp /tmp/mws-install/mws-8.0.3/mws.war /usr/share/tomcat6/webapps
[root]# service tomcat6 start
![]() |
Click to enlarge |
If you encounter problems, or if the application does not seem to be running, see the steps in Moab Web Services issues.