Created
February 29, 2012 16:19
-
-
Save dparoulek/1942109 to your computer and use it in GitHub Desktop.
pallet quickstart
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 quickstart "1.0.0-SNAPSHOT" | |
:description "First steps with pallet" | |
:dependencies [[org.clojure/clojure "1.2.1"] | |
[org.cloudhoist/pallet "0.6.7"] | |
[org.cloudhoist/pallet-crates-all "0.5.0"] | |
[org.jclouds/jclouds-all "1.0.0"] | |
[org.jclouds.driver/jclouds-jsch "1.0.0"] | |
[org.jclouds.driver/jclouds-log4j "1.0.0"] | |
[org.slf4j/slf4j-api "1.6.1"] | |
[ch.qos.logback/logback-core "1.0.0"] | |
[ch.qos.logback/logback-classic "1.0.0"]] | |
:repositories {"sonatype" | |
"http://oss.sonatype.org/content/repositories/releases"}) |
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
(require 'pallet.repl) | |
(pallet.repl/use-pallet) | |
(def my-user "aws key") | |
(def my-pass "aws secret") | |
;; tried putting jclouds options here: | |
(def compute (compute-service "aws-ec2" :identity my-user :credential my-pass | |
:jclouds.ec2.ami-query "" :jclouds.ec2.cc-ami-query "")) | |
;; and also in nodespec (although I need to go back and double check that I tested this) | |
(def phpwebserver | |
(group-spec "crowdtangle" | |
:node-spec {:image {:image-id "ami-00b14b69"} | |
:hardware {:smallest true} | |
:network {:inbound-ports [80 443]} | |
:jclouds.ec2.ami-query "" :jclouds.ec2.cc-ami-query ""})) | |
(converge {phpwebserver 1} :compute compute) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment