-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.cfg
70 lines (60 loc) · 2.13 KB
/
base.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[buildout]
extends =
https://raw.githubusercontent.com/syslabcom/metabase.buildout/master/base.cfg
picked-versions.cfg
metabase-instances =
metabase-global
metabase-eu
metabase-fr
parts +=
${:metabase-instances}
create-databases.sql
dump-metabase
init-metabase
[metabase-instance]
metabase-user = [email protected]
[metabase-global]
<= metabase-instance
metabase-port = 3001
database-name = metabase_global
database-name-statistics = statistics_global
[metabase-eu]
<= metabase-instance
metabase-port = 3002
database-name = metabase_eu
database-name-statistics = statistics_eu
[metabase-fr]
<= metabase-instance
metabase-port = 3003
database-name = metabase_fr
database-name-statistics = statistics_fr
[sqlformat]
recipe = zc.recipe.egg:scripts
eggs =
sqlparse
[dump-metabase]
<= metabase-instance
=> sqlformat
recipe = collective.recipe.template
input = ${buildout:directory}/templates/dump-metabase.tmpl
output = ${buildout:directory}/bin/${:_buildout_section_name_}
mode = 755
[create-databases.sql]
recipe = collective.recipe.template[genshi]:genshi
input = ${buildout:directory}/templates/create-databases.sql.tmpl
output = ${buildout:directory}/scripts/${:_buildout_section_name_}
[oira-scripts]
recipe = zc.recipe.egg
eggs =
oira.statistics.deployment
[init-metabase]
=> oira-scripts
recipe = collective.recipe.template[genshi]:genshi
input = ${buildout:directory}/templates/init-metabase.tmpl
output = ${buildout:directory}/bin/${:_buildout_section_name_}
mode = 755
[supervisor]
programs +=
200 metabase-global (environment=MB_JETTY_PORT=${metabase-global:metabase-port},MB_DB_DBNAME=${metabase-global:database-name}) java [-jar ${metabase-jar:location}/metabase.jar] ${metabase-jar:location} true
210 metabase-eu (environment=MB_JETTY_PORT=${metabase-eu:metabase-port},MB_DB_DBNAME=${metabase-eu:database-name}) java [-jar ${metabase-jar:location}/metabase.jar] ${metabase-jar:location} true
220 metabase-fr (environment=MB_JETTY_PORT=${metabase-fr:metabase-port},MB_DB_DBNAME=${metabase-fr:database-name}) java [-jar ${metabase-jar:location}/metabase.jar] ${metabase-jar:location} true