Overriding the Security Group and Keypair Name

48 views
Skip to first unread message

Tom Barber

unread,
Apr 3, 2012, 8:15:49 PM4/3/12
to jcl...@googlegroups.com
Currently we create nodes like:

            NodeMetadata node = getOnlyElement(client.createNodesInGroup(groupName+userGroup, 1, templateBuilder.build()));


Which creates fun Security Group and Keypair names like:

jclouds#cloudBIbob#us-east-1

How do I/Can I assign a node to a preexisting security group, and how do I change the keypair name so i can get ride of the #'s and make it play nice with the Ruby URI parser?

Cheers

Tom

magicaltrout

unread,
Apr 5, 2012, 6:08:03 AM4/5/12
to jcl...@googlegroups.com
Okay a quick google found me opt.as(EC2TemplateOptions.class).keyPair and opt.as(EC2TemplateOptions.class).securityGroups(securityGroups);

I assume this is because Security Groups and Keypairs are EC2 Variant specific and in other providers you'd have to do things differently when using the computeapi?

Cheers

Tom

Adrian Cole

unread,
Apr 5, 2012, 1:00:12 PM4/5/12
to jcl...@googlegroups.com, jclou...@googlegroups.com
yeah. right now, keypair is not something we have portable means to
apply across providers. I do think that we can carry the
Optional<KeyPairClient> design from OpenStack over to the
ComputeService at some point, though.

-A

> --
> You received this message because you are subscribed to the Google Groups
> "jclouds" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/jclouds/-/z92wLp8sWlQJ.
> To post to this group, send email to jcl...@googlegroups.com.
> To unsubscribe from this group, send email to
> jclouds+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/jclouds?hl=en.

Reply all
Reply to author
Forward
0 new messages