Merge branch 'erp5-component' into erp5
[slapos.git] / stack / erp5 / instance-erp5-cluster.cfg.in
1 {% if slap_software_type == software_type -%}
2 #############################
3 #
4 # Request erp5 production environnment
5 #
6 #############################
7 [buildout]
8
9 parts =
10   request-tidstorage
11   basedirectory
12
13 eggs-directory = {{ eggs_directory }}
14 develop-eggs-directory = {{ develop_eggs_directory }}
15 offline = true
16
17 [request-common]
18 recipe = slapos.cookbook:request
19 software-url = ${slap-connection:software-release-url}
20 sla = computer_guid
21 return = url
22 server-url = ${slap-connection:server-url}
23 key-file = ${slap-connection:key-file}
24 cert-file = ${slap-connection:cert-file}
25 computer-id = ${slap-connection:computer-id}
26 partition-id = ${slap-connection:partition-id}
27
28 [request-mariadb]
29 <=request-common
30 name = MariaDB DataBase
31 software-type = mariadb
32 sla-computer_guid = ${slap-parameter:mariadb-computer-guid}
33
34 [request-cloudooo]
35 <=request-common
36 name = Cloudooo
37 config = cloudooo-json
38 config-cloudooo-json = ${slap-parameter:cloudooo-json}
39 software-type = cloudooo
40 sla-computer_guid = ${slap-parameter:cloudooo-computer-guid}
41
42 [request-memcached]
43 <=request-common
44 name = Memcached
45 software-type = memcached
46 sla-computer_guid = ${slap-parameter:memcached-computer-guid}
47
48 [request-kumofs]
49 <=request-common
50 name = KumoFS
51 software-type = kumofs
52 sla-computer_guid = ${slap-parameter:kumofs-computer-guid}
53
54 [request-tidstorage]
55 <=request-common
56 name = TidStorage
57 return = url-login
58 config =
59   json
60   mysql-url
61   memcached-url
62   cloudooo-url
63   kumofs-url
64   smtp-url
65   bt5
66   bt5-repository-url
67 config-json = ${slap-parameter:json}
68 config-mysql-url = ${request-mariadb:connection-url}
69 config-memcached-url = ${request-memcached:connection-url}
70 config-cloudooo-url = ${request-cloudooo:connection-url}
71 config-kumofs-url = ${request-kumofs:connection-url}
72 config-bt5 = ${slap-parameter:bt5}
73 config-bt5-repository-url = ${slap-parameter:bt5-repository-url}
74 config-smtp-url = ${slap-parameter:smtp-url}
75 software-type = tidstorage
76 sla-computer_guid = ${slap-parameter:tidstorage-computer-guid}
77
78 [request-varnish]
79 <=request-common
80 name = Varnish
81 config = tidstorage-url
82 config-tidstorage-url = ${request-tidstorage:connection-url-login}
83 config-web-checker-mail-address = ${slap-parameter:web-checker-mail-address}
84 config-web-checker-smtp-host = ${slap-parameter:web-checker-smtp-host}
85 software-type = varnish
86 sla-computer_guid = ${slap-parameter:varnish-computer-guid}
87
88 [slap-parameter]
89 # Default value if no computer_guid is specified for each type
90 mariadb-computer-guid = ${slap-connection:computer-id}
91 cloudooo-computer-guid = ${slap-connection:computer-id}
92 memcached-computer-guid = ${slap-connection:computer-id}
93 kumofs-computer-guid = ${slap-connection:computer-id}
94 tidstorage-computer-guid = ${slap-connection:computer-id}
95 varnish-computer-guid = ${slap-connection:computer-id}
96 cloudooo-json =
97 bt5 = erp5_full_text_myisam_catalog
98   erp5_configurator_standard
99   erp5_configurator_maxma_demo
100   erp5_configurator_ung
101   erp5_configurator_run_my_doc
102 bt5-repository-url = {{ local_bt5_repository }}
103 smtp-url = smtp://localhost:25/
104
105 [basedirectory]
106 recipe = slapos.cookbook:mkdirectory
107 etc = ${buildout:directory}/etc/run
108 {% endif %}