Merge branch 'master' into erp5-component
[slapos.git] / software / condor / instance-condor.cfg
1 [buildout]
2 parts =
3   condor
4   app-submit
5   publish-connection-informations
6
7 eggs-directory = ${buildout:eggs-directory}
8 develop-eggs-directory = ${buildout:develop-eggs-directory}
9 #Enable download
10 newest = false
11 offline = false
12
13 # Create all needed directories
14 [rootdirectory]
15 recipe = slapos.cookbook:mkdirectory
16 etc = $${buildout:directory}/etc/
17 var = $${buildout:directory}/var/
18 condor = $${buildout:directory}/condor/
19 job = $${buildout:directory}/jobs/
20 bin = $${buildout:directory}/bin/
21 sbin = $${buildout:directory}/sbin/
22 srv = $${buildout:directory}/srv/
23
24 [basedirectory]
25 recipe = slapos.cookbook:mkdirectory
26 log = $${rootdirectory:var}/log/
27 scripts = $${rootdirectory:etc}/run/
28 run = $${rootdirectory:var}/run/
29 backup = $${rootdirectory:srv}/backup/
30 promises = $${rootdirectory:etc}/promise/
31
32 [wrapperdirectory]
33 recipe = slapos.cookbook:mkdirectory
34 wrapper = $${basedirectory:run}/condor
35
36 [condor]
37 recipe = slapos.cookbook:condor
38 wrapper-dir = $${basedirectory:scripts}
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 = $${slap-parameter:condor-role}
60 disk-space = $${slap-parameter:condor-diskspace}
61 allowed-write = $${slap-parameter:condor-allowed-write}
62 admin-email = $${slap-parameter:condor-admin-email}
63
64 [app-submit]
65 <= condor
66 recipe = slapos.cookbook:condor.submit
67 condor-app-list = $${slap-parameter:condor-app-list}
68
69 # Publish all instance parameters (url of instance)
70 [publish-connection-informations]
71 recipe = slapos.cookbook:publish
72 condor_ipv6_address = $${condor:ip}
73 condor_instance_type = $${condor:machine-role}
74 condor_host = $${condor:condor_host}
75
76 [slap-parameter]
77 # Default values if not specified
78 condor-host = [$${slap-network-information:global-ipv6}]
79 condor-collector-name = SLAPOS-CONDOR-POOL
80 condor-role = manager
81 condor-diskspace = 5
82 condor-admin-email = 
83 condor-allowed-write = $${:condor-host}
84 #submit application, using Json application list
85 condor-app-list = ${condor-application:list}