instance-condor.cfg 2.66 KB
Newer Older
1 2 3
[buildout]
parts =
  condor
4 5
  app-submit
  publish-connection-informations
6 7 8

eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
9 10 11
#Enable download
newest = false
offline = false
12 13 14 15 16 17 18

# Create all needed directories
[rootdirectory]
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc/
var = $${buildout:directory}/var/
condor = $${buildout:directory}/condor/
19
job = $${buildout:directory}/jobs/
20 21 22 23 24 25 26
bin = $${buildout:directory}/bin/
sbin = $${buildout:directory}/sbin/
srv = $${buildout:directory}/srv/

[basedirectory]
recipe = slapos.cookbook:mkdirectory
log = $${rootdirectory:var}/log/
27
scripts = $${rootdirectory:etc}/run/
28 29 30 31 32 33 34 35 36 37
run = $${rootdirectory:var}/run/
backup = $${rootdirectory:srv}/backup/
promises = $${rootdirectory:etc}/promise/

[wrapperdirectory]
recipe = slapos.cookbook:mkdirectory
wrapper = $${basedirectory:run}/condor

[condor]
recipe = slapos.cookbook:condor
38
wrapper-dir = $${basedirectory:scripts}
39 40 41 42
ip = $${slap-network-information:global-ipv6}
package = ${condor:location}
rootdirectory = $${buildout:directory}
local-dir = $${rootdirectory:condor}
43
job-dir = $${rootdirectory:job}
44 45 46 47 48
java-bin = ${java:location}/bin
bin = $${wrapperdirectory:wrapper}/bin/
sbin = $${wrapperdirectory:wrapper}/sbin/
dash = ${dash:location}/bin/dash

49 50 51 52
environment = 
  LD_LIBRARY_PATH=${libexpat:location}/lib:${kerberos:location}/lib:${openldap:location}/lib:${zlib:location}/lib
  PATH=${perl:location}/bin:${java:location}/bin:${kerberos:location}/bin:${openldap:location}/bin:%(PATH)s
  HOME=$${rootdirectory:condor}
53
  HOSTNAME=$${slap-parameter:condor-host}
54

55
#Condor user parameter
56 57
condor_host = $${slap-parameter:condor-host}
collector_name = $${slap-parameter:condor-collector-name}
58
#Condor machine role: worker=submit,execute manager=manager,submit
59 60 61 62
machine-role = $${slap-parameter:condor-role}
disk-space = $${slap-parameter:condor-diskspace}
allowed-write = $${slap-parameter:condor-allowed-write}
admin-email = $${slap-parameter:condor-admin-email}
63

64 65 66
[app-submit]
<= condor
recipe = slapos.cookbook:condor.submit
67
condor-app-list = $${slap-parameter:condor-app-list}
68 69 70 71

# Publish all instance parameters (url of instance)
[publish-connection-informations]
recipe = slapos.cookbook:publish
72 73
condor_ipv6_address = $${condor:ip}
condor_instance_type = $${condor:machine-role}
74 75
condor_host = $${condor:condor_host}

76 77
[slap-parameter]
# Default values if not specified
78 79 80 81 82 83 84 85
condor-host = [$${slap-network-information:global-ipv6}]
condor-collector-name = SLAPOS-CONDOR-POOL
condor-role = manager
condor-diskspace = 5
condor-admin-email = 
condor-allowed-write = $${:condor-host}
#submit application, using Json application list
condor-app-list = ${condor-application:list}