To use Clanavi with Amazon EC2, the following contributed modules are required:
- Cloud - http://drupal.org/project/cloud
- Libraries - http://drupal.org/project/libraries
Two external libraries are required.
AWS SDK for PHP
Download the AWS SDK for PHP from Amazon: http://pear.amazonwebservices.com/get/sdk-latest.zip. Unzip it and copy the extracted directory into sites/all/libraries as awssdk. The system looks for the sites/all/libraries/awssdk folder. If it is not found, the module will not function properly and throw up error messages.
Mindterm.jar
Mindterm is a Java based SSH Console that allow users to SSH directly into instances from Clanavi. Download Mindterm from http://www.cryptzone.com/products/agmindterm/download.aspx and place the jar file in the Drupal Root. For example, if your Drupal root is /var/www, then place the jar file in /var/www/mindterm.jar.
If you download the open source (FREE) version of MindTerm, you will need to sign the jar file. The commercial version of MindTerm comes signed already. If you do not sign the jar file, MindTerm will not have all the permissions to make start up properly. If you try launching the SSH console, MindTerm will throw an "access denied" error.
Once all modules and libraries are downloaded:
- Download Libraries Module.
- Download the AWS SDK for PHP from Amazon: http://pear.amazonwebservices.com/get/sdk-latest.zip
- Copy the AWS SDK for PHP into sites/all/libraries as awssdk. If the SDK library is not installed correctly the module will not function properly
- Turn on the Cloud module
- Turn on the following modules for EC2 management
- Server Templates
- AWS Cloud (Found under Iaas package)
- Pricing
- In order for the system to automatically update the database with EC2 data, cron must be running. If cron is not running, data can still be imported using the "Refresh page" link at the bottom of listing pages
- Make sure the sites/default/files directory is writable. Clanavi writes temporary files out to the default/files/cloud directory.
e.g. If you have /var/www/html/sites/default/files,
chmod 777 /var/www/html/sites/default/files