-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrepl-test.clj
26 lines (20 loc) · 1013 Bytes
/
repl-test.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
(use 'pallet.crate.mongodb-test 'pallet.repl 'pallet.crate.automated-admin-user)
(use-pallet)
(def vmfest (compute-service :vmfest))
(def mongodb-ubuntu (group-spec "mongodb-ubuntu-test"
:node-spec {:image {:image-id :ubuntu-12.04}}
:extends [with-automated-admin-user
live-test-spec]))
(converge {mongodb-ubuntu 1}
:compute vmfest
:phase [:install :configure :restart :test ] )
;; debian
(def mongodb-debian (group-spec "mongodb-debian-test"
:node-spec {:image
{:image-id :debian-6.0.2.1-64bit-v0.3}}
:extends [with-automated-admin-user
live-test-spec]))
(converge {mongodb-debian 1}
:compute vmfest
:phase [:install :configure :restart :test ] )
(converge {mongodb-ubuntu 0 mongodb-debian 0} :compute vmfest)