Skip to content

Instantly share code, notes, and snippets.

@rboyd
Created June 18, 2013 16:48
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 rboyd/5807105 to your computer and use it in GitHub Desktop.
Save rboyd/5807105 to your computer and use it in GitHub Desktop.
in ~/.pallet/config.clj:
(defpallet
:services
{
:my-servers {
:provider "node-list"
:node-list [["hostname1.local" "staging" "hostname1.local" :ubuntu]]
}
})
from repl:
(require '[pallet.actions :refer [exec-script*]])
(require '[pallet.api :refer [group-spec lift plan-fn]])
(require '[pallet.configure :refer [compute-service]])
(lift
(group-spec "my-servers")
:phase (plan-fn (exec-script* "ls /tmp"))
:compute (pallet.configure/compute-service))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment