instance.cfg.in 7.09 KB
Newer Older
1
[buildout]
2
extends = {{ instance_common_cfg }}
3 4

[jinja2-template-base]
5
context +=
6
    raw slapos_core_version {{ slapos_core_version }}
7 8

[dynamic-template-cloudooo-parameters]
9
cairo = {{ cairo_location }}
10 11 12
cups = {{ cups_location }}
dbus = {{ dbus_location }}
dbus-glib = {{ dbus_glib_location }}
13 14 15
file = {{ file_location }}
fontconfig = {{ fontconfig_location }}
freetype = {{ freetype_location }}
16
glib = {{ glib_location }}
17
glu = {{ glu_location }}
18 19 20 21 22 23 24
libICE = {{ libICE_location }}
libSM = {{ libSM_location }}
libX11 = {{ libX11_location }}
libXau = {{ libXau_location }}
libXdmcp = {{ libXdmcp_location }}
libXext = {{ libXext_location }}
libXrender = {{ libXrender_location }}
25 26 27 28 29
libexpat = {{ libexpat_location }}
libffi = {{ libffi_location }}
libpng12 = {{ libpng12_location }}
libxcb = {{ libxcb_location }}
mesa = {{ mesa_location }}
30
onlyoffice-x2t = {{ dumps(onlyoffice_x2t_location) }}
31
pixman = {{ pixman_location }}
32
wkhtmltopdf = {{ dumps(wkhtmltopdf_location) }}
33 34
xdamage = {{ xdamage_location }}
xfixes = {{ xfixes_location }}
35
xserver = {{ dumps(xserver_location) }}
36 37 38 39
zlib = {{ zlib_location }}
libreoffice-bin = {{ libreoffice_bin_location }}
fonts = {{ fonts_location }}
buildout-bin-directory = {{ buildout_bin_directory }}
40 41
6tunnel = {{ sixtunnel_location }}
dash = {{ dash_location }}
42
template-monitor = {{ dumps(template_monitor) }}
43 44

[dynamic-template-cloudooo]
45
<= jinja2-template-base
46
template = {{ template_cloudooo }}
47 48 49
filename = instance-cloudoo.cfg
extra-context =
    section parameter_dict dynamic-template-cloudooo-parameters
50

51
[dynamic-template-postfix-parameters]
52 53 54
bin-directory = {{ bin_directory }}
cyrus-sasl-location = {{ cyrus_sasl_location }}
openssl = {{ openssl_location }}
55
postfix-location = {{ postfix_location }}
56
template-postfix-aliases = {{ template_postfix_aliases }}
57 58 59 60 61 62 63 64 65 66
template-postfix-main-cf = {{ template_postfix_main_cf }}
template-postfix-master-cf = {{ template_postfix_master_cf }}

[dynamic-template-postfix]
< = jinja2-template-base
template = {{ template_postfix }}
filename = instance-postfix.cfg
extensions = jinja2.ext.do
extra-context =
    section parameter_dict dynamic-template-postfix-parameters
67
    import urllib urllib
68

69
[dynamic-template-erp5-parameters]
70
jupyter-enable-default = {{ jupyter_enable_default }}
71 72
local-bt5-repository = {{ local_bt5_repository }}

73
[dynamic-template-erp5]
74
<= jinja2-template-base
75 76
template = {{ template_erp5 }}
filename = instance-erp5.cfg
77
extra-context =
78
    key jupyter_enable_default dynamic-template-erp5-parameters:jupyter-enable-default
79
    key local_bt5_repository dynamic-template-erp5-parameters:local-bt5-repository
80
    key openssl_location :openssl-location
81
    import urlparse urlparse
82 83
import-list =
    rawfile root_common {{ root_common }}
84

85 86
openssl-location = {{ openssl_location }}

87 88 89 90 91 92 93
[dynamic-template-balancer-parameters]
apache = {{ apache_location }}
openssl = {{ openssl_location }}
haproxy = {{ haproxy_location }}
bin-directory = {{ bin_directory }}
6tunnel = {{ sixtunnel_location }}
dash = {{ dash_location }}
94
template-haproxy-cfg = {{ template_haproxy_cfg }}
95
template-apache-conf = {{ template_apache_conf }}
96
template-monitor = {{ dumps(template_monitor) }}
97 98

[dynamic-template-balancer]
99
<= jinja2-template-base
100 101 102 103
template = {{ template_balancer }}
filename = instance-balancer.cfg
extra-context =
    section parameter_dict dynamic-template-balancer-parameters
104
    import itertools itertools
105 106 107

[dynamic-template-zeo-parameters]
buildout-bin-directory = {{ buildout_bin_directory }}
108
template-monitor = {{ dumps(template_monitor) }}
109 110

[dynamic-template-zeo]
111
<= jinja2-template-base
112 113 114 115 116 117
template = {{ template_zeo }}
filename = instance-zeo.cfg
extra-context =
    key buildout_directory buildout:directory
    section parameter_dict dynamic-template-zeo-parameters
    import json_module json
118
    import itertools itertools
119

120
[dynamic-template-zope-parameters]
121
bin-directory = {{ bin_directory }}
122 123 124
zope-conf-template = {{ template_zope_conf }}
buildout-bin-directory = {{ buildout_bin_directory }}
6tunnel = {{ sixtunnel_location }}
125
coreutils = {{ coreutils_location }}
126 127
dash = {{ dash_location }}
jsl = {{ jsl_location }}
128
link-binary = {{ dumps(zope_link_binary) }}
129
userhosts = {{ userhosts_location }}
130
site-zcml = {{ site_zcml }}
131
template-monitor = {{ dumps(template_monitor) }}
132
extra-path-list = {{ dumps(extra_path_list) }}
133
matplotlibrc = {{ matplotlibrc_location }}
134

135
[dynamic-template-zope]
136
<= jinja2-template-base
137 138
template = {{ template_zope }}
filename = instance-zope.cfg
139 140
extra-context =
    key buildout_directory buildout:directory
141
    section parameter_dict dynamic-template-zope-parameters
142
    import urlparse urlparse
143
    import hashlib hashlib
144
    import itertools itertools
145 146 147 148 149 150 151

[dynamic-template-kumofs-parameters]
dash-location = {{ dash_location }}
dcron-location = {{ dcron_location }}
gzip-location = {{ gzip_location }}
kumo-location = {{ kumo_location }}
logrotate-location = {{ logrotate_location }}
152
template-monitor = {{ dumps(template_monitor) }}
153 154

[dynamic-template-kumofs]
155
<= jinja2-template-base
156 157 158 159 160 161 162
template = {{ template_kumofs }}
filename = instance-kumofs.cfg
extra-context =
    section parameter_dict dynamic-template-kumofs-parameters

[dynamic-template-mariadb-parameters]
coreutils-location = {{ coreutils_location }}
163
dash-location = {{ dash_location }}
164 165 166 167 168
findutils-location = {{ findutils_location }}
gzip-location = {{ gzip_location }}
mariadb-location = {{ mariadb_location }}
template-my-cnf = {{ template_my_cnf }}
template-mariadb-initial-setup = {{ template_mariadb_initial_setup }}
169
link-binary = {{ dumps(mariadb_link_binary) }}
170
bin-directory = {{ bin_directory }}
171
mariadb-resiliency-after-import-script = {{ mariadb_resiliency_after_import_script }}
172
template-monitor = {{ template_monitor }}
173 174

[dynamic-template-mariadb]
175
<= jinja2-template-base
176 177 178 179
template = {{ template_mariadb }}
filename = instance-mariadb.cfg
extra-context =
    section parameter_dict dynamic-template-mariadb-parameters
180

181
[dynamic-template-create-erp5-site-parameters]
182
instance-erp5 = ${dynamic-template-erp5:rendered}
183 184 185 186 187
template-create-erp5-site-real = {{ template_create_erp5_site_real }}
dash-location = {{ dash_location }}
curl-location = {{ curl_location }}

[dynamic-template-create-erp5-site]
188
<= jinja2-template-base
189 190 191 192 193
template = {{ template_create_erp5_site }}
filename = instance-create-erp5-site.cfg
extra-context =
    section parameter_dict dynamic-template-create-erp5-site-parameters

194 195 196 197 198
# we need this value to be present in a section,
# for slapos.cookbook:switch-softwaretype to work
[dynamic-template-jupyter]
rendered = {{ template_jupyter_cfg }}

199
[switch-softwaretype]
200
recipe = slapos.cookbook:switch-softwaretype
201
override = {{ dumps(override_switch_softwaretype |default) }}
202

203
# Public software types
204 205
default = dynamic-template-erp5:rendered
create-erp5-site = dynamic-template-create-erp5-site:rendered
Julien Muchembled's avatar
Julien Muchembled committed
206 207
# BBB
RootSoftwareInstance = ${:default}
208
# Internal software types
209 210 211 212
kumofs = dynamic-template-kumofs:rendered
cloudooo = dynamic-template-cloudooo:rendered
mariadb = dynamic-template-mariadb:rendered
balancer = dynamic-template-balancer:rendered
213
postfix = dynamic-template-postfix:rendered
214
zodb-zeo = dynamic-template-zeo:rendered
215
zodb-neo = neo-storage-mysql:rendered
216
zope = dynamic-template-zope:rendered
217
jupyter = dynamic-template-jupyter:rendered