diff --git a/archetypes/compute-service-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/compute-service-archetype/src/main/resources/archetype-resources/pom.xml
index 431a8b2600..74b8f2a1d7 100644
--- a/archetypes/compute-service-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/compute-service-archetype/src/main/resources/archetype-resources/pom.xml
@@ -54,7 +54,7 @@
jclouds-rimu-snapshots-nexus
- http://jclouds.rimuhosting.com:8081/nexus/content/repositories/snapshots
+ https://oss.sonatype.org/content/repositories/snapshots
true
diff --git a/archetypes/json-client-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/json-client-archetype/src/main/resources/archetype-resources/pom.xml
index 987c38e444..2efa11e0a5 100644
--- a/archetypes/json-client-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/json-client-archetype/src/main/resources/archetype-resources/pom.xml
@@ -54,7 +54,7 @@
jclouds-rimu-snapshots-nexus
- http://jclouds.rimuhosting.com:8081/nexus/content/repositories/snapshots
+ https://oss.sonatype.org/content/repositories/snapshots
true
diff --git a/boxdotnet/pom.xml b/boxdotnet/pom.xml
index f683bb14c7..fada127582 100644
--- a/boxdotnet/pom.xml
+++ b/boxdotnet/pom.xml
@@ -52,7 +52,7 @@
jclouds-rimu-snapshots-nexus
- http://jclouds.rimuhosting.com:8081/nexus/content/repositories/snapshots
+ https://oss.sonatype.org/content/repositories/snapshots
true
diff --git a/chef/compute/pom.xml b/chef/compute/pom.xml
new file mode 100644
index 0000000000..f347e3de5d
--- /dev/null
+++ b/chef/compute/pom.xml
@@ -0,0 +1,150 @@
+
+
+
+ 4.0.0
+
+ org.jclouds
+ jclouds-chef-project
+ 1.0-SNAPSHOT
+ ../pom.xml
+
+ org.jclouds
+ jclouds-chef-compute
+ jclouds chef compute integration
+ provisions nodes with jclouds and kick's off chef to configure and integrate
+
+
+ YOUR_PREFERRED_PROVIDER
+
+
+ YOUR_ACCOUNT
+ YOUR_CREDENTIAL
+ YOUR_USER
+ ${user.home}/.chef/${jclouds.chef.identity}.pem
+ YOUR_ORG
+ https://api.opscode.com/organizations/${jclouds.opscodeplatform.org}
+
+
+
+
+
+ jclouds-googlecode-deploy
+ http://jclouds.googlecode.com/svn/repo
+
+
+ jclouds-rimu-snapshots-nexus
+ https://oss.sonatype.org/content/repositories/snapshots
+
+ true
+
+
+
+
+
+
+ ${project.groupId}
+ jclouds-chef
+ ${project.version}
+
+
+ ${project.groupId}
+ jclouds-compute
+ ${project.version}
+
+
+ ${project.groupId}
+ jclouds-compute
+ ${project.version}
+ test-jar
+ test
+
+
+ ${project.groupId}
+ jclouds-allcompute
+ ${project.version}
+ test
+ true
+
+
+
+
+ live
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+
+ integration
+ integration-test
+
+ test
+
+
+
+ none
+
+
+ **/*LiveTest.java
+
+
+
+ jclouds.compute.provider
+ ${jclouds.compute.provider}
+
+
+ jclouds.compute.endpoint
+ ${jclouds.compute.endpoint}
+
+
+ jclouds.compute.identity
+ ${jclouds.compute.identity}
+
+
+ jclouds.compute.credential
+ ${jclouds.compute.credential}
+
+
+ jclouds.chef.identity
+ ${jclouds.chef.identity}
+
+
+ jclouds.chef.identity.pem
+ ${jclouds.chef.identity.pem}
+
+
+ jclouds.chef.endpoint
+ ${jclouds.chef.endpoint}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/chef/core/pom.xml b/chef/core/pom.xml
index e0bf76592f..0deea59757 100644
--- a/chef/core/pom.xml
+++ b/chef/core/pom.xml
@@ -25,7 +25,7 @@
org.jclouds
jclouds-chef-project
1.0-SNAPSHOT
- ../project/pom.xml
+ ../pom.xml
org.jclouds
jclouds-chef
@@ -49,7 +49,7 @@
jclouds-rimu-snapshots-nexus
- http://jclouds.rimuhosting.com:8081/nexus/content/repositories/snapshots
+ https://oss.sonatype.org/content/repositories/snapshots
true
diff --git a/chef/pom.xml b/chef/pom.xml
index 9af1509dea..05b43def2d 100644
--- a/chef/pom.xml
+++ b/chef/pom.xml
@@ -34,5 +34,6 @@
core
servlet
+ compute
diff --git a/chef/servlet/pom.xml b/chef/servlet/pom.xml
index 5d32cad055..886c50736d 100644
--- a/chef/servlet/pom.xml
+++ b/chef/servlet/pom.xml
@@ -26,7 +26,7 @@
org.jclouds
jclouds-chef-project
1.0-SNAPSHOT
- ../project/pom.xml
+ ../pom.xml
org.jclouds
jclouds-chef-servlet
@@ -41,7 +41,7 @@
jclouds-rimu-snapshots-nexus
- http://jclouds.rimuhosting.com:8081/nexus/content/repositories/snapshots
+ https://oss.sonatype.org/content/repositories/snapshots
true
diff --git a/compute/src/test/java/org/jclouds/compute/BaseComputeServiceLiveTest.java b/compute/src/test/java/org/jclouds/compute/BaseComputeServiceLiveTest.java
index afe92c5120..4f776095cf 100755
--- a/compute/src/test/java/org/jclouds/compute/BaseComputeServiceLiveTest.java
+++ b/compute/src/test/java/org/jclouds/compute/BaseComputeServiceLiveTest.java
@@ -43,6 +43,7 @@ import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Map;
import java.util.NoSuchElementException;
+import java.util.Properties;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
@@ -50,6 +51,7 @@ import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
+import org.jclouds.Constants;
import org.jclouds.compute.domain.ComputeMetadata;
import org.jclouds.compute.domain.ComputeType;
import org.jclouds.compute.domain.Image;
@@ -92,32 +94,32 @@ import com.google.inject.Module;
@Test(groups = { "integration", "live" }, sequential = true, testName = "compute.ComputeServiceLiveTest")
public abstract class BaseComputeServiceLiveTest {
public static final String APT_RUN_SCRIPT = new StringBuilder()//
- .append("echo nameserver 208.67.222.222 >> /etc/resolv.conf\n")//
- .append("cp /etc/apt/sources.list /etc/apt/sources.list.old\n")//
- .append(
- "sed 's~us.archive.ubuntu.com~mirror.anl.gov/pub~g' /etc/apt/sources.list.old >/etc/apt/sources.list\n")//
- .append("apt-get update\n")//
- .append("apt-get install -f -y --force-yes openjdk-6-jdk\n")//
- .toString();
+ .append("echo nameserver 208.67.222.222 >> /etc/resolv.conf\n")//
+ .append("cp /etc/apt/sources.list /etc/apt/sources.list.old\n")//
+ .append(
+ "sed 's~us.archive.ubuntu.com~mirror.anl.gov/pub~g' /etc/apt/sources.list.old >/etc/apt/sources.list\n")//
+ .append("apt-get update\n")//
+ .append("apt-get install -f -y --force-yes openjdk-6-jdk\n")//
+ .toString();
public static final String YUM_RUN_SCRIPT = new StringBuilder()
- .append("echo nameserver 208.67.222.222 >> /etc/resolv.conf\n")
- //
- .append("echo \"[jdkrepo]\" >> /etc/yum.repos.d/CentOS-Base.repo\n")
- //
- .append("echo \"name=jdkrepository\" >> /etc/yum.repos.d/CentOS-Base.repo\n")
- //
- .append(
- "echo \"baseurl=http://ec2-us-east-mirror.rightscale.com/epel/5/i386/\" >> /etc/yum.repos.d/CentOS-Base.repo\n")//
- .append("echo \"enabled=1\" >> /etc/yum.repos.d/CentOS-Base.repo\n")//
- .append("yum --nogpgcheck -y install java-1.6.0-openjdk\n")//
- .append("echo \"export PATH=\\\"/usr/lib/jvm/jre-1.6.0-openjdk/bin/:\\$PATH\\\"\" >> /root/.bashrc\n")//
- .toString();
+ .append("echo nameserver 208.67.222.222 >> /etc/resolv.conf\n")
+ //
+ .append("echo \"[jdkrepo]\" >> /etc/yum.repos.d/CentOS-Base.repo\n")
+ //
+ .append("echo \"name=jdkrepository\" >> /etc/yum.repos.d/CentOS-Base.repo\n")
+ //
+ .append(
+ "echo \"baseurl=http://ec2-us-east-mirror.rightscale.com/epel/5/i386/\" >> /etc/yum.repos.d/CentOS-Base.repo\n")//
+ .append("echo \"enabled=1\" >> /etc/yum.repos.d/CentOS-Base.repo\n")//
+ .append("yum --nogpgcheck -y install java-1.6.0-openjdk\n")//
+ .append("echo \"export PATH=\\\"/usr/lib/jvm/jre-1.6.0-openjdk/bin/:\\$PATH\\\"\" >> /root/.bashrc\n")//
+ .toString();
public static final String ZYPPER_RUN_SCRIPT = new StringBuilder()//
- .append("echo nameserver 208.67.222.222 >> /etc/resolv.conf\n")//
- .append("sudo zypper install java-1.6.0-openjdk-devl\n")//
- .toString();
+ .append("echo nameserver 208.67.222.222 >> /etc/resolv.conf\n")//
+ .append("sudo zypper install java-1.6.0-openjdk-devl\n")//
+ .toString();
abstract public void setServiceDefaults();
@@ -165,7 +167,7 @@ public abstract class BaseComputeServiceLiveTest {
String secret = Files.toString(new File(secretKeyFile), Charsets.UTF_8);
assert secret.startsWith("-----BEGIN RSA PRIVATE KEY-----") : "invalid key:\n" + secret;
return ImmutableMap. of("private", secret, "public", Files.toString(new File(secretKeyFile
- + ".pub"), Charsets.UTF_8));
+ + ".pub"), Charsets.UTF_8));
}
protected void setupCredentials() {
@@ -180,8 +182,11 @@ public abstract class BaseComputeServiceLiveTest {
private void initializeContextAndClient() throws IOException {
if (context != null)
context.close();
+ Properties props = new Properties();
+ props.setProperty(Constants.PROPERTY_TRUST_ALL_CERTS, "true");
+ props.setProperty(Constants.PROPERTY_RELAX_HOSTNAME, "true");
context = new ComputeServiceContextFactory().createContext(provider, identity, credential, ImmutableSet.of(
- new Log4JLoggingModule(), getSshModule()));
+ new Log4JLoggingModule(), getSshModule()), props);
client = context.getComputeService();
}
@@ -200,7 +205,7 @@ public abstract class BaseComputeServiceLiveTest {
ComputeServiceContext context = null;
try {
context = new ComputeServiceContextFactory().createContext(provider, "MOMMA", "MIA", ImmutableSet
- . of(new Log4JLoggingModule()));
+ . of(new Log4JLoggingModule()));
context.getComputeService().listNodes();
} finally {
if (context != null)
@@ -239,7 +244,7 @@ public abstract class BaseComputeServiceLiveTest {
OperatingSystem os = get(nodes, 0).getOperatingSystem();
try {
Map extends NodeMetadata, ExecResponse> responses = runScriptWithCreds(tag, os, new Credentials(
- good.identity, "romeo"));
+ good.identity, "romeo"));
assert false : "shouldn't pass with a bad password\n" + responses;
} catch (RunScriptOnNodesException e) {
assert getRootCause(e).getMessage().contains("Auth fail") : e;
@@ -294,8 +299,8 @@ public abstract class BaseComputeServiceLiveTest {
template = buildTemplate(client.templateBuilder());
template.getOptions().installPrivateKey(newStringPayload(keyPair.get("private"))).authorizePublicKey(
- newStringPayload(keyPair.get("public"))).runScript(
- newStringPayload(buildScript(template.getImage().getOperatingSystem())));
+ newStringPayload(keyPair.get("public"))).runScript(
+ newStringPayload(buildScript(template.getImage().getOperatingSystem())));
}
protected void checkImageIdMatchesTemplate(NodeMetadata node) {
@@ -306,8 +311,8 @@ public abstract class BaseComputeServiceLiveTest {
protected void checkOsMatchesTemplate(NodeMetadata node) {
if (node.getOperatingSystem() != null)
assert node.getOperatingSystem().getFamily().equals(template.getImage().getOperatingSystem().getFamily()) : String
- .format("expecting family %s but got %s", template.getImage().getOperatingSystem().getFamily(), node
- .getOperatingSystem());
+ .format("expecting family %s but got %s", template.getImage().getOperatingSystem().getFamily(), node
+ .getOperatingSystem());
}
void assertLocationSameOrChild(Location test, Location expected) {
@@ -332,10 +337,10 @@ public abstract class BaseComputeServiceLiveTest {
}
protected Map extends NodeMetadata, ExecResponse> runScriptWithCreds(final String tag, OperatingSystem os,
- Credentials creds) throws RunScriptOnNodesException {
+ Credentials creds) throws RunScriptOnNodesException {
try {
return client.runScriptOnNodesMatching(runningWithTag(tag), newStringPayload(buildScript(os)),
- overrideCredentialsWith(creds));
+ overrideCredentialsWith(creds));
} catch (SshException e) {
throw e;
}
@@ -393,7 +398,7 @@ public abstract class BaseComputeServiceLiveTest {
protected void assertNodeZero(Set extends NodeMetadata> metadataSet) {
assert metadataSet.size() == 0 : String.format("nodes left in set: [%s] which didn't match set: [%s]",
- metadataSet, nodes);
+ metadataSet, nodes);
}
@Test(enabled = true, dependsOnMethods = "testGet")
@@ -454,26 +459,26 @@ public abstract class BaseComputeServiceLiveTest {
assert location != location.getParent() : location;
assert location.getScope() != null : location;
switch (location.getScope()) {
- case PROVIDER:
- assertProvider(location);
- break;
- case REGION:
- assertProvider(location.getParent());
- break;
- case ZONE:
- Location provider = location.getParent().getParent();
- // zone can be a direct descendant of provider
- if (provider == null)
- provider = location.getParent();
- assertProvider(provider);
- break;
- case HOST:
- Location provider2 = location.getParent().getParent().getParent();
- // zone can be a direct descendant of provider
- if (provider2 == null)
- provider2 = location.getParent().getParent();
- assertProvider(provider2);
- break;
+ case PROVIDER:
+ assertProvider(location);
+ break;
+ case REGION:
+ assertProvider(location.getParent());
+ break;
+ case ZONE:
+ Location provider = location.getParent().getParent();
+ // zone can be a direct descendant of provider
+ if (provider == null)
+ provider = location.getParent();
+ assertProvider(provider);
+ break;
+ case HOST:
+ Location provider2 = location.getParent().getParent().getParent();
+ // zone can be a direct descendant of provider
+ if (provider2 == null)
+ provider2 = location.getParent().getParent();
+ assertProvider(provider2);
+ break;
}
}
}
diff --git a/demos/antjruby/build.xml b/demos/antjruby/build.xml
index ba54fc0a80..b76fe31e3c 100644
--- a/demos/antjruby/build.xml
+++ b/demos/antjruby/build.xml
@@ -31,7 +31,7 @@
classpathref="maven-ant-tasks.classpath" />
-
+
diff --git a/ibmdev/pom.xml b/ibmdev/pom.xml
index c9a5e2295f..f838e698d2 100644
--- a/ibmdev/pom.xml
+++ b/ibmdev/pom.xml
@@ -51,7 +51,7 @@
jclouds-rimu-snapshots-nexus
- http://jclouds.rimuhosting.com:8081/nexus/content/repositories/snapshots
+ https://oss.sonatype.org/content/repositories/snapshots
diff --git a/opscodeplatform/pom.xml b/opscodeplatform/pom.xml
index 9d7ecbe6aa..e221246bc7 100644
--- a/opscodeplatform/pom.xml
+++ b/opscodeplatform/pom.xml
@@ -52,7 +52,7 @@
jclouds-rimu-snapshots-nexus
- http://jclouds.rimuhosting.com:8081/nexus/content/repositories/snapshots
+ https://oss.sonatype.org/content/repositories/snapshots
true
diff --git a/thirdparty/pom.xml b/thirdparty/pom.xml
index d2caf160d7..94e30ccc91 100644
--- a/thirdparty/pom.xml
+++ b/thirdparty/pom.xml
@@ -42,8 +42,8 @@
false
- jclouds-rimu-snapshots-nexus
- http://jclouds.rimuhosting.com/nexus/content/repositories/snapshots
+ jclouds-snapshots
+ https://oss.sonatype.org/content/repositories/snapshots
diff --git a/tools/antcontrib/samples/cargooverssh/build.xml b/tools/antcontrib/samples/cargooverssh/build.xml
index 409ea99620..b473d6fa4c 100644
--- a/tools/antcontrib/samples/cargooverssh/build.xml
+++ b/tools/antcontrib/samples/cargooverssh/build.xml
@@ -56,7 +56,7 @@
-
+
diff --git a/vcloud/core/src/main/java/domain/VCloudLoginAsyncClient.java b/vcloud/core/src/main/java/domain/VCloudLoginAsyncClient.java
index fbd3d86c98..0e7401ddb6 100644
--- a/vcloud/core/src/main/java/domain/VCloudLoginAsyncClient.java
+++ b/vcloud/core/src/main/java/domain/VCloudLoginAsyncClient.java
@@ -44,7 +44,7 @@ import com.google.common.util.concurrent.ListenableFuture;
public interface VCloudLoginAsyncClient {
/**
- * This request returns a token to use in subsequent requests. After ten minutes of inactivity,
+ * This request returns a token to use in subsequent requests. After 30 minutes of inactivity,
* the token expires and you have to request a new token with this call.
*/
@POST
diff --git a/vcloud/core/src/main/java/org/jclouds/vcloud/VCloudAsyncClient.java b/vcloud/core/src/main/java/org/jclouds/vcloud/VCloudAsyncClient.java
index 6bb34b7983..1e0fc1adfd 100644
--- a/vcloud/core/src/main/java/org/jclouds/vcloud/VCloudAsyncClient.java
+++ b/vcloud/core/src/main/java/org/jclouds/vcloud/VCloudAsyncClient.java
@@ -27,6 +27,7 @@ import static org.jclouds.vcloud.VCloudMediaType.VAPP_XML;
import static org.jclouds.vcloud.VCloudMediaType.VM_XML;
import java.net.URI;
+import java.util.Map;
import javax.annotation.Nullable;
import javax.ws.rs.Consumes;
@@ -38,6 +39,7 @@ import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.jclouds.predicates.validators.DnsNameValidator;
+import org.jclouds.rest.annotations.Endpoint;
import org.jclouds.rest.annotations.EndpointParam;
import org.jclouds.rest.annotations.ExceptionParser;
import org.jclouds.rest.annotations.MapBinder;
@@ -52,16 +54,19 @@ import org.jclouds.vcloud.binders.BindCloneVAppParamsToXmlPayload;
import org.jclouds.vcloud.binders.BindDeployVAppParamsToXmlPayload;
import org.jclouds.vcloud.binders.BindInstantiateVAppTemplateParamsToXmlPayload;
import org.jclouds.vcloud.binders.BindUndeployVAppParamsToXmlPayload;
+import org.jclouds.vcloud.domain.ReferenceType;
import org.jclouds.vcloud.domain.Task;
import org.jclouds.vcloud.domain.VApp;
import org.jclouds.vcloud.domain.VAppTemplate;
import org.jclouds.vcloud.domain.Vm;
import org.jclouds.vcloud.domain.ovf.OvfEnvelope;
+import org.jclouds.vcloud.endpoints.OrgList;
import org.jclouds.vcloud.filters.SetVCloudTokenCookie;
import org.jclouds.vcloud.functions.OrgNameCatalogNameVAppTemplateNameToEndpoint;
import org.jclouds.vcloud.functions.OrgNameVDCNameResourceEntityNameToEndpoint;
import org.jclouds.vcloud.options.CloneVAppOptions;
import org.jclouds.vcloud.options.InstantiateVAppTemplateOptions;
+import org.jclouds.vcloud.xml.OrgListHandler;
import org.jclouds.vcloud.xml.TaskHandler;
import org.jclouds.vcloud.xml.VAppHandler;
import org.jclouds.vcloud.xml.VAppTemplateHandler;
@@ -74,11 +79,21 @@ import com.google.common.util.concurrent.ListenableFuture;
* Provides access to VCloud resources via their REST API.
*
*
- * @see
+ * @see
* @author Adrian Cole
*/
@RequestFilters(SetVCloudTokenCookie.class)
public interface VCloudAsyncClient extends CommonVCloudAsyncClient {
+ /**
+ *
+ * @see VCloudClient#listOrgs
+ */
+ @GET
+ @Endpoint(OrgList.class)
+ @XMLResponseParser(OrgListHandler.class)
+ @Consumes(VCloudMediaType.ORGLIST_XML)
+ ListenableFuture