> + .imageNameMatches( "<ideally-unique-snapshot-name>" ) > + .options( new TemplateOptions() > + .overrideLoginUser( "root" ) // unless you > changed the user > + .overrideLoginPassword( "<changed-password>" )) > + // more options, as you need > + .build(); > + > +compute.createNodesInGroup( "cluster1", 1, template ); > +``` > +> If no `locationId` is specified in the template, jclouds will look for a > `DataCenter` that is of same scope as the `Image`. > + > + > +## Limitations > + > +1. There's no direct way of specifying arbitrary number of cores, RAM size, > and storage size via the compute interface, at least until after > [JCLOUDS-482](https://issues.apache.org/jira/browse/JCLOUDS-482) is resolved. > The adapter uses a predefined list hardware profiles instead. > +2. All provisioned nodes are connected at LAN 1 of a datacenter.
You can have a look at [openstack-nova](https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/compute/NovaComputeServiceAdapter.java#L119-L121). The network ids will come as a String and it is up to the adapter to use those values. The id is provider-specific, so you can assume they are already the IDs of the LANs or whatever makes sense int he provider to attach the nodes to those networks. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/145/files#r33446049
