jclouds-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Turli <notificati...@github.com>
Subject Re: [jclouds-site] add softlayer cloudlayer quickstart (#49)
Date Thu, 02 Jan 2014 17:21:29 GMT
> +Set<? extends org.jclouds.compute.domain.Image> image  = compute.listImages();
> +
> +// Create nodes with templates
> +Template template = compute.templateBuilder().osFamily(OsFamily.UBUNTU).build();
> +// by default, all the nodes created by jclouds will have `jclouds.org` as domain name.

> +// If you want to edit that default value, you can specify something like:
> +// Template template = compute.templateBuilder().options(SoftLayerTemplateOptions.Builder.domainName("yourDomainName"))
> +//                                              .osFamily(OsFamily.UBUNTU)
> +//                                              .build()
> +Set<? extends NodeMetadata> groupedNodes = compute.createNodesInGroup("myGroup",
2, template);
> +
> +// Reboot images in a group
> +compute.rebootNodesMatching(inGroup("myGroup"));
> +
> +// Destroy nodes in a group
> +Set<? extends NodeMetadata> destroyed = compute.destroyNodesMatching(Predicates.<NodeMetadata>
and(not(TERMINATED), inGroup(groupName)));

@demobox yeah probably it is better to describe the provider-specific on the user guide, also
because the underlying SoftLayer API are really too low-level for a simple user, I guess.

wdyt? 

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/49/files#r8617250
Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message