(Click to open topic with navigation)
Quoting allows you to view the price of a potential service before it is actually submitted to Moab.
Quoting in Moab Cloud Suite is meant to be enabled by the Adaptive Computing Professional Services team. It is recommended that you contact that department to set up this feature.
To configure Moab Cloud Suite for quoting
Before you configure Moab Cloud Suite for quoting, make sure that you have configured NAMI in Moab. For more information, see "Charging a Workflow" in the Moab Workload Manager Administrator Guide.
When you run bank.quote.viewpoint.pl, you should see:
[root]# /opt/moab/tools/mam/bank.quote.viewpoint.pl
usage: bank.quote.viewpoint.pl <xml>
[root]# cd /opt/moab/tools/mam [root]# ls -l [root]# -rwsr-xr-x. 1 root root 3658 Oct 5 17:37 bank.quote.viewpoint.pl
[root]# ps -ef | grep gold
moab 2203 1 0 20:43 pts/0 00:00:00 /usr/bin/perl -w /opt/mam/sbin/goldd
[root]# nano /opt/moab/etc/nami.cfg
LOG[config] path=/tmp/nami.log
The script will throw an error for not passing in XML, but you should be able to see lines output to the nami.log file.
[root]# /opt/moab/tools/mam/bank.quote.viewpoint.pl someTestText
:1: parser error : Start tag expected, '<' not found
someTestText
^
Now if you examine the nami.log file, you should see the sample text. For example:
[root]# tail /opt/moab/log/nami.log
2012-10-13 21:10:36,863 [3086] INFO Quote main:: - INPUT: someTestText
[root]# nano /opt/mws/etc/mws-config.groovy
mam.secretKey = "nIoyzXVi2iiSoybthygQEJsa"
billing { quoting_enabled="true" quote="/opt/moab/tools/mam/bank.quote.viewpoint.pl" }
ssh { host="moabserverhostname" username="root" password="secret" key_path="/username/.ssh/privatekeyfile" key_passphrase="keyfilepassword" port="22" run_as_sudo="true" }
Make the following specifications:
Field | Description |
---|---|
host | Moab server host name. Required. |
username | Username used to connect to the Moab server. Required. |
password | Password used to authenticate on Moab server. Required if no key file. |
key_path | Path on the server to the key file. Optional. |
key_passphrase | Path on the server to the password file (if you have a password set on the key file). Optional. |
port | The SSH port used to connect to Moab. Required. |
run_as_sudo |
"true" or "false". Runs "sudo" with MAM script calls if you are not using "root" user. Defaults to "false". ![]() The user must be set up to have "sudo" rights without requiring a password. |
[root]# service tomcat6 restart
If you have configured quoting correctly, you should see billing information on the shopping cart page.