This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] | \- org.jclouds:jclouds-core:jar:1.6.0-SNAPSHOT:compile <- 696k + 3132k deps = 3828k | |
[INFO] | +- javax.ws.rs:jsr311-api:jar:1.1.1:compile | |
[INFO] | +- com.google.inject.extensions:guice-assistedinject:jar:3.0:compile | |
[INFO] | +- com.google.inject:guice:jar:3.0:compile | |
[INFO] | | \- aopalliance:aopalliance:jar:1.0:compile | |
[INFO] | +- org.99soft.guice:rocoto:jar:6.2:compile | |
[INFO] | +- javax.inject:javax.inject:jar:1:compile | |
[INFO] | +- javax.annotation:jsr250-api:jar:1.0:compile | |
[INFO] | +- com.google.code.gson:gson:jar:2.2.2:compile | |
[INFO] | \- com.google.guava:guava:jar:14.0-rc2:compile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here's the critical part of the keystone response: | |
"serviceCatalog": [{ | |
"endpoints": [{ | |
"adminURL": "http://10.10.10.10:8774/v2/82d8d2f865484776a1daf1e2245d3317", | |
"region": "RegionOne", | |
"internalURL": "http://10.10.10.10:8774/v2/82d8d2f865484776a1daf1e2245d3317", | |
"id": "bb3ce9ccdc5045909882688b90cc3ff0", | |
"publicURL": "http://10.10.10.10:8774/v2/82d8d2f865484776a1daf1e2245d3317" | |
}], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; deps: 1.5.0-beta.10 org.jclouds/provider/aws-ec2 org.jclouds/driver/jclouds-bouncycastle | |
(use 'org.jclouds.compute2) | |
(def compute (compute-service "aws-ec2" "ACCESS" "SECRET" :bouncycastle )) | |
;; image has winrm installed | |
(def windows (create-node compute "windows" (build-template compute { :inbound-ports [5986, 3389] :image-id "us-east-1/ami-0cb76d65" :hardware-id "m1.small" } ) ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here's an approach to ensure at least 2 things are sensible on the host: ${hostname} and ${fqdn} | |
if ${hostname} is not specified via api, it could be set to the same as the node's name | |
in private clouds, ${fqdn} may need to come from a property or a conversion fn (ex. = ${hostname}.mydomain.com) | |
in public clouds, ${fqdn} can be set via api data (ec2.publicDnsName), dns resolution, or x-x-x-x.static.cloud-ips.com | |
on (centos|fedora|rhel|amzn_linux)-based operating systems | |
/etc/sysconfig/network: replace line HOSTNAME=${fqdn} | |
/proc/sys/kernel/hostname: replace w/${fqdn} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CacheLoader<String, AccessControlList> loader = RetryingCacheLoaderDecorator.newDecorator() | |
.on(ResourceNotFoundException.class).exponentiallyBackoff() | |
.decorate( | |
new CacheLoader<String, AccessControlList>() { | |
@Override | |
public AccessControlList load(String bucketName) { | |
return client.getBucketACL(bucketName); | |
} | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testTemplateBuilder() { | |
Template defaultTemplate = this.view.getComputeService().templateBuilder().build(); | |
assertEquals(defaultTemplate.getImage().getOperatingSystem().is64Bit(), true); | |
assertEquals(defaultTemplate.getImage().getOperatingSystem().getVersion(), "11.10"); | |
assertEquals(defaultTemplate.getImage().getOperatingSystem().getFamily(), OsFamily.UBUNTU); | |
assertEquals(defaultTemplate.getImage().getName(), "Ubuntu Oneiric 11.10 Server 64-bit 20111212"); | |
assertEquals(defaultTemplate.getImage().getDefaultCredentials().getUser(), "ubuntu"); | |
assertEquals(defaultTemplate.getLocation().getId(), "az-2.region-a.geo-1"); | |
assertEquals(defaultTemplate.getImage().getLocation().getId(), "az-2.region-a.geo-1"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adrian-Coles-iMac:jclouds-plugin adriancole$ git diff | |
diff --git a/src/main/java/jenkins/plugins/jclouds/blobstore/BlobStoreProfile.java b/src/main/java/jenkins/plugins/jclouds/blobstore/BlobStoreProfile.java | |
index 80f60a3..0d66111 100644 | |
--- a/src/main/java/jenkins/plugins/jclouds/blobstore/BlobStoreProfile.java | |
+++ b/src/main/java/jenkins/plugins/jclouds/blobstore/BlobStoreProfile.java | |
@@ -88,7 +88,7 @@ public class BlobStoreProfile { | |
.credentials(identity, credential) | |
.overrides(overrides) | |
.modules(MODULES) | |
- .build(BlobStoreContext.class); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Prereqs: | |
;; - 1.5.0-SNAPSHOT deps for org.jclouds.labs/virtualbox, org.jclouds.driver/jclouds-sshj, org.jclouds.driver/jclouds-slf4j | |
;; - downloaded & installed vbox 4.1.8; started vboxwebsrv | |
;; - you have an rsa ssh key that works on localhost, and sudo doesn't require a password | |
;; | |
;; all else is 0conf (ex. image built on demand from public iso, downloaded on demand) | |
;; | |
;; thx to andreaturli mattiasholmqvist dralves asavu + jedi4ever for the guidance! | |
;; | |
(use 'org.jclouds.compute2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO 2011-02-08 14:01:58,191 clj-ssh.ssh - Authentications that can continue: publickey,keyboard-interactive,password | |
INFO 2011-02-08 14:01:58,192 clj-ssh.ssh - Next authentication method: publickey | |
INFO 2011-02-08 14:01:58,472 clj-ssh.ssh - Authentication succeeded (publickey). | |
INFO 2011-02-08 14:02:03,232 clj-ssh.ssh - Disconnecting from 50.16.135.196 port 22 | |
INFO 2011-02-08 14:02:03,239 clj-ssh.ssh - Caught an exception, leaving main loop due to Socket closed | |
'../mini-webapp/mini-webapp-1.0.0-SNAPSHOT.war' does not exist, is a directory, or is unreadable; cannot register it for transfer. | |
Exception in thread "main" java.lang.IllegalArgumentException: No matching field found: .printStackTrace for class java.lang.IllegalArgumentException (NO_SOURCE_FILE:1) | |
at clojure.lang.Compiler.eval(Compiler.java:5440) | |
at clojure.lang.Compiler.eval(Compiler.java:5415) | |
at clojure.lang.Compiler.eval(Compiler.java:5415) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject webapp-nodes "0.4.0-SNAPSHOT" | |
:description "Webapp on tomcat" | |
:dependencies [[org.cloudhoist/pallet "0.4.0-SNAPSHOT" :exclusions [org.jclouds/jclouds-compute | |
org.jclouds/jclouds-blobstore | |
org.jclouds/jclouds-scriptbuilder | |
org.jclouds/jclouds-aws | |
org.jclouds/jclouds-bluelock | |
org.jclouds/jclouds-gogrid | |
org.jclouds/jclouds-rackspace | |
org.jclouds/jclouds-rimuhosting |
NewerOlder