Commit f3c10906 authored by Xavier Thompson's avatar Xavier Thompson

software/neoppod: Backup automatically

When upstream-cluster and upstream-masters are given, also pass --backup
to the neo master so that it converges automatically to BACKINGUP state.
parent efc8bfe3
......@@ -26,7 +26,7 @@ md5sum = a0ec1dce4c7a237fbeef3f8aee62e55a
[instance-neo-master]
filename = instance-neo-master.cfg.in
md5sum = 9f27195d770b2f57461c60a82c851ab9
md5sum = 710dedc7cf018ffd1af1743fe7b878cb
[instance-neo]
filename = instance-neo.cfg.in
......
{%- if slapparameter_dict.get('master') != 0 %}
[buildout]
parts +=
logrotate-master
......@@ -17,6 +18,9 @@ replicas = {{ slapparameter_dict['replicas'] }}
upstream-cluster = {{ dumps(slapparameter_dict['upstream-cluster']) }}
upstream-masters = {{ dumps(slapparameter_dict['upstream-masters']) }}
autostart = {{ slapparameter_dict['autostart'] }}
{%- if slapparameter_dict['upstream-cluster'] %}
extra-options = -B
{%- endif %}
# "masters" parameter is not provided when just requesting a partition.
# No actual installation takes place at that time
# (slapos.cookbook:neoppod.master raises), but cfg expansion must succeed. So
......
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