version up eggs.
[slapos.git] / stack / lamp / 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 mariadb1-computer-guid pbs-mariadb1-computer-guid mariadb2-computer-guid pbs-mariadb2-computer-guid mariadb3-computer-guid pbs-mariadb3-computer-guid
23 config-mariadb1-computer-guid = ${slap-parameter:mariadb1-computer-guid}
24 config-pbs-mariadb1-computer-guid = ${slap-parameter:pbs-mariadb1-computer-guid}
25 config-mariadb2-computer-guid = ${slap-parameter:mariadb2-computer-guid}
26 config-pbs-mariadb2-computer-guid = ${slap-parameter:pbs-mariadb2-computer-guid}
27 config-mariadb3-computer-guid = ${slap-parameter:mariadb3-computer-guid}
28 config-pbs-mariadb3-computer-guid = ${slap-parameter:pbs-mariadb3-computer-guid}
29 config-domain = ${slap-parameter:domain}
30
31 [publish-connection-informations]
32 recipe = slapos.cookbook:publish
33 backend_url = ${request-apache:connection-backend_url}
34 url = ${request-apache:connection-url}
35
36 [slap-parameter]
37 # Default parameters for distributed deployment
38 # I.e state "backup1 of maria should go there, ..."
39 # XXX-Cedric: Hardcoded number of backups. Should be dynamically generated.
40 mariadb1-computer-guid =
41 pbs-mariadb1-computer-guid =
42 mariadb2-computer-guid =
43 pbs-mariadb2-computer-guid =
44 mariadb3-computer-guid =
45 pbs-mariadb3-computer-guid =
46 # XXX-Cedric: Hardcoded parameters. Should be dynamically generated.
47 domain =