instance-validator.cfg.in 1.87 KB
Newer Older
1 2 3
###############################
# Instanciate nvu
###############################
4
[basedirectory]
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc
bin = $${buildout:directory}/bin
srv = $${buildout:directory}/srv
var = $${buildout:directory}/var
run = $${:var}/run
log = $${:var}/log
# scripts = $${:etc}/run
services = $${:etc}/service
promises = $${:etc}/promise
# tomcat directories
catalina_base = $${:var}/vnu
catalina_logs = $${:catalina_base}/logs
catalina_temp = $${:catalina_base}/temp
catalina_webapps = $${:catalina_base}/webapps
catalina_work = $${:catalina_base}/work
catalina_conf = $${:catalina_base}/conf

#################################
# Tomcat service
#################################
[tomcat-service]
recipe = slapos.recipe.template
url = ${template-tomcat-service:output}
29
output = $${basedirectory:services}/tomcat
30 31 32 33 34 35 36
mode = 0700
virtual-depends = 
  $${tomcat-configuration:ip}

[tomcat-configuration]
recipe = slapos.recipe.template
url = ${template-tomcat-configuration:output}
37
output = $${basedirectory:catalina_conf}/server.xml
38 39 40 41 42 43 44 45
mode = 0600
ip = $${slap-network-information:global-ipv6}
port = 8899

[tomcat-listen-promise]
recipe = slapos.cookbook:check_port_listening
hostname = $${tomcat-configuration:ip}
port = $${tomcat-configuration:port}
46
path = $${basedirectory:promises}/tomcat_listen
47 48 49 50 51 52

#################################
# Slapos publish
#################################
[publish-url]
recipe = slapos.cookbook:publish
53 54 55 56 57
<= monitor-publish
vnu-url = http://[$${tomcat-configuration:ip}]:$${tomcat-configuration:port}/

[monitor-instance-parameter]
monitor-httpd-port = 8333
58 59 60

# Add parts generated by template
[buildout]
61 62
extends =
  ${monitor-template:rendered}
63 64 65 66
parts =
  publish-url
  tomcat-service
  tomcat-listen-promise
67
  monitor-base
68 69 70 71

eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true