instance.cfg.in 6.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
pixman = {{ pixman_location }}
31 32
xdamage = {{ xdamage_location }}
xfixes = {{ xfixes_location }}
33 34 35 36
zlib = {{ zlib_location }}
libreoffice-bin = {{ libreoffice_bin_location }}
fonts = {{ fonts_location }}
buildout-bin-directory = {{ buildout_bin_directory }}
37 38
6tunnel = {{ sixtunnel_location }}
dash = {{ dash_location }}
39 40

[dynamic-template-cloudooo]
41
<= jinja2-template-base
42
template = {{ template_cloudooo }}
43 44 45
filename = instance-cloudoo.cfg
extra-context =
    section parameter_dict dynamic-template-cloudooo-parameters
46

47
[dynamic-template-postfix-parameters]
48 49 50
bin-directory = {{ bin_directory }}
cyrus-sasl-location = {{ cyrus_sasl_location }}
openssl = {{ openssl_location }}
51
postfix-location = {{ postfix_location }}
52
template-postfix-aliases = {{ template_postfix_aliases }}
53 54 55 56 57 58 59 60 61 62
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
63
    import urllib urllib
64

65
[dynamic-template-erp5-parameters]
66 67
local-bt5-repository = {{ local_bt5_repository }}

68
[dynamic-template-erp5]
69
<= jinja2-template-base
70 71
template = {{ template_erp5 }}
filename = instance-erp5.cfg
72
extra-context =
73
    key local_bt5_repository dynamic-template-erp5-parameters:local-bt5-repository
74
    import urlparse urlparse
75 76
import-list =
    rawfile root_common {{ root_common }}
77

78 79 80 81 82 83 84
[dynamic-template-balancer-parameters]
apache = {{ apache_location }}
openssl = {{ openssl_location }}
haproxy = {{ haproxy_location }}
bin-directory = {{ bin_directory }}
6tunnel = {{ sixtunnel_location }}
dash = {{ dash_location }}
85
template-haproxy-cfg = {{ template_haproxy_cfg }}
86
template-apache-conf = {{ template_apache_conf }}
87 88

[dynamic-template-balancer]
89
<= jinja2-template-base
90 91 92 93 94 95 96 97 98
template = {{ template_balancer }}
filename = instance-balancer.cfg
extra-context =
    section parameter_dict dynamic-template-balancer-parameters

[dynamic-template-zeo-parameters]
buildout-bin-directory = {{ buildout_bin_directory }}

[dynamic-template-zeo]
99
<= jinja2-template-base
100 101 102 103 104 105 106
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

107
[dynamic-template-zope-parameters]
108
bin-directory = {{ bin_directory }}
109 110 111
zope-conf-template = {{ template_zope_conf }}
buildout-bin-directory = {{ buildout_bin_directory }}
6tunnel = {{ sixtunnel_location }}
112
coreutils = {{ coreutils_location }}
113 114
dash = {{ dash_location }}
jsl = {{ jsl_location }}
115
link-binary = {{ dumps(zope_link_binary) }}
116
userhosts = {{ userhosts_location }}
117
runzope-userhosts-preloaded-template = {{ template_runzope_userhosts_preloaded }}
118

119
[dynamic-template-zope]
120
<= jinja2-template-base
121 122
template = {{ template_zope }}
filename = instance-zope.cfg
123 124
extra-context =
    key buildout_directory buildout:directory
125
    section parameter_dict dynamic-template-zope-parameters
126
    import urlparse urlparse
127 128 129 130 131 132 133 134 135

[dynamic-template-kumofs-parameters]
dash-location = {{ dash_location }}
dcron-location = {{ dcron_location }}
gzip-location = {{ gzip_location }}
kumo-location = {{ kumo_location }}
logrotate-location = {{ logrotate_location }}

[dynamic-template-kumofs]
136
<= jinja2-template-base
137 138 139 140 141 142 143
template = {{ template_kumofs }}
filename = instance-kumofs.cfg
extra-context =
    section parameter_dict dynamic-template-kumofs-parameters

[dynamic-template-mariadb-parameters]
coreutils-location = {{ coreutils_location }}
144
dash-location = {{ dash_location }}
145 146 147 148 149
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 }}
150
link-binary = {{ dumps(mariadb_link_binary) }}
151
bin-directory = {{ bin_directory }}
152
mariadb-resiliency-after-import-script = {{ mariadb_resiliency_after_import_script }}
153 154

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

161
[dynamic-template-create-erp5-site-parameters]
162
instance-erp5 = ${dynamic-template-erp5:rendered}
163 164 165 166 167
template-create-erp5-site-real = {{ template_create_erp5_site_real }}
dash-location = {{ dash_location }}
curl-location = {{ curl_location }}

[dynamic-template-create-erp5-site]
168
<= jinja2-template-base
169 170 171 172 173
template = {{ template_create_erp5_site }}
filename = instance-create-erp5-site.cfg
extra-context =
    section parameter_dict dynamic-template-create-erp5-site-parameters

174
[switch-softwaretype]
175
recipe = slapos.cookbook:switch-softwaretype
176
override = {{ dumps(override_switch_softwaretype |default) }}
177

178
# Public software types
179 180
default = dynamic-template-erp5:rendered
create-erp5-site = dynamic-template-create-erp5-site:rendered
Julien Muchembled's avatar
Julien Muchembled committed
181 182
# BBB
RootSoftwareInstance = ${:default}
183
# Internal software types
184 185 186 187
kumofs = dynamic-template-kumofs:rendered
cloudooo = dynamic-template-cloudooo:rendered
mariadb = dynamic-template-mariadb:rendered
balancer = dynamic-template-balancer:rendered
188
postfix = dynamic-template-postfix:rendered
189
zodb-zeo = dynamic-template-zeo:rendered
190
zodb-neo = neo-storage-mysql:rendered
191
zope = dynamic-template-zope:rendered