Merge "dbsync should only notify services that use the db"

This commit is contained in:
Jenkins
2015-10-13 17:32:50 +00:00
committed by Gerrit Code Review
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ class neutron::db::sync {
include ::neutron::params
Package<| tag == 'neutron-package' |> ~> Exec['neutron-db-sync']
Exec['neutron-db-sync'] ~> Service <| tag == 'neutron-service' |>
Exec['neutron-db-sync'] ~> Service <| tag == 'neutron-db-sync-service' |>
Neutron_config<||> ~> Exec['neutron-db-sync']
Neutron_config<| title == 'database/connection' |> ~> Exec['neutron-db-sync']

View File

@@ -477,6 +477,6 @@ class neutron::server (
hasstatus => true,
hasrestart => true,
require => Class['neutron'],
tag => 'neutron-service',
tag => ['neutron-service', 'neutron-db-sync-service'],
}
}

View File

@@ -85,7 +85,7 @@ describe 'neutron::server' do
:enable => true,
:ensure => 'running',
:require => 'Class[Neutron]',
:tag => 'neutron-service',
:tag => ['neutron-service', 'neutron-db-sync-service'],
)
is_expected.not_to contain_class('neutron::db::sync')
is_expected.to contain_neutron_api_config('filter:authtoken/auth_admin_prefix').with(