The jclouds team have been working very hard lately, particularly on a few new apis. We've decided to cage them no longer and cut jclouds 1.5.0-alpha.1. Most notably, we've added the openstack-nova api, and three new providers, all of which discovered via OpenStack Keystone v2.0.

Here's how to boot up a new machine and add your login using the new hpcloud-compute provider in clojure:

(use ''org.jclouds.compute2)
(import ''org.jclouds.scriptbuilder.statements.login.AdminAccess)
(def compute  (compute-service "hpcloud-compute" "tenantId:ACCESSKEY" "SECRETKEY"    :slf4j :sshj))
(create-node compute "test"   (build-template compute { :run-script (AdminAccess/standard) } ))

Here's an example of how to do the same on TryStack, authenticating w/ user & pass as opposed to key, via our java example:

java -jar target/compute-basics-jar-with-dependencies.jar trystack-nova tenantId:user password mygroup add

In the group org.jclouds.labs, you'll find two more new and notable members of the jclouds family:

You can try out virtualbox like any other api. For example, you can use the clojure above, only changing how you create the connection slightly:

(def compute (compute-service "virtualbox" "administrator" "12345" :sshj :slf4j))

The code in labs will certainly change before we release a beta, but feel free to check them out. Meanwhile, you can try them out and give us feedback on #jclouds irc freenode or jclouds-dev google group!

Finally, many thanks to the dozen contributors who's work is in this alpha, and particularly HP and VMware for sponsoring substantial effort.

Oh, and don't forget to clean up your nodes :)

(destroy-nodes-matching compute (constantly true))

Comments powered by Disqus