Merge "Use oslo::coordination to manage tooz backend package"
This commit is contained in:
@@ -97,6 +97,10 @@ class neutron::deps {
|
|||||||
# before service startup
|
# before service startup
|
||||||
Oslo::Cache<||> -> Anchor['neutron::service::begin']
|
Oslo::Cache<||> -> Anchor['neutron::service::begin']
|
||||||
|
|
||||||
|
# all coordination settings should be applied and all packages should be
|
||||||
|
# installed before service startup
|
||||||
|
Oslo::Coordination<||> -> Anchor['neutron::service::begin']
|
||||||
|
|
||||||
# all db settings should be applied and all packages should be installed
|
# all db settings should be applied and all packages should be installed
|
||||||
# before dbsync starts
|
# before dbsync starts
|
||||||
Oslo::Db<||> -> Anchor['neutron::dbsync::begin']
|
Oslo::Db<||> -> Anchor['neutron::dbsync::begin']
|
||||||
|
@@ -54,5 +54,12 @@ class neutron::plugins::ml2::networking_ansible(
|
|||||||
)
|
)
|
||||||
create_resources(neutron::plugins::ml2::networking_ansible_host, $host_configs)
|
create_resources(neutron::plugins::ml2::networking_ansible_host, $host_configs)
|
||||||
|
|
||||||
neutron_plugin_ml2 {'ml2_ansible/coordination_uri': value => $coordination_uri; }
|
oslo::coordination { 'neutron_plugin_ml2':
|
||||||
|
backend_url => $coordination_uri,
|
||||||
|
manage_config => false,
|
||||||
|
}
|
||||||
|
|
||||||
|
neutron_plugin_ml2 {
|
||||||
|
'ml2_ansible/coordination_uri': value => $coordination_uri;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -41,6 +41,11 @@ describe 'neutron::plugins::ml2::networking_ansible' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'should configure non-host config' do
|
it 'should configure non-host config' do
|
||||||
|
should contain_oslo__coordination('neutron_plugin_ml2').with(
|
||||||
|
:backend_url => 'etcd://127.0.0.1:2379',
|
||||||
|
:manage_config => false,
|
||||||
|
)
|
||||||
|
|
||||||
should contain_neutron_plugin_ml2('ml2_ansible/coordination_uri').with_value('etcd://127.0.0.1:2379')
|
should contain_neutron_plugin_ml2('ml2_ansible/coordination_uri').with_value('etcd://127.0.0.1:2379')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user