Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Jclouds 1.5.0 brings a lot of improvements and a set of new providers we can use.
Adrian added on the discussion list:
"Jclouds 1.5 has a concept called TemplateBuilderSpec which allows you to
declare a String representation of TemplateBuilder mechanics.
This allows you to set a property to override the default templates used in
jclouds.
For ex.
aws-ec2.template=imageId=ami-foo,hardwareId=m1.large,locationId=eu-west-1
Importantly, these are just strings, so you can publish a series per
operating system family, and choose at runtime with
templateBuilder.from(spec)
Ex. You can make your own Map<String, TemplateBuilderSpec> with your
favorite choices, perhaps locking in templates by id so you don't have to
maintain the brittle java install scripts.
Ex.
templates.get("oneiric-java-ec2");
Regardless of how this is used, the important part is that the constant
complaints of automatic selection can now be over, as we can provide a
properties syntax to afford users a means to supply their preferences
declaratively."