Skip to content

Instantly share code, notes, and snippets.

@steveturner
Created March 3, 2013 17:03
Show Gist options
  • Save steveturner/5076972 to your computer and use it in GitHub Desktop.
Save steveturner/5076972 to your computer and use it in GitHub Desktop.
pallet.clj
(ns startingclojure.pallet
(:require pallet.core pallet.compute pallet.configure)
(:use [pallet.action.package :only [package]]
[pallet.phase :only [phase-fn]]
[pallet.crate.automated-admin-user :only [automated-admin-user]]))
(pallet.core/converge
(pallet.core/group-spec "mygroup"
:count 0
:node-spec (pallet.core/node-spec
:image {:os-family :ubuntu :image-id "us-east-1/ami-3c994355"})
:phases {:bootstrap automated-admin-user
:configure (phase-fn (package "curl"))})
:compute (pallet.configure/compute-service :aws))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment