Created
March 29, 2011 23:03
-
-
Save davidsantiago/893537 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(def server-system (core/node-spec :image {:os-family :ubuntu | |
:os-version "10.10"})) | |
(def server-config | |
(core/server-spec | |
:phases {:bootstrap (phase/phase-fn (crates/bootstrap)) | |
:configure (phase/phase-fn | |
(crates/java) | |
(crates/iptables) | |
(crates/couchdb) | |
(crates/nginx) | |
(crates/redis) | |
(when-> (bake.core/context? :dev) | |
(crates/swank) | |
(crates/cake) | |
(crates/add-shared-folder-to-instance | |
"machome" | |
"/Users/David") | |
(crates/mount-shared-folder))) | |
:deploy (phase/phase-fn (crates/deploy-static-assets))} )) | |
;; One server to run everything (servlet, database, nginx, etc). | |
(def server | |
(core/group-spec "server" | |
:node-spec server-system | |
:extends server-config)) |
This file contains hidden or 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
:environment {:tags {:server {:image {:os-family :ubuntu | |
:os-version "10.10"}}}} |
This file contains hidden or 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
2011-03-29 18:46:31,596 DEBUG [pallet.main-invoker] (Thread-14) OS Mac OS X 10.6.7 | |
2011-03-29 18:46:31,619 DEBUG [pallet.main-invoker] (Thread-14) Arch i386 | |
2011-03-29 18:46:31,619 DEBUG [pallet.main-invoker] (Thread-14) Admin user david | |
2011-03-29 18:46:31,620 DEBUG [pallet.main-invoker] (Thread-14) private-key-path /Users/David/.ssh/id_rsa true | |
2011-03-29 18:46:31,620 DEBUG [pallet.main-invoker] (Thread-14) public-key-path /Users/David/.ssh/id_rsa.pub true | |
2011-03-29 18:46:31,622 DEBUG [pallet.core] (Thread-14) pallet version: null | |
2011-03-29 18:46:31,622 TRACE [pallet.core] (Thread-14) lift* phases [] | |
2011-03-29 18:46:31,622 INFO [pallet.core] (Thread-14) retrieving nodes | |
2011-03-29 18:46:31,789 TRACE [pallet.core] (Thread-14) lift-nodes phases [:configure] | |
2011-03-29 18:46:31,789 INFO [pallet.core] (Thread-14) apply-phase :pre-configure for null with 0 nodes | |
2011-03-29 18:46:31,790 INFO [pallet.core] (Thread-14) apply-phase :configure for null with 0 nodes | |
2011-03-29 18:46:31,790 INFO [pallet.core] (Thread-14) apply-phase :after-configure for null with 0 nodes |
This file contains hidden or 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
{:group-name :server, :image {:os-family :ubuntu, :os-version "10.10"}, :phases {:bootstrap #<nodes$fn__7346 com.battletheory.deploy.nodes$fn__7346@f8ff19>, :configure #<nodes$fn__7348 com.battletheory.deploy.nodes$fn__7348@133f619>, :deploy #<nodes$fn__7351 com.battletheory.deploy.nodes$fn__7351@61ef35>}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment