summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuriy Taraday <yorik.sar@gmail.com>2017-04-03 12:14:33 +0400
committerYuriy Taraday <yorik.sar@gmail.com>2017-04-03 12:14:33 +0400
commitaf076ce1322d678e7a9e08bbc3bc6ba64a745562 (patch)
tree557b03daa9ed6931d33e1ef6829a974d02e639ac
parentfee850cf53bb7f263ffb3d8f1a614df092b48cfe (diff)
Fix database address referenceHEADmaster
Notes
Notes (review): Code-Review+2: Andrey Pavlov <apavlov@mirantis.com> Workflow+1: Andrey Pavlov <apavlov@mirantis.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 06 Apr 2017 05:53:48 +0000 Reviewed-on: https://review.openstack.org/452629 Project: openstack/fuel-ccp-cinder Branch: refs/heads/master
-rw-r--r--service/files/backup.sh.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/service/files/backup.sh.j2 b/service/files/backup.sh.j2
index 6f659a8..9891a76 100644
--- a/service/files/backup.sh.j2
+++ b/service/files/backup.sh.j2
@@ -1,6 +1,6 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2set -o pipefail 2set -o pipefail
3BACKUP_FILE="/var/ccp/backup/cinder/backup-$(date "+%Y%m%d%H%M%S").sql" 3BACKUP_FILE="/var/ccp/backup/cinder/backup-$(date "+%Y%m%d%H%M%S").sql"
4mysqldump {% if db.tls.enabled %} --ssl-mode REQUIRED {% endif %} -h {{ address(service.database) }} \ 4mysqldump {% if db.tls.enabled %} --ssl-mode REQUIRED {% endif %} -h {{ address("database") }} \
5 -u {{ cinder.db.username }} -p{{ cinder.db.password }} \ 5 -u {{ cinder.db.username }} -p{{ cinder.db.password }} \
6 --single-transaction {{ cinder.db.name }} > "${BACKUP_FILE}" 6 --single-transaction {{ cinder.db.name }} > "${BACKUP_FILE}"