hadoop SR
[slapos.git] / software / bonjourgrid-client / condor-instance.cfg
1 [buildout]
2 parts =
3   condor
4   publish-connection-informations
5
6 eggs-directory = ${buildout:eggs-directory}
7 develop-eggs-directory = ${buildout:develop-eggs-directory}
8 #Enable download
9 newest = false
10 offline = false
11
12 # Create all needed directories
13 [rootdirectory]
14 recipe = slapos.cookbook:mkdirectory
15 etc = $${buildout:directory}/etc/
16 var = $${buildout:directory}/var/
17 condor = $${buildout:directory}/condor/
18 job = $${buildout:directory}/jobs/
19 bin = $${buildout:directory}/bin/
20 sbin = $${buildout:directory}/sbin/
21 srv = $${buildout:directory}/srv/
22
23 [basedirectory]
24 recipe = slapos.cookbook:mkdirectory
25 log = $${rootdirectory:var}/log/
26 run = $${rootdirectory:var}/run/
27 backup = $${rootdirectory:srv}/backup/
28 promises = $${rootdirectory:etc}/promise/
29 condor = $${rootdirectory:etc}/condor/
30
31 [wrapperdirectory]
32 recipe = slapos.cookbook:mkdirectory
33 wrapper = $${basedirectory:run}/condor
34
35 [condor]
36 recipe = slapos.cookbook:condor
37 #Change default wrapper dir to /etc/condor/
38 wrapper-dir = $${basedirectory:condor}
39 ip = $${slap-network-information:global-ipv6}
40 package = ${condor:location}
41 rootdirectory = $${buildout:directory}
42 local-dir = $${rootdirectory:condor}
43 job-dir = $${rootdirectory:job}
44 java-bin = ${java:location}/bin
45 bin = $${wrapperdirectory:wrapper}/bin/
46 sbin = $${wrapperdirectory:wrapper}/sbin/
47 dash = ${dash:location}/bin/dash
48
49 environment = 
50   LD_LIBRARY_PATH=${libexpat:location}/lib:${kerberos:location}/lib:${openldap:location}/lib:${zlib:location}/lib
51   PATH=${perl:location}/bin:${java:location}/bin:${kerberos:location}/bin:${openldap:location}/bin:%(PATH)s
52   HOME=$${rootdirectory:condor}
53   HOSTNAME=$${slap-parameter:condor_host}
54
55 #Condor user parameter
56 condor_host = $${slap-parameter:condor_host}
57 collector_name = $${slap-parameter:condor_collector_name}
58 #Condor machine role: worker=submit,execute manager=manager,submit
59 machine-role = worker
60 disk-space = $${slap-parameter:condor_diskspace}
61 allowed-write = $${slap-parameter:condor_allowed-write}
62 admin-email = 
63
64 # Publish all instance parameters (url of instance)
65 [publish-connection-informations]
66 recipe = slapos.cookbook:publish
67 condor_ipv6_address = $${condor:ip}
68 condor_instance_type = worker
69 condor_host = $${condor:condor_host}
70
71 [slap-parameter]
72 # Default values if not specified
73 condor_host = [$${slap-network-information:global-ipv6}]
74 condor_collector_name = SLAPOS-CONDOR-POOL
75 condor_diskspace = 5
76 condor_allowed-write = $${:condor_host}