instance.cfg 3.85 KB
Newer Older
Łukasz Nowak's avatar
Łukasz Nowak committed
1 2
[buildout]
parts =
3
  switch_softwaretype
Łukasz Nowak's avatar
Łukasz Nowak committed
4 5 6 7

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

8 9
extends =
  ${template-resilient-templates:output}
10

11 12
[switch_softwaretype]
recipe = slapos.cookbook:softwaretype
13
default = $${instance-base-runner:rendered}
14
resilient = $${instance-resilient:rendered}
15
runner = $${instance-base-runner:rendered}
16
runner-import = $${template-runner-import:rendered}
17
runner-export = $${template-runner-export:rendered}
18 19 20

frozen = ${instance-frozen:output}
pull-backup = ${template-pull-backup:output}
21

22
[instance-base-runner]
23 24 25 26 27 28 29 30 31 32 33 34 35
recipe = slapos.recipe.template:jinja2
template = ${template-runner:output}
rendered = $${buildout:directory}/template-runner.cfg
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
          raw curl_executable_location ${curl:location}/bin/curl
          raw dash_executable_location ${dash:location}/bin/dash
          raw dcron_executable_location ${dcron:location}/sbin/crond
mode = 0644

36 37
[instance-resilient]
recipe = slapos.recipe.template:jinja2
38
template = ${template-resilient:target}
39 40 41 42 43
rendered = $${buildout:directory}/instance-resilient.cfg
extensions = jinja2.ext.do
context = key buildout buildout:bin-directory
          key develop_eggs_directory buildout:develop-eggs-directory
          key eggs_directory buildout:eggs-directory
44
          key slapparameter_dict slap-configuration:configuration
45
          raw monitor_template ${monitor-template:rendered}
46 47
template-parts-destination = ${template-parts:target}
template-replicated-destination = ${template-replicated:target}
48 49
import-list = file parts :template-parts-destination
              file replicated :template-replicated-destination
50
mode = 0644
51

52
[template-runner-export]
53
recipe = slapos.recipe.template:jinja2
54 55
template = ${instance-runner-export:target}
rendered = $${buildout:directory}/instance-runner-export.cfg
56 57
mode = 640
context =
58 59
  key pbsready_export_template_path template-pbsready-export:rendered
  key template_runner_path instance-base-runner:rendered
60
  key slapparameter_dict slap-configuration:configuration
61
  raw software_release_bin ${buildout:bin-directory}
62
  raw backup_wait_time ${exporter-default-configuration:backup_wait_time}
63 64 65
  raw monitor_check_resilient_feed_template_path ${template-monitor-check-resilient-feed:location}/${template-monitor-check-resilient-feed:filename}
  raw buildout_executable_location ${buildout:executable}
  raw bash_executable_location ${bash:location}/bin/bash
66
  raw rsync_bin_folder ${rsync:location}/bin
67

68 69 70 71 72 73 74 75
[template-runner-import]
recipe = slapos.recipe.template:jinja2
template = ${instance-runner-import:target}
rendered = $${buildout:directory}/instance-runner-import.cfg
mode = 640
context =
  key template_runner_path instance-base-runner:rendered
  key slapparameter_dict slap-configuration:configuration
76
  raw software_release_bin ${buildout:bin-directory}
77 78 79
  raw importer_script_path ${template-runner-import-script:location}/${template-runner-import-script:filename}
  raw buildout_executable_location ${buildout:executable}
  raw bash_executable_location ${bash:location}/bin/bash
80
  raw sqlite3_executable_location ${sqlite3:location}/bin/sqlite3
81 82 83 84
  raw rsync_executable_location ${rsync:location}/bin/rsync
  raw pbsready_import_template_path ${pbsready-import:output}
  raw software_release_information_template ${template-resilient-software-release-information:destination}/${template-resilient-software-release-information:filename}

85
[slap-configuration]
86
recipe = slapos.cookbook:slapconfiguration
87 88 89 90
computer = $${slap-connection:computer-id}
partition = $${slap-connection:partition-id}
url = $${slap-connection:server-url}
key = $${slap-connection:key-file}
91
cert = $${slap-connection:cert-file}