Make package change run the db_sync
Package upgrades need to notify the exec so that db migrations can be run on upgrade. Change-Id: I124287ce0b4abbee67d48412454bbc1de35c3b55
This commit is contained in:
parent
2b3fb6802f
commit
65aecc3be8
@ -5,11 +5,11 @@ class neutron::db::sync {
|
||||
|
||||
include ::neutron::params
|
||||
|
||||
Package<| title == 'neutron-server' |> -> Exec['neutron-db-sync']
|
||||
Package<| title == 'neutron' |> -> Exec['neutron-db-sync']
|
||||
Package<| tag == 'neutron-package' |> ~> Exec['neutron-db-sync']
|
||||
Exec['neutron-db-sync'] ~> Service <| tag == 'neutron-service' |>
|
||||
|
||||
Neutron_config<||> ~> Exec['neutron-db-sync']
|
||||
Neutron_config<| title == 'database/connection' |> ~> Exec['neutron-db-sync']
|
||||
Exec['neutron-db-sync'] ~> Service <| title == 'neutron-server' |>
|
||||
|
||||
exec { 'neutron-db-sync':
|
||||
command => 'neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini upgrade head',
|
||||
|
Loading…
Reference in New Issue
Block a user