Created
July 10, 2010 19:22
-
-
Save stuarthalloway/470955 to your computer and use it in GitHub Desktop.
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
(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