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',