Examples of osFamily()


Examples of org.jclouds.compute.domain.TemplateBuilder.osFamily()

      if (hardwareId != null) {
         builder.hardwareId(hardwareId);
      }

      if (osFamily != null) {
         builder.osFamily(OsFamily.fromValue(osFamily));
      }

      if (osVersion != null) {
         builder.osVersionMatches(osVersion);
      }
View Full Code Here

Examples of org.jclouds.compute.domain.TemplateBuilder.osFamily()

            if (overrideImageChoice) {
                LOG.debug("Customising image choice for {}", this);
                template = new PortableTemplateBuilder();
                if (isJcloudsLocation(location, GoogleComputeEngineConstants.GCE_PROVIDER_NAME)) {
                    template.osFamily(OsFamily.CENTOS).osVersionMatches("6");
                } else {
                    template.osFamily(OsFamily.UBUNTU).osVersionMatches("12.04");
                }
                template.os64Bit(true);
                flags.put(JcloudsLocationConfig.TEMPLATE_BUILDER.getName(), template);
View Full Code Here

Examples of org.jclouds.compute.domain.TemplateBuilder.osFamily()

                LOG.debug("Customising image choice for {}", this);
                template = new PortableTemplateBuilder();
                if (isJcloudsLocation(location, GoogleComputeEngineConstants.GCE_PROVIDER_NAME)) {
                    template.osFamily(OsFamily.CENTOS).osVersionMatches("6");
                } else {
                    template.osFamily(OsFamily.UBUNTU).osVersionMatches("12.04");
                }
                template.os64Bit(true);
                flags.put(JcloudsLocationConfig.TEMPLATE_BUILDER.getName(), template);
            } else {
                LOG.debug("Not modifying existing image configuration for {}", this);
View Full Code Here

Examples of org.jclouds.compute.domain.TemplateBuilder.osFamily()

      if (hardwareId != null) {
         builder.hardwareId(hardwareId);
      }

      if (osFamily != null) {
         builder.osFamily(OsFamily.fromValue(osFamily));
      }

      if (osVersion != null) {
         builder.osVersionMatches(osVersion);
      }
View Full Code Here

Examples of org.jclouds.compute.domain.TemplateBuilder.osFamily()

                    System.out.printf(">> adding node to group %s%n", groupName);

                    // Default template chooses the smallest size on an operating
                    // system that tested to work with java
                    TemplateBuilder templateBuilder = compute.templateBuilder();
                    templateBuilder.osFamily(OsFamily.UBUNTU);

                    // If you want to up the ram and leave everything default, you
                    // can just tweak minRam
                    if (minRam != null) {
                        templateBuilder.minRam(Integer.parseInt(minRam));
View Full Code Here

Examples of org.jclouds.compute.domain.TemplateBuilder.osFamily()

            // Default template chooses the smallest size on an operating system
            // that tested to work with java, which tends to be Ubuntu or CentOS
            TemplateBuilder templateBuilder = compute.templateBuilder();

            if (providerIsGCE)
               templateBuilder.osFamily(OsFamily.CENTOS);
           
            // If you want to up the ram and leave everything default, you can
            // just tweak minRam
            if (minRam != null)
               templateBuilder.minRam(Integer.parseInt(minRam));
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.