-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample-project.clj
57 lines (46 loc) · 2.18 KB
/
sample-project.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
(defproject sample-project "0.1.0"
:description "Sample project for using lein pallet-fuz"
:url "http://example.com/"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.4.0"]]
;; lein-ring needs to be available outside of a specific profile
:plugins [[lein-ring "0.8.3"]]
;; You can set up lein-pallet-fuz as a typical plugin dependency.
;; Here however we set it up as a plugin inside of a profile.
;; This is so when any other lein task is executed in the cloud we don't
;; trigger a download of all the pallet-fuz dependencies.
;;
;; The downside is you have to do
;; lein with-profile dep pallet-fuz startup
;; as oppose to
;; lein pallet-fuz startup
:profiles {:dep {:plugins [[lein-pallet-fuz "0.1.2"]
[org.cloudhoist/pallet-lein "0.5.1"]]}}
:ring {:handler foo.bar ;; specify a real handler
}
;; Ensure you fill in the mandatory place-holders
;;
;; Mandatory:
;; git-url - url to github project
;; pub-key-path - path to the deployment user public key
;; pri-key-path - path to the deployment user private key
;;
;; Optional:
;; user - username of the deployment user to be created, defaults to fuzzer
;; checkout-dir - dir name where git project is cloned to, defaults to fuz-tmp
;; port - port used for ring, defaults to 3000
;; service-name - name to use to register upstart service, defaults to pallet-fuz
;; group-name - name of the group-spec, defaults to fuzgroup
;; out-file - path to file to spit output to as there can be a lot from Pallet
:pallet-fuz {
;; Mandatory pallet-fuz args
:pub-key-path "{pathtopubkey}"
:pri-key-path "{pathtoprivkey}"
:git-url "{github-url}"
;; A sample EC2 pallet node-spec
:node-spec {:image {:os-family :ubuntu
:os-version-matches "12.04"}
:hardware {:hardware-id "t1.micro"}
:network {:inbound-ports [22 3000]}
:location {:location-id "us-east-1"}}})))