Fix default behavior of cassandra backup state:
- fix crontab schedule;
- do not set cassandra backup via cron by default as it should be
explicitely configured and controlled by cluster operators via cluster model.
Change-Id: I353c1fd1a8c13e06927ab623d920e07f97b77380
Related-PROD: PROD-27054
diff --git a/cassandra/backup.sls b/cassandra/backup.sls
index 62d130a..ddac520 100644
--- a/cassandra/backup.sls
+++ b/cassandra/backup.sls
@@ -63,6 +63,7 @@
- hour: 2
{%- endif %}
{%- else %}
+ - minute: 0
- hour: 2
{%- endif %}
- require:
diff --git a/cassandra/map.jinja b/cassandra/map.jinja
index d3632a4..dd2d1c8 100644
--- a/cassandra/map.jinja
+++ b/cassandra/map.jinja
@@ -22,13 +22,13 @@
pkgs:
- rsync
backup_dir: '/var/backups/cassandra'
- cron: True
+ cron: False
restrict_clients: True
RedHat:
pkgs:
- rsync
backup_dir: '/var/backups/cassandra'
- cron: True
+ cron: False
restrict_clients: True
{%- endload %}