Change sql_connection to connection.
Sql connection parameter is now in database/connection not DEFAULT/sql_connection. Change-Id: I5f7b48a1a6e092b9629145b57795cba0c351a4eb
This commit is contained in:
parent
b38fef5f76
commit
b032aca232
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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'],
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user