> + parameters.setServiceName(group); > + parameters.setLocation(template.getLocation().getId()); > + client.getHostedServiceApi().createHostedService(parameters); > + } > + > + //required > + ArrayList<ConfigurationSet> configlist = new > ArrayList<ConfigurationSet>(); > + ConfigurationSet configset = new ConfigurationSet(); > + > configset.setConfigurationSetType(template.getImage().getOperatingSystem().getFamily() > == OsFamily.LINUX ? > + ConfigurationSetTypes.LINUXPROVISIONINGCONFIGURATION : > ConfigurationSetTypes.WINDOWSPROVISIONINGCONFIGURATION); > +// > configset.setConfigurationSetType(ConfigurationSetTypes.WINDOWSPROVISIONINGCONFIGURATION); > + String vmName = name.substring(group.length() + 1); > +// required > + configset.setComputerName(vmName); > + String adminuserPassword = "Pamir5463"; > + String adminUserName = "farlen";
This can't be hardcoded here and must be read from the template options, as it provides fields to override the login username, password etc. Default credentials can be set in the image transformation function or as default properties in the api metadata, where you can specify credentials for each os family. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/132/files#r24749107
