Commit 8b12a75b 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 dbc70c37
...@@ -26,7 +26,7 @@ md5sum = b6e1ccb1d90160110202e5111eec2afa ...@@ -26,7 +26,7 @@ md5sum = b6e1ccb1d90160110202e5111eec2afa
[instance-neo-master] [instance-neo-master]
filename = instance-neo-master.cfg.in filename = instance-neo-master.cfg.in
md5sum = 9f27195d770b2f57461c60a82c851ab9 md5sum = 710dedc7cf018ffd1af1743fe7b878cb
[instance-neo] [instance-neo]
filename = instance-neo.cfg.in filename = instance-neo.cfg.in
......
{%- if slapparameter_dict.get('master') != 0 %} {%- if slapparameter_dict.get('master') != 0 %}
[buildout] [buildout]
parts += parts +=
logrotate-master logrotate-master
...@@ -17,6 +18,9 @@ replicas = {{ slapparameter_dict['replicas'] }} ...@@ -17,6 +18,9 @@ replicas = {{ slapparameter_dict['replicas'] }}
upstream-cluster = {{ dumps(slapparameter_dict['upstream-cluster']) }} upstream-cluster = {{ dumps(slapparameter_dict['upstream-cluster']) }}
upstream-masters = {{ dumps(slapparameter_dict['upstream-masters']) }} upstream-masters = {{ dumps(slapparameter_dict['upstream-masters']) }}
autostart = {{ slapparameter_dict['autostart'] }} autostart = {{ slapparameter_dict['autostart'] }}
{%- if slapparameter_dict['upstream-cluster'] %}
extra-options = -B
{%- endif %}
# "masters" parameter is not provided when just requesting a partition. # "masters" parameter is not provided when just requesting a partition.
# No actual installation takes place at that time # No actual installation takes place at that time
# (slapos.cookbook:neoppod.master raises), but cfg expansion must succeed. So # (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