version up eggs.
[slapos.git] / stack / lapp / instance-resilient.cfg.jinja2
1 # vim: set ft=cfg:
2
3 {% import 'parts' as parts %}
4 {% import 'replicated' as replicated %}
5
6 [buildout]
7 eggs-directory = {{ eggs_directory }}
8 develop-eggs-directory = {{ develop_eggs_directory }}
9 offline = true
10
11 # += because we need to take up parts (like instance-custom, slapmonitor etc) from the profile we extended
12 parts +=
13   {{ parts.replicate("apache", "3") }}
14   publish-connection-informations
15
16 {{ replicated.replicate("apache", "3", "apache-export", "apache-import") }}
17
18 # Bubble up the parameters
19 [request-apache]
20 return = url ssh-public-key ssh-url notification-id ip url backend_url
21 # XXX: hardcoded values
22 config = domain number authorized-key notify ip-list namebase postgres1-computer-guid pbs-postgres1-computer-guid postgres2-computer-guid pbs-postgres2-computer-guid postgres3-computer-guid pbs-postgres3-computer-guid maarch-sql-data-file
23 config-postgres1-computer-guid = ${slap-parameter:postgres1-computer-guid}
24 config-pbs-postgres1-computer-guid = ${slap-parameter:pbs-postgres1-computer-guid}
25 config-postgres2-computer-guid = ${slap-parameter:postgres2-computer-guid}
26 config-pbs-postgres2-computer-guid = ${slap-parameter:pbs-postgres2-computer-guid}
27 config-postgres3-computer-guid = ${slap-parameter:postgres3-computer-guid}
28 config-pbs-postgres3-computer-guid = ${slap-parameter:pbs-postgres3-computer-guid}
29 config-domain = ${slap-parameter:domain}
30 config-maarch-sql-data-file = ${slap-parameter:maarch-sql-data-file}
31
32 [publish-connection-informations]
33 recipe = slapos.cookbook:publish
34 backend_url = ${request-apache:connection-backend_url}
35 url = ${request-apache:connection-url}
36
37 [slap-parameter]
38 # Default parameters for distributed deployment
39 # I.e state "backup1 of postgres should go there, ..."
40 # XXX-Cedric: Hardcoded number of backups. Should be dynamically generated.
41 postgres1-computer-guid =
42 pbs-postgres1-computer-guid =
43 postgres2-computer-guid =
44 pbs-postgres2-computer-guid =
45 postgres3-computer-guid =
46 pbs-postgres3-computer-guid =
47 # XXX-Cedric: Hardcoded parameters. Should be dynamically generated.
48 domain =
49 # the following parameters are specific to maarch
50 maarch-sql-data-file =