instance-edge.cfg.in 817 Bytes
Newer Older
1 2 3 4 5 6
# This instance will request other instances of lamp-generic depending on a
# list of countries.

[buildout]

parts =
7 8
  request-edge
  publish-connection-parameter
9 10 11 12 13

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

14 15 16 17 18 19 20 21 22 23 24
[request-edge]
<= slap-connection
recipe = slapos.cookbook:request.edge
# This magic parameter triggers several requests, one request per country.
name = lamp
return = url backend-url
country-list = $${slap-parameter:country-list}
software-url = $${slap-connection:software-release-url}
software-type = default
config = application-location
config-application-location = $${slap-parameter:application-location}
25
return = backend-url
26

27 28 29
[publish-connection-parameter]
recipe = slapos.cookbook:publishsection
section-list = request-edge