wip for json schema
[slapos.git] / software / bonjourgrid-client / bonjourgrid-instance.cfg
1 [buildout]
2
3 parts = 
4   condor
5   boinc-client
6   computerinfo-script
7   bonjourgrid-client
8   publish-connection-informations
9
10 extends = 
11   ${template-condor:output}
12   ${template-boinc:output}
13
14 eggs-directory = ${buildout:eggs-directory}
15 develop-eggs-directory = ${buildout:develop-eggs-directory}
16 offline = true
17
18 [basedirectory]
19 recipe = slapos.cookbook:mkdirectory
20 log = $${rootdirectory:var}/log/
21 run = $${rootdirectory:var}/run/
22 services = $${rootdirectory:etc}/service/
23 backup = $${rootdirectory:srv}/backup/
24 promises = $${rootdirectory:etc}/promise/
25 bg_base = $${rootdirectory:srv}/bonjourgrid/
26
27 [account-passwd]
28 recipe = slapos.cookbook:generate.password
29 storage-path = $${rootdirectory:etc}/.account_passwd
30 bytes = 8
31
32 [computerinfo-script]
33 recipe = slapos.recipe.template
34 url = ${computer-info:location}/${computer-info:filename}
35 output = $${bonjourgrid-client:work_dir}/machineinfo.worker.sh
36 mode = 0744
37
38 ip_address = $${slap-network-information:global-ipv6}
39
40 [bonjourgrid-client]
41 recipe = slapos.cookbook:bonjourgrid.client
42 client_script = ${bonjourgrid:location}/BonjourGridWorker.py
43 work_dir = $${basedirectory:bg_base}
44 install_dir = ${bonjourgrid:location}
45 boinc_script = $${basedirectory:bg_base}/runBoinc
46 condor_script = $${basedirectory:bg_base}/runCondor
47 wrapper = $${basedirectory:services}/bonjourGrid-Worker
48 log_file = $${basedirectory:log}/bonjourgrid-worker.log
49 pid_file = $${basedirectory:run}/bonjourgrid-worker.pid
50 python-bin = ${buildout:executable}
51 redis-url = $${slap-parameter:redis-ip}
52 redis-port = $${slap-parameter:redis-port}
53
54 #Boinc and Condor parameters
55 ipv6 = $${slap-network-information:global-ipv6}
56 email = $${slap-parameter:user-email}
57 condor_sbin = $${condor:sbin}
58 condor_bin = $${condor:bin}
59 boinc_wrapper = $${boinc-client:client-wrapper}
60 condor_wrapper = $${condor:wrapper-dir}/start_condor
61 boinc_cmd = $${boinc-client:cmd-bin}
62 boinc_rpc_port = $${boinc-client:rpc-port}
63 boinc_install_dir = $${boinc-client:install-dir}
64 condor_config = $${buildout:directory}/etc/condor_config
65 condor_config_local = $${condor:local-dir}/condor_config.local
66 boinc_passwd = $${boinc-client:passwd}
67 account_name = $${slap-parameter:full-name}
68 account_passwd = $${account-passwd:passwd}
69
70 [publish-connection-informations]
71 boinc-account-email = $${slap-parameter:user-email}
72 boinc-account-name = $${slap-parameter:full-name}
73 boinc-account-passwd = $${account-passwd:passwd}
74
75 [slap-parameter]
76 user-email = your.email@your.domain.com
77 full-name = Your Full Name
78 redis-ip = 
79 redis-port = 6379