From d1e35d4e6be64a45286d211b1bc6842f8d8ea7f7 Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Tue, 7 Mar 2017 14:10:01 +0100 Subject: [PATCH] Fix db-sync This fixes the command used to sync zaqar database. Change-Id: I9e57885796a6ba2efe8d7a16528d582163ae896a --- manifests/db/sync.pp | 4 ++-- releasenotes/notes/fix-db-sync-a31c186c92c9d684.yaml | 3 +++ spec/classes/zaqar_db_sync_spec.rb | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 releasenotes/notes/fix-db-sync-a31c186c92c9d684.yaml diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index 6c0cced..4e1a655 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -1,12 +1,12 @@ # -# Class to execute "zaqar-manage db_sync +# Class to execute "zaqar-sql-db-manage upgrade head" # class zaqar::db::sync { include ::zaqar::deps exec { 'zaqar-db-sync': - command => 'zaqar-manage db_sync', + command => 'zaqar-sql-db-manage upgrade head', path => '/usr/bin', user => 'zaqar', refreshonly => true, diff --git a/releasenotes/notes/fix-db-sync-a31c186c92c9d684.yaml b/releasenotes/notes/fix-db-sync-a31c186c92c9d684.yaml new file mode 100644 index 0000000..9236b67 --- /dev/null +++ b/releasenotes/notes/fix-db-sync-a31c186c92c9d684.yaml @@ -0,0 +1,3 @@ +--- +fixes: + - Fix command used for db sync. diff --git a/spec/classes/zaqar_db_sync_spec.rb b/spec/classes/zaqar_db_sync_spec.rb index 48e2130..6e14394 100644 --- a/spec/classes/zaqar_db_sync_spec.rb +++ b/spec/classes/zaqar_db_sync_spec.rb @@ -8,7 +8,7 @@ describe 'zaqar::db::sync' do it 'runs zaqar-db-sync' do is_expected.to contain_exec('zaqar-db-sync').with( - :command => 'zaqar-manage db_sync', + :command => 'zaqar-sql-db-manage upgrade head', :path => '/usr/bin', :refreshonly => 'true', :user => 'zaqar',