Start to test all json schema and files.
[slapos.git] / software / slaprunner / instance-runner-import.cfg.in
1 [buildout]
2 extends = template-runner.cfg
3           ${pbsready-import:output}
4
5 parts +=
6   nginx_conf
7   nginx-launcher
8   certificate-authority
9   ca-nginx
10   ca-shellinabox
11   gunicorn-launcher
12   gunicorn-graceful
13   sshkeys-dropbear-runner
14   dropbear-server-add-authorized-key
15   sshkeys-authority
16   slaprunner-promise
17   dropbear-promise
18   runtestsuite
19   shellinabox-promise
20   shellinabox
21   symlinks
22   slapos-cfg
23   slapos-repo-config
24   cron-entry-prepare-software
25   deploy-instance-parameters
26   instance-software-type
27   bash-profile
28   supervisord-wrapper
29 # have to repeat the next one, as it's not inherited from pbsready-import
30   import-on-notification
31 ## Monitoring part
32 ###Parts to add for monitoring
33   cron
34   certificate-authority
35   cron-entry-monitor
36   cron-entry-rss
37   deploy-index
38   deploy-settings-cgi
39   deploy-status-cgi
40   deploy-status-history-cgi
41   setup-static-files
42   certificate-authority
43   zero-parameters
44   public-symlink
45   cgi-httpd-wrapper
46   cgi-httpd-graceful-wrapper
47   monitor-promise
48   monitor-instance-log-access
49 ## Monitor for runner
50   monitor-current-log-access
51   monitor-backup-log-access
52 ## Monitor for import runner
53   monitor-latest-restored-backup
54
55 [importer]
56 recipe = slapos.recipe.template:jinja2
57 template = ${template-runner-import-script:location}/${template-runner-import-script:filename}
58 rendered = $${directory:bin}/$${slap-parameter:namebase}-importer
59 # backward compatibility for resilient stack
60 wrapper = $${:rendered}
61 mode = 700
62 context =
63   key backend_url slaprunner:access-url
64   section directory directory
65   raw  shell_binary ${dash:location}/bin/dash
66   raw  rsync_binary ${rsync:location}/bin/rsync
67   raw  curl_binary ${curl:location}/bin/curl
68
69 [slap-parameter]
70 auto-deploy-instance = false
71 auto-deploy = true
72
73 [resilient-publish-connection-parameter]
74 monitor-url = $${monitor-parameters:url}
75
76 [monitor-backup-log-access]
77 < = monitor-directory-access
78 source = $${directory:logrotate-backup}
79
80 [monitor-latest-restored-backup]
81 recipe = slapos.recipe.template:jinja2
82 command = if [ -f $${directory:etc}/.resilient-timestamp ]; then echo "$(date -d @$(cat $${directory:etc}/.resilient-timestamp) +%c)"; else echo "No backup timestamp found"; fi
83 rendered = $${monitor-directory:monitoring-cgi}/latest-restored-backup
84 template = ${template-wrapper:output}
85 mode = 744
86 context =
87   key content :command