It should be easier to specify multipe EC2-like clouds
|Assignee:||Javi Fontan||% Done:|
|Category:||Drivers - Auth|
|Target version:||Release 1.4|
Right now, I need to create a copy of one_vmm_ec2 to be able to use both EC2 and a local Eucalyptus instance with OpenNebula. This is because the location of the file that holds the EC2_* environment variables is hardcoded in one_vmm_ec2. It would be nice if this could be fixed somehow.
#1 Updated by Ruben S. Montero over 12 years ago
You are right. In fact the driver was design to instantiate multiple times to access
different EC2 zones. The problem as you said is that the RC file is hard coded in the driver wrapper. I think that the better solution is to optionally pass the RC file with the EC2_ variables as an argument. In this way we can reuse everything.
#2 Updated by Ruben S. Montero over 12 years ago
It may be better to put the EC2 variables directly as arguments so you do not have
to copy files around. We can keep the current RC file as a default to fall back, in case you just want one EC2 driver.
So we can have
-u <EC2_URL> -h <EC2_HOME> -k <EC2_PRIVATE_KEY> -c <EC2_CERT>