Package org.jclouds.ibm.smartcloud.compute.options

Examples of org.jclouds.ibm.smartcloud.compute.options.IBMSmartCloudTemplateOptions.keyPair()


   public Map<?, Future<Void>> execute(String group, int count, Template template, Set<NodeMetadata> goodNodes,
            Map<NodeMetadata, Exception> badNodes, Multimap<NodeMetadata, CustomizationResponse> customizationResponses) {
      IBMSmartCloudTemplateOptions options = template.getOptions().as(IBMSmartCloudTemplateOptions.class);
      if (options.shouldAutomaticallyCreateKeyPair() && options.getKeyPair() == null) {
         Key key = createNewKey(group);
         options.keyPair(key.getName());
         credentialsMap.put(key.getName(), key.getKeyMaterial());
      }
      return super.execute(group, count, template, goodNodes, badNodes, customizationResponses);
   }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.