Commit 2fd13310 authored by Hardik Juneja's avatar Hardik Juneja

convert instance-pull-backup.cfg.in into jinja2 template

parent 92a9d369
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# not need these here). # not need these here).
[template] [template]
filename = instance.cfg filename = instance.cfg
md5sum = 3cecaf1f9e4e80901447684277d59736 md5sum = 02b2af53bcffdf286cb4b30c4a1e7ba1
[template-runner] [template-runner]
filename = instance-runner.cfg filename = instance-runner.cfg
...@@ -27,7 +27,7 @@ md5sum = 130193114cbbcd014af9704851410605 ...@@ -27,7 +27,7 @@ md5sum = 130193114cbbcd014af9704851410605
[instance-runner-import] [instance-runner-import]
filename = instance-runner-import.cfg.in filename = instance-runner-import.cfg.in
md5sum = cc0d45128df7003d5d7f69ff290d66e1 md5sum = 724514c494eab24189ed0b5db718aefd
[template-runner-export-script] [template-runner-export-script]
filename = template/runner-export.sh.jinja2 filename = template/runner-export.sh.jinja2
......
...@@ -77,7 +77,7 @@ recipe = ...@@ -77,7 +77,7 @@ recipe =
log-url = ${monitor-publish-parameters:monitor-base-url}/resilient/notifier-status-rss log-url = ${monitor-publish-parameters:monitor-base-url}/resilient/notifier-status-rss
[resilient-web-takeover-cgi-script] [resilient-web-takeover-cgi-script]
proof-signature-url = $${monitor-publish-parameters:monitor-base-url}/private/resilient/backup.signature proof-signature-url = ${monitor-publish-parameters:monitor-base-url}/private/resilient/backup.signature
[importer] [importer]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
......
...@@ -83,11 +83,24 @@ context = ...@@ -83,11 +83,24 @@ context =
[instance-pull-backup] [instance-pull-backup]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
template = ${template-pull-backup:output} template = ${template-pull-backup:target}
rendered = $${buildout:directory}/template-pull-backup.cfg rendered = $${buildout:directory}/template-pull-backup.cfg
mode = 640 mode = 640
context = context =
key buildout_directory buildout:directory
key develop_eggs_directory buildout:develop-eggs-directory
key eggs_directory buildout:eggs-directory
raw bin_directory ${buildout:bin-directory}
raw buildout_executable ${buildout:executable}
raw template_wrapper ${template-wrapper:output}
raw dcron_location ${dcron:location}
raw logrotate_location ${logrotate:location}
raw template_monitor $${instance-monitor:rendered} raw template_monitor $${instance-monitor:rendered}
raw gzip_location ${gzip:location}
raw openssh_location ${openssh:location}
raw notifier_feed_promise_template ${notifier-feed-promise-template:target}
raw monitor_resilient_feed_path ${template-monitor-check-resilient-feed:location}/${template-monitor-check-resilient-feed:filename}
raw dash_location ${dash:location}/bin/dash
[instance-monitor] [instance-monitor]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
......
...@@ -60,9 +60,9 @@ filename = pbsready-export.cfg.in ...@@ -60,9 +60,9 @@ filename = pbsready-export.cfg.in
mode = 0644 mode = 0644
[template-pull-backup] [template-pull-backup]
recipe = slapos.recipe.template recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-pull-backup.cfg.in url = ${:_profile_base_location_}/instance-pull-backup.cfg.in
output = ${buildout:directory}/instance-pull-backup.cfg filename = instance-pull-backup.cfg
mode = 0644 mode = 0644
[template-replicated] [template-replicated]
......
...@@ -19,15 +19,15 @@ md5sum = 6469cefecfeac19bf1f7cd26ab89c278 ...@@ -19,15 +19,15 @@ md5sum = 6469cefecfeac19bf1f7cd26ab89c278
[pbsready-import] [pbsready-import]
filename = pbsready-import.cfg.in filename = pbsready-import.cfg.in
md5sum = d3cc6155cd70b435362320042098c9f2 md5sum = ebbe28a5f62732185a17bb03936cc02e
[pbsready-export] [pbsready-export]
filename = pbsready-export.cfg.in filename = pbsready-export.cfg.in
md5sum = c6c11db5372150019debb1ce519b907d md5sum = 7bfec1a954fe06f9ca26ced7c06dc22e
[template-pull-backup] [template-pull-backup]
filename = instance-pull-backup.cfg.in filename = instance-pull-backup.cfg.in
md5sum = 6ae296394642052e56aa934bc922c80d md5sum = dcb88393905f2334c8351f5878859635
[template-replicated] [template-replicated]
filename = template-replicated.cfg.in filename = template-replicated.cfg.in
......
This diff is collapsed.
...@@ -21,10 +21,11 @@ maximum = 22209 ...@@ -21,10 +21,11 @@ maximum = 22209
ip = ${slap-network-information:global-ipv6} ip = ${slap-network-information:global-ipv6}
[notifier-port] [notifier-port]
recipe = slapos.cookbook:free_port port = 65529
minimum = 65526 #recipe = slapos.cookbook:free_port
maximum = 65535 #minimum = 65526
ip = ${notifier:host} #maximum = 65535
#ip = ${notifier:host}
[resilient-publish-connection-parameter] [resilient-publish-connection-parameter]
notification-id = http://[${notifier:host}]:${notifier:port}/get/${notifier-exporter:name} notification-id = http://[${notifier:host}]:${notifier:port}/get/${notifier-exporter:name}
...@@ -83,4 +84,4 @@ recipe = slapos.cookbook:publish-early ...@@ -83,4 +84,4 @@ recipe = slapos.cookbook:publish-early
[slap-parameter] [slap-parameter]
# In cron.d format (i.e things like */15 * * * * are accepted). # In cron.d format (i.e things like */15 * * * * are accepted).
resiliency-backup-periodicity = resiliency-backup-periodicity =
notify = notify =
\ No newline at end of file
...@@ -34,10 +34,11 @@ ip = $${slap-network-information:global-ipv6} ...@@ -34,10 +34,11 @@ ip = $${slap-network-information:global-ipv6}
# Define port of notifier (same reason) # Define port of notifier (same reason)
[notifier-port] [notifier-port]
recipe = slapos.cookbook:free_port port = 65517
minimum = 65516 #recipe = slapos.cookbook:free_port
maximum = 65525 #minimum = 65516
ip = $${notifier:host} #maximum = 65525
#ip = $${notifier:host}
[import-on-notification] [import-on-notification]
# notifier.callback runs a script when a notification (sent by a parent PBS) # notifier.callback runs a script when a notification (sent by a parent PBS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment