instance-erp5-cluster.cfg.in 3.15 KB
Newer Older
1
{% if slap_software_type == software_type -%}
2 3 4 5 6 7 8 9 10 11 12 13 14 15
#############################
#
# Request erp5 production environnment
#
#############################
[buildout]

parts =
  request-tidstorage
  basedirectory

eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
16
versions = versions
17

18
[request-common]
19
recipe = slapos.cookbook:request
20 21 22 23 24 25 26 27 28 29 30 31 32
software-url = ${slap-connection:software-release-url}
sla = computer_guid
return = url
server-url = ${slap-connection:server-url}
key-file = ${slap-connection:key-file}
cert-file = ${slap-connection:cert-file}
computer-id = ${slap-connection:computer-id}
partition-id = ${slap-connection:partition-id}

[request-mariadb]
<=request-common
name = MariaDB DataBase
software-type = mariadb
33
sla-computer_guid = ${slap-parameter:mariadb-computer-guid}
34 35 36 37

[request-cloudooo]
<=request-common
name = Cloudooo
38 39
config = cloudooo-json
config-cloudooo-json = ${slap-parameter:cloudooo-json}
40
software-type = cloudooo
41
sla-computer_guid = ${slap-parameter:cloudooo-computer-guid}
42 43 44 45 46

[request-memcached]
<=request-common
name = Memcached
software-type = memcached
47
sla-computer_guid = ${slap-parameter:memcached-computer-guid}
48 49 50 51 52

[request-kumofs]
<=request-common
name = KumoFS
software-type = kumofs
53
sla-computer_guid = ${slap-parameter:kumofs-computer-guid}
54

55
[request-tidstorage]
56
<=request-common
57 58 59 60
name = TidStorage
return = url-login
config =
  json
61 62 63 64 65 66 67
  mysql-url
  memcached-url
  cloudooo-url
  kumofs-url
  smtp-url
  bt5
  bt5-repository-url
68
config-json = ${slap-parameter:json}
69 70 71 72
config-mysql-url = ${request-mariadb:connection-url}
config-memcached-url = ${request-memcached:connection-url}
config-cloudooo-url = ${request-cloudooo:connection-url}
config-kumofs-url = ${request-kumofs:connection-url}
73 74 75 76 77
config-bt5 = ${slap-parameter:bt5}
config-bt5-repository-url = ${slap-parameter:bt5-repository-url}
config-smtp-url = ${slap-parameter:smtp-url}
software-type = tidstorage
sla-computer_guid = ${slap-parameter:tidstorage-computer-guid}
78

79 80 81 82 83 84 85 86 87
[request-varnish]
<=request-common
name = Varnish
config = tidstorage-url
config-tidstorage-url = ${request-tidstorage:connection-url-login}
config-web-checker-mail-address = ${slap-parameter:web-checker-mail-address}
config-web-checker-smtp-host = ${slap-parameter:web-checker-smtp-host}
software-type = varnish
sla-computer_guid = ${slap-parameter:varnish-computer-guid}
88

89 90 91 92 93 94 95 96 97 98 99 100 101 102
[slap-parameter]
# Default value if no computer_guid is specified for each type
mariadb-computer-guid = ${slap-connection:computer-id}
cloudooo-computer-guid = ${slap-connection:computer-id}
memcached-computer-guid = ${slap-connection:computer-id}
kumofs-computer-guid = ${slap-connection:computer-id}
tidstorage-computer-guid = ${slap-connection:computer-id}
varnish-computer-guid = ${slap-connection:computer-id}
cloudooo-json =
bt5 = erp5_full_text_myisam_catalog
  erp5_configurator_standard
  erp5_configurator_maxma_demo
  erp5_configurator_ung
  erp5_configurator_run_my_doc
103
  erp5_configurator_ebusiness_lotse
104 105
bt5-repository-url = {{ local_bt5_repository }}
smtp-url = smtp://localhost:25/
106

107 108 109
[basedirectory]
recipe = slapos.cookbook:mkdirectory
etc = ${buildout:directory}/etc/run
110
{% endif %}
111 112 113

[versions]
slapos.core = {{ slapos_core_version }}