instance.cfg 2.19 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 11
default = $${instance-base-monitor:rendered}
distributor = $${instance-base-distributor:rendered}
12

13
[instance-base-monitor]
14
recipe = slapos.recipe.template:jinja2
15
template = ${template-monitor:destination}
16
rendered = $${buildout:directory}/template-base-monitor.cfg
17 18 19 20 21
extensions = jinja2.ext.do
context = key buildout buildout:bin-directory
          key develop_eggs_directory buildout:develop-eggs-directory
          key eggs_directory buildout:eggs-directory
          key slapparameter_dict slap-configuration:configuration
22 23
          raw monitor_template_output ${monitor-template:output}
          raw network_benck_cfg_output ${network-bench-cfg:output} 
24 25 26
          raw fluentd_location ${fluentd:location}
          raw fluent_conf_output ${fluentd-agent-conf:output}
          raw monitor_collect_csv_dump ${monitor-collect-csv-dump:output}
27 28 29 30 31
mode = 0644

[instance-base-distributor]
recipe = slapos.recipe.template:jinja2
template = ${template-monitor-distributor:destination}
32
rendered = $${buildout:directory}/template-monitor-base-distributor.cfg
33
extensions = jinja2.ext.do
34 35
context = import json_module json
          key buildout buildout:bin-directory
36 37 38 39
          key develop_eggs_directory buildout:develop-eggs-directory
          key eggs_directory buildout:eggs-directory
          key slapparameter_dict slap-configuration:configuration
          key instance_base_monitor instance-base-monitor:rendered
40
          key slave_instance_list slap-configuration:slave-instance-list 
41
          raw template_json_distributor_test ${json-test-template:destination}
42
          raw fluentd_location ${fluentd:location}
43
          raw fluent_distributor_conf_output ${fluentd-agent-distributor-conf:output}
44
          raw wget_bin ${wget:location}/bin/wget
45 46 47
mode = 0644

[slap-configuration]
48
recipe = slapos.cookbook:slapconfiguration.serialised
49 50 51 52
computer = $${slap-connection:computer-id}
partition = $${slap-connection:partition-id}
url = $${slap-connection:server-url}
key = $${slap-connection:key-file}
53
cert = $${slap-connection:cert-file}
54