instance-erp5-production.cfg 3.66 KB
Newer Older
1 2 3 4 5 6 7 8 9
#############################
#
# Request erp5 production environnment
#
#############################
[buildout]

parts =
  request-mariadb
Romain Courteaud's avatar
Romain Courteaud committed
10
  request-sphinx
11 12 13
  request-cloudooo
  request-memcached
  request-kumofs
Romain Courteaud's avatar
WIP  
Romain Courteaud committed
14
  request-tidstorage
15
  basedirectory
16 17 18 19 20 21 22

eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true

[request-common]
recipe = slapos.cookbook:request
23
software-url = $${slap-connection:software-release-url}
24
sla = computer_guid
25
return = url
26 27 28 29 30
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}
31

Romain Courteaud's avatar
Romain Courteaud committed
32 33 34 35
[request-sphinx]
<=request-common
name = Sphinx Search Engine
software-type = sphinx
36
sla-computer_guid = $${slap-parameter:sphinx-computer-guid}
37
return = url-sphinx url-sphinx-sql
Romain Courteaud's avatar
Romain Courteaud committed
38

39 40 41 42
[request-mariadb]
<=request-common
name = MariaDB DataBase
software-type = mariadb
43
sla-computer_guid = $${slap-parameter:mariadb-computer-guid}
44 45 46 47

[request-cloudooo]
<=request-common
name = Cloudooo
48 49
config = cloudooo-json
config-cloudooo-json = $${slap-parameter:cloudooo-json}
50
software-type = cloudooo
51
sla-computer_guid = $${slap-parameter:cloudooo-computer-guid}
52 53 54 55 56

[request-memcached]
<=request-common
name = Memcached
software-type = memcached
57
sla-computer_guid = $${slap-parameter:memcached-computer-guid}
58 59 60 61 62

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

Romain Courteaud's avatar
WIP  
Romain Courteaud committed
65 66 67
[request-tidstorage]
<=request-common
name = TidStorage
68
return = url-login
69
config = json mysql-url memcached-url cloudooo-url kumofs-url sphinx-url-sphinx sphinx-url-sphinx-sql smtp-url bt5 bt5-repository-url
70
config-json = $${slap-parameter:json}
71 72 73 74
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}
75 76
config-sphinx-url-sphinx = $${request-sphinx:connection-url-sphinx}
config-sphinx-url-sphinx-sql = $${request-sphinx:connection-url-sphinx-sql}
77 78 79
config-bt5 = $${slap-parameter:bt5}
config-bt5-repository-url = $${slap-parameter:bt5-repository-url}
config-smtp-url = $${slap-parameter:smtp-url}
Romain Courteaud's avatar
WIP  
Romain Courteaud committed
80
software-type = tidstorage
81 82
sla-computer_guid = $${slap-parameter:tidstorage-computer-guid}

Tatuya Kamada's avatar
Tatuya Kamada committed
83 84 85 86 87
[request-varnish]
<=request-common
name = Varnish
config = tidstorage-url
config-tidstorage-url = $${request-tidstorage:connection-url-login}
88 89
config-web-checker-mail-address = $${slap-parameter:web-checker-mail-address}
config-web-checker-smtp-host = $${slap-parameter:web-checker-smtp-host}
Tatuya Kamada's avatar
Tatuya Kamada committed
90 91 92
software-type = varnish
sla-computer_guid = $${slap-parameter:varnish-computer-guid}

93 94 95 96 97 98 99 100
[slap-parameter]
# Default value if no computer_guid is specified for each type
sphinx-computer-guid = $${slap-connection:computer-id}
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}
Tatuya Kamada's avatar
Tatuya Kamada committed
101
varnish-computer-guid = $${slap-connection:computer-id}
102
cloudooo-json =
103 104 105 106 107 108 109
bt5 = erp5_full_text_myisam_catalog
  erp5_configurator_standard
  erp5_configurator_maxma_demo
  erp5_configurator_ung
  erp5_configurator_run_my_doc
bt5-repository-url = ${local-bt5-repository:list}
smtp-url = smtp://localhost:25/
Romain Courteaud's avatar
WIP  
Romain Courteaud committed
110

111 112 113
# rest of parts are candidates for some generic stuff
[basedirectory]
recipe = slapos.cookbook:mkdirectory
Romain Courteaud's avatar
Romain Courteaud committed
114
services = $${rootdirectory:etc}/run
115 116 117

[rootdirectory]
recipe = slapos.cookbook:mkdirectory
Romain Courteaud's avatar
Romain Courteaud committed
118
etc = $${buildout:directory}/etc