Merge "Change sql_connection to connection."

This commit is contained in:
Jenkins 2015-04-01 01:19:02 +00:00 committed by Gerrit Code Review
commit 27f3940b92
7 changed files with 10 additions and 9 deletions

View File

@ -167,8 +167,8 @@ class trove::api(
fail("Invalid db connection ${::trove::database_connection}")
}
trove_config {
'DEFAULT/sql_connection': value => $::trove::database_connection;
'DEFAULT/sql_idle_timeout': value => $::trove::database_idle_timeoutl;
'database/connection': value => $::trove::database_connection;
'database/idle_timeout': value => $::trove::database_idle_timeoutl;
}
}

View File

@ -82,7 +82,8 @@ class trove::conductor(
fail("Invalid db connection ${::trove::database_connection}")
}
trove_conductor_config {
'DEFAULT/sql_connection': value => $::trove::database_connection;
'database/connection': value => $::trove::database_connection;
'database/idle_timeout': value => $::trove::database_idle_timeoutl;
}
}

View File

@ -22,6 +22,6 @@ class trove::db::sync {
path => '/usr/bin',
user => 'trove',
refreshonly => true,
subscribe => Trove_config['DEFAULT/sql_connection'],
subscribe => Trove_config['database/connection'],
}
}

View File

@ -104,8 +104,8 @@ class trove::taskmanager(
fail("Invalid db connection ${::trove::database_connection}")
}
trove_taskmanager_config {
'DEFAULT/sql_connection': value => $::trove::database_connection;
'DEFAULT/sql_idle_timeout': value => $::trove::database_idle_timeoutl;
'database/connection': value => $::trove::database_connection;
'database/idle_timeout': value => $::trove::database_idle_timeoutl;
}
}

View File

@ -103,7 +103,7 @@ describe 'trove::api' do
database_connection => 'mysql://trove:pass@10.0.0.1/trove'}"
end
it 'configures trove-api with RabbitMQ' do
is_expected.to contain_trove_config('DEFAULT/sql_connection').with_value('mysql://trove:pass@10.0.0.1/trove')
is_expected.to contain_trove_config('database/connection').with_value('mysql://trove:pass@10.0.0.1/trove')
end
end
end

View File

@ -62,7 +62,7 @@ describe 'trove::conductor' do
database_connection => 'mysql://trove:pass@10.0.0.1/trove'}"
end
it 'configures trove-conductor with RabbitMQ' do
is_expected.to contain_trove_conductor_config('DEFAULT/sql_connection').with_value('mysql://trove:pass@10.0.0.1/trove')
is_expected.to contain_trove_conductor_config('database/connection').with_value('mysql://trove:pass@10.0.0.1/trove')
end
end
end

View File

@ -81,7 +81,7 @@ describe 'trove::taskmanager' do
database_connection => 'mysql://trove:pass@10.0.0.1/trove'}"
end
it 'configures trove-taskmanager with RabbitMQ' do
is_expected.to contain_trove_taskmanager_config('DEFAULT/sql_connection').with_value('mysql://trove:pass@10.0.0.1/trove')
is_expected.to contain_trove_taskmanager_config('database/connection').with_value('mysql://trove:pass@10.0.0.1/trove')
end
end