slaprunner: version up slapos.toolbox.
[slapos.git] / software / bonjourgrid / instance-bonjourgrid.cfg
1 [buildout]
2
3 parts = 
4   redis
5   bonjourgrid
6   boinc-server
7   certificate-authority
8   ca-stunnel
9   logrotate
10   logrotate-entry-apache
11   logrotate-entry-stunnel
12   cron
13   cron-entry-logrotate
14   cron-entry-boinc
15   promise
16   slapmonitor
17   frontend-promise
18   content-promise
19   publish-connection-informations
20   boinc-app
21   condor
22   app-submit
23
24 extends = 
25   ${template-condor:output}
26   ${template-boinc:output}
27   ${template-redis:output}
28
29 [rootdirectory]
30 recipe = slapos.cookbook:mkdirectory
31 etc = $${buildout:directory}/etc/
32 srv = $${buildout:directory}/srv/
33 var = $${buildout:directory}/var/
34 bin = $${buildout:directory}/bin/
35
36 [basedirectory]
37 recipe = slapos.cookbook:mkdirectory
38 scripts = $${rootdirectory:etc}/run/
39 log = $${rootdirectory:var}/log/
40 run = $${rootdirectory:var}/run/
41 backup = $${rootdirectory:srv}/backup/
42 promises = $${rootdirectory:etc}/promise/
43 bonjourgrid = $${rootdirectory:etc}/bonjourgrid.d/
44 bg_base = $${rootdirectory:srv}/bonjourgrid/
45 condor = $${rootdirectory:etc}/condor/
46 boinc = $${rootdirectory:etc}/boinc/
47
48 #Override Boinc server part with custom variables for BonjourGrid
49 #Change the wrapper directory to /bin/boinc/
50 [boinc-server]
51 wrapper-dir = $${basedirectory:boinc}
52
53 [condor]
54 #Change default wrapper dir to /etc/condor/
55 wrapper-dir = $${basedirectory:condor}
56
57 [bonjourgrid]
58 recipe = slapos.cookbook:bonjourgrid
59 master_script = ${bonjourgrid:location}/BonjourGridMaster.py
60 work_dir = $${basedirectory:bg_base}
61 install_dir = ${bonjourgrid:location}
62 condor-wrapper = $${condor:wrapper-dir}
63 boinc-wrapper = $${boinc-server:wrapper-dir}
64 boinc_condor_wrapper = $${basedirectory:bonjourgrid}/bonjourGrid
65 wrapper = $${basedirectory:services}/bonjourGrid
66 log_file = $${basedirectory:log}/bonjourgrid.log
67 pid_file = $${basedirectory:run}/bonjourgrid.pid
68 nworkers = $${slap-parameter:worker-number}
69 redis-url = $${slap-parameter:server-url}
70 redis-port = $${slap-parameter:server-port}
71 redis-passwd = $${slap-parameter:server-password}
72 type = $${slap-parameter:project-type}
73 python-bin = ${buildout:executable}
74
75 url-boinc = $${boinc-app:url-base}$${boinc-app:project}/
76 condor_host = $${slap-parameter:condor-host}
77 ipv6 = $${condor:ip}
78
79 [publish-connection-informations]
80 bg_instance_type = $${slap-parameter:project-type}
81 condor_ipv6_address = $${condor:ip}
82 condor_instance_type = $${condor:machine-role}
83 condor_host = $${condor:condor_host}
84 redis_ip = $${bonjourgrid:redis-url}
85 redis_port = $${bonjourgrid:redis-port}
86 redis_passwd = $${bonjourgrid:redis-passwd}
87 redis_uses_password = $${redis:use_passwd}
88
89 [slap-parameter]
90 project = bonjourgrid
91 server-url = $${redis:ipv6}
92 server-port = $${redis:port}
93 server-password = $${redis:passwd}
94 worker-number = 1
95 #specified if we want to run BOINC or Condor project:
96 #project-type = boinc | condor
97 project-type = boinc
98 ###Condor Parameters #####
99 condor-host = [$${slap-network-information:global-ipv6}]
100 condor-collector-name = SLAPOS-CONDOR-POOL
101 condor-role = manager
102 condor-diskspace = 5
103 condor-admin-email = 
104 condor-allowed-write = $${:condor-host}
105 #submit application, using Json application list
106 condor-app-list = ${condor-application:list}
107 ###Redis Parameters####
108 use_passwd = false
109 ###BOINC parameters --Refer to Boinc Stack######