instance-runner-export.cfg.in 2.2 KB
Newer Older
1
[buildout]
2
extends = template-runner.cfg
3 4 5
          ${pbsready-export:output}

parts +=
6 7 8 9
  nginx_conf
  nginx-launcher
  certificate-authority
  ca-nginx
10 11
  gunicorn-launcher
  gunicorn-graceful
12 13 14
  sshkeys-dropbear-runner
  dropbear-server-add-authorized-key
  sshkeys-authority
15
  publish-connection-information
16 17
  slaprunner-promise
  slaprunner-frontend-promise
18 19
  apache-httpd-promise
  httpd-frontend-promise
20
  slaprunner-supervisord-wrapper
21
  dropbear-promise
22
  runtestsuite
23
  symlinks
24 25
  shellinabox
  slapos-cfg
26
  slapos-repo
27
  cron-entry-prepare-software
28
  deploy-instance-parameters
29 30
  instance-software
  instance-software-type
31
  minishell-cwd
32
  bash-profile
33
  supervisord-wrapper
34 35
  supervisord-promise
  httpd-graceful-wrapper
36 37
## Monitoring part
## Monitor for runner
38
  monitor-check-resilient-feed-file
39
  monitor-check-webrunner-internal-instance
40

41

42
[exporter]
43 44 45 46 47 48 49 50 51 52
recipe = slapos.recipe.template:jinja2
template = ${template-runner-export-script:location}/${template-runner-export-script:filename}
rendered = $${directory:bin}/$${slap-parameter:namebase}-exporter
# backward compatibility for resilient stack
wrapper = $${:rendered}
mode = 700
context =
  section directory directory
  raw  shell_binary ${dash:location}/bin/dash
  raw  rsync_binary ${rsync:location}/bin/rsync
53

54 55 56 57 58
[monitor-instance-parameter]
monitor-httpd-port = 8437
# Pass some parameter to dispay in monitoring interface
instance-configuration =
  file recovery-code $${recovery-code:storage-path}
59
  httpdcors cors-domain $${slaprunner-httpd-cors:location} $${httpd-graceful-wrapper:output}
60
  raw webrunner-url https://$${request-frontend:connection-domain}
61 62

# Extends publish section with resilient parameters
63
[publish-connection-information]
64 65 66 67 68
<= resilient-publish-connection-parameter

[monitor-check-resilient-feed-file]
recipe = slapos.recipe.template:jinja2
template = ${template-monitor-check-resilient-feed:location}/${template-monitor-check-resilient-feed:filename}
69
rendered = $${monitor-directory:promises}/check-create-resilient-feed-files
70 71 72
mode = 700
context =
  key input_feed_directory directory:notifier-feeds
73
  key monitor_feed_directory monitor-directory:public
74 75
  raw base_url http://[$${notifier:host}]:$${notifier:port}/get/
  raw python_executable ${buildout:executable}