instance.cfg 3.62 KB
Newer Older
1 2 3 4 5 6 7 8 9
[buildout]
parts =
  switch_softwaretype

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

[switch_softwaretype]
recipe = slapos.cookbook:softwaretype
10
default = $${instance-base-monitor:rendered}
11 12
edgetest = $${instance-base-edgetest:rendered}
edgebot = $${instance-base-edgebot:rendered}
13

14
[instance-base-monitor]
15
recipe = slapos.recipe.template:jinja2
16
template = ${template-monitor:target}
17
rendered = $${buildout:directory}/template-base-monitor.cfg
18
extensions = jinja2.ext.do
Alain Takoudjou's avatar
Alain Takoudjou committed
19
context = key develop_eggs_directory buildout:develop-eggs-directory
20 21
          key eggs_directory buildout:eggs-directory
          key slapparameter_dict slap-configuration:configuration
22
          section slap_configuration slap-configuration
Alain Takoudjou's avatar
Alain Takoudjou committed
23
          raw buildout_bin ${buildout:bin-directory}
24
          raw monitor_template_output ${monitor-template:output}
Alain Takoudjou's avatar
Alain Takoudjou committed
25
          raw network_benck_cfg_output ${network-bench-cfg:output}
26
          raw monitor_collect_csv_dump ${monitor-collect-csv-dump:output}
27 28
mode = 0644

29
[instance-base-edgetest]
30
recipe = slapos.recipe.template:jinja2
31 32
template = ${template-monitor-edgetest:target}
rendered = $${buildout:directory}/template-monitor-base-edgetest.cfg
33
extensions = jinja2.ext.do
34
context = import json_module json
35 36 37
          key develop_eggs_directory buildout:develop-eggs-directory
          key eggs_directory buildout:eggs-directory
          key slapparameter_dict slap-configuration:configuration
38 39 40
          key slap_software_type slap-configuration:slap-software-type
          section slap_configuration slap-configuration
          raw software_type edgetest
41
          key instance_base_monitor instance-base-monitor:rendered
42
          key slave_instance_list slap-configuration:slave-instance-list 
Alain Takoudjou's avatar
Alain Takoudjou committed
43
          raw buildout_bin ${buildout:bin-directory}
44
          raw template_json_edgetest_test ${json-test-template:target}
45 46
mode = 0644

47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
[instance-base-edgebot]
recipe = slapos.recipe.template:jinja2
template = ${template-monitor-edgebot:target}
rendered = $${buildout:directory}/template-monitor-edgebot.cfg
extensions = jinja2.ext.do
surykatka-binary = ${surykatka:executable}
template-surykatka-ini = ${template-surykatka-ini:target}

context = import json_module json
          key develop_eggs_directory buildout:develop-eggs-directory
          key eggs_directory buildout:eggs-directory
          section slap_configuration slap-configuration
          key slapparameter_dict slap-configuration:configuration
          key slap_software_type slap-configuration:slap-software-type
          raw software_type edgebot
          key surykatka_binary :surykatka-binary
          key template_surykatka_ini :template-surykatka-ini
          raw buildout_bin ${buildout:bin-directory}
          raw monitor_template_output ${monitor-template:output}
          raw monitor_collect_csv_dump ${monitor-collect-csv-dump:output}
mode = 0644


70
[slap-configuration]
71
recipe = slapos.cookbook:slapconfiguration.serialised
72 73 74 75
computer = $${slap-connection:computer-id}
partition = $${slap-connection:partition-id}
url = $${slap-connection:server-url}
key = $${slap-connection:key-file}
76
cert = $${slap-connection:cert-file}
77 78 79 80
# Defaults
configuration.check-status-code = 200
configuration.nameserver =
configuration.check-frontend-ip =
81
configuration.check-certificate-expiration-days = 15
82
configuration.check-maximum-elapsed-time = 2
83
configuration.failure-amount = 2
84 85 86 87 88
# use monitor-base-port to have monitor listening on each instance
# on different port and also on different port than other services
# it makes it possible to instantiate it correctly on signle IP, for
# example in case of webrunner
configuration.monitor-base-port = 9700