Examples of keyPair()


Examples of org.jclouds.cloudstack.options.DeployVirtualMachineOptions.keyPair()

      } else if (templateOptions.shouldGenerateKeyPair()) {
         SshKeyPair keyPair = keyPairCache.getUnchecked(namingConvention.create()
                                                        .sharedNameForGroup(group));
         keyPairCache.asMap().put(keyPair.getName(), keyPair);
         templateOptions.keyPair(keyPair.getName());
         options.keyPair(keyPair.getName());
      }

      if (templateOptions.getDiskOfferingId() != null) {
         options.diskOfferingId(templateOptions.getDiskOfferingId());
         if (templateOptions.getDataDiskSize() > 0) {
View Full Code Here

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.