Fix database address reference

Change-Id: I0c005b4245d16a2487e402861f828c280ccf84db
This commit is contained in:
Yuriy Taraday 2017-04-03 12:14:33 +04:00
parent fee850cf53
commit af076ce132
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash -ex
set -o pipefail
BACKUP_FILE="/var/ccp/backup/cinder/backup-$(date "+%Y%m%d%H%M%S").sql"
mysqldump {% if db.tls.enabled %} --ssl-mode REQUIRED {% endif %} -h {{ address(service.database) }} \
mysqldump {% if db.tls.enabled %} --ssl-mode REQUIRED {% endif %} -h {{ address("database") }} \
-u {{ cinder.db.username }} -p{{ cinder.db.password }} \
--single-transaction {{ cinder.db.name }} > "${BACKUP_FILE}"