Guest User

Untitled

a guest
Jan 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. (ns core
  2. (:use [pallet core compute]
  3. [pallet.phase :only [phase-fn]]
  4. [pallet.utils :only [make-user]]
  5. [pallet.action.exec-script :only [exec-script]]))
  6.  
  7. (require 'pallet.compute.node-list)
  8.  
  9. (def comp
  10. (pallet.compute/compute-service
  11. "node-list"
  12. :node-list [(pallet.compute.node-list/make-node
  13. "smfd-akg-19-sr3.devel.twitter.com" "jasontest" "10.35.10.118" :debian)]
  14. :environment {:user (make-user "jackson")
  15. :algorithms {:lift-fn pallet.core/sequential-lift
  16. :converge-fn pallet.core/parallel-adjust-node-counts}}))
  17.  
  18.  
  19. (def pa-node-spec
  20. (node-spec
  21. :image nil))
  22.  
  23. (def pa-server-spec
  24. (server-spec
  25. :phases {:configure (phase-fn
  26. (exec-script
  27. (touch hello)))}))
  28.  
  29. (def pa-group-spec
  30. (group-spec "jasontest" :node-spec pa-node-spec))
  31.  
  32. #_ (lift pa-group-spec :compute comp :phase :configure)
Add Comment
Please, Sign In to add comment