Add DB sync action

It's needed for manual upgrade database schema

Change-Id: I211ff9c88bf3d4e36dd92e9553d338a121b76c3d
Depends-on: I425e028fcabf326d582a1d2e8fd45f761cd1a66c
This commit is contained in:
Sergey Reshetnyak 2017-02-15 20:29:27 +03:00
parent 6d8f78a0ed
commit 06e2191b90
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
actions:
- name: sahara-db-sync
image: sahara-base
dependencies:
- sahara-db-create
command: sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade head
files:
- path: /etc/sahara/sahara.conf
content: sahara.conf.j2