Skip to content

Instantly share code, notes, and snippets.

@stuarthalloway
Created July 10, 2010 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuarthalloway/470955 to your computer and use it in GitHub Desktop.
Save stuarthalloway/470955 to your computer and use it in GitHub Desktop.
(do (require 'pallet.repl)
(pallet.repl/use-pallet)
(use 'pallet.crate.automated-admin-user)
(use 'pallet.crate.java)
(use 'pallet.crate.git)
(use 'pallet.crate.ssh))
(defn demo-amazon
[id pass]
(def service (compute-service "ec2" id pass :log4j :ssh))
(defnode praxis
[:ubuntu :X86_32 :size-id "m1.small"
:image-id "ami-bb709dd2"]
:bootstrap [(automated-admin-user)]
:configure [(openssh) (java :jdk) (git)])
(converge {praxis 1} service :configure))
; then call demo-amazon with appropriate args...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment