mirror of https://github.com/apache/cloudstack.git
370 lines
12 KiB
XML
370 lines
12 KiB
XML
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
|
http://www.springframework.org/schema/tx
|
|
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
|
|
http://www.springframework.org/schema/aop
|
|
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
|
|
http://www.springframework.org/schema/context
|
|
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
|
|
|
<!--
|
|
OSS deployment component configuration
|
|
-->
|
|
<bean id="databaseUpgradeChecker" class="com.cloud.upgrade.DatabaseUpgradeChecker" />
|
|
<bean id="configurationDaoImpl" class="com.cloud.configuration.dao.ConfigurationDaoImpl" />
|
|
|
|
<!--
|
|
Managers & pluggable adapters configuration under OSS deployment
|
|
-->
|
|
<bean id="accountManagerImpl" class="com.cloud.user.AccountManagerImpl" >
|
|
<property name="UserAuthenticators">
|
|
<list>
|
|
<ref bean="MD5UserAuthenticator"/>
|
|
<ref bean="LDAPUserAuthenticator"/>
|
|
</list>
|
|
</property>
|
|
<property name="SecurityCheckers">
|
|
<list>
|
|
<ref bean="domainChecker"/>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<!--
|
|
<bean id="BigSwitchVnsElementService" class="com.cloud.network.element.BigSwitchVnsElement">
|
|
<property name="name" value="BigSwitchVnsElementService"/>
|
|
</bean>
|
|
-->
|
|
|
|
<!--
|
|
Adapters
|
|
-->
|
|
<bean id="FirstFitRouting" class="com.cloud.agent.manager.allocator.impl.FirstFitRoutingAllocator">
|
|
<property name="name" value="FirstFitRouting"/>
|
|
</bean>
|
|
|
|
<bean id="hypervisorTemplateAdapter" class="com.cloud.template.HypervisorTemplateAdapter">
|
|
<property name="name" value="HypervisorAdapter"/>
|
|
</bean>
|
|
|
|
<bean id="bareMetalTemplateAdapter" class="com.cloud.baremetal.BareMetalTemplateAdapter">
|
|
<property name="name" value="BareMetalAdapter"/>
|
|
</bean>
|
|
|
|
<!--
|
|
Storage pool allocators
|
|
-->
|
|
|
|
<bean id="LocalStoragePoolAllocator" class="org.apache.cloudstack.storage.allocator.LocalStoragePoolAllocator">
|
|
<property name="name" value="LocalStorage"/>
|
|
</bean>
|
|
<!--
|
|
<bean id="FirstFitStoragePoolAllocator" class="org.apache.cloudstack.storage.allocator.FirstFitStoragePoolAllocator">
|
|
<property name="name" value="Storage"/>
|
|
</bean>
|
|
-->
|
|
|
|
<bean id="UserConcentratedAllocator" class="com.cloud.agent.manager.allocator.impl.UserConcentratedAllocator">
|
|
<property name="name" value="User First"/>
|
|
</bean>
|
|
|
|
<bean id="ConsoleProxyAllocator" class="com.cloud.consoleproxy.ConsoleProxyBalanceAllocator">
|
|
<property name="name" value="Balance"/>
|
|
</bean>
|
|
|
|
<bean id="StaticRoleBasedAPIAccessChecker" class="org.apache.cloudstack.acl.StaticRoleBasedAPIAccessChecker"/>
|
|
|
|
<bean id="ExteralIpAddressAllocator" class="com.cloud.network.ExteralIpAddressAllocator">
|
|
<property name="name" value="Basic"/>
|
|
</bean>
|
|
|
|
<bean id="HypervisorTemplateAdapter" class="com.cloud.template.HypervisorTemplateAdapter">
|
|
<property name="name" value="HypervisorAdapter"/>
|
|
</bean>
|
|
|
|
<bean id="BareMetalTemplateAdapter" class="com.cloud.baremetal.manager.BareMetalTemplateAdapter" >
|
|
<property name="name" value="BareMetalTemplateAdapter"/>
|
|
</bean>
|
|
|
|
<!--
|
|
Authenticators
|
|
-->
|
|
<bean id="MD5UserAuthenticator" class="com.cloud.server.auth.MD5UserAuthenticator">
|
|
<property name="name" value="MD5"/>
|
|
</bean>
|
|
|
|
<bean id="LDAPUserAuthenticator" class="com.cloud.server.auth.LDAPUserAuthenticator">
|
|
<property name="name" value="LDAP"/>
|
|
</bean>
|
|
|
|
<!--
|
|
Investigators
|
|
-->
|
|
<bean id="CheckOnAgentInvestigator" class="com.cloud.ha.CheckOnAgentInvestigator">
|
|
<property name="name" value="SimpleInvestigator"/>
|
|
</bean>
|
|
|
|
<bean id="XenServerInvestigator" class="com.cloud.ha.XenServerInvestigator">
|
|
<property name="name" value="XenServerInvestigator"/>
|
|
</bean>
|
|
|
|
<bean id="UserVmDomRInvestigator" class="com.cloud.ha.UserVmDomRInvestigator">
|
|
<property name="name" value="PingInvestigator"/>
|
|
</bean>
|
|
|
|
<bean id="ManagementIPSystemVMInvestigator" class="com.cloud.ha.ManagementIPSystemVMInvestigator">
|
|
<property name="name" value="ManagementIPSysVMInvestigator"/>
|
|
</bean>
|
|
|
|
<!--
|
|
Fencers
|
|
-->
|
|
<bean id="XenServerFencer" class="com.cloud.ha.XenServerFencer">
|
|
<property name="name" value="XenServerFenceBuilder"/>
|
|
</bean>
|
|
<bean id="KVMFencer" class="com.cloud.ha.KVMFencer">
|
|
<property name="name" value="KVMFenceBuilder"/>
|
|
</bean>
|
|
<bean id="OvmFencer" class="com.cloud.ovm.hypervisor.OvmFencer">
|
|
<property name="name" value="OvmFenceBuilder"/>
|
|
</bean>
|
|
|
|
<!--
|
|
Stratosphere SSP support components
|
|
-->
|
|
<bean id="sspCredentialDaoImpl" class="org.apache.cloudstack.network.dao.SspCredentialDaoImpl"/>
|
|
<bean id="sspTenantDaoImpl" class="org.apache.cloudstack.network.dao.SspTenantDaoImpl"/>
|
|
<bean id="sspUuidDaoImpl" class="org.apache.cloudstack.network.dao.SspUuidDaoImpl"/>
|
|
<bean id="SspGuestNetworkGuru" class="org.apache.cloudstack.network.guru.SspGuestNetworkGuru">
|
|
<property name="name" value="SspGuestNetworkGuru"/>
|
|
</bean>
|
|
<bean id="StratosphereSsp" class="org.apache.cloudstack.network.element.SspElement">
|
|
<property name="name" value="StratosphereSsp"/>
|
|
</bean>
|
|
|
|
<!--
|
|
UCS support components
|
|
-->
|
|
<bean id="ucsBladeDaoImpl" class="com.cloud.ucs.database.UcsBladeDaoImpl" />
|
|
<bean id="ucsManagerDaoImpl" class="com.cloud.ucs.database.UcsManagerDaoImpl" />
|
|
|
|
<!--
|
|
VXLAN support components
|
|
-->
|
|
<bean id="VxlanGuestNetworkGuru" class="com.cloud.network.guru.VxlanGuestNetworkGuru">
|
|
<property name="name" value="VxlanGuestNetworkGuru"/>
|
|
</bean>
|
|
|
|
<!--
|
|
|
|
<bean id="SecondaryStorageDiscoverer" class="com.cloud.storage.secondary.SecondaryStorageDiscoverer">
|
|
<property name="name" value="SecondaryStorage"/>
|
|
</bean>
|
|
|
|
<bean id="KvmServerDiscoverer" class="com.cloud.hypervisor.kvm.discoverer.KvmServerDiscoverer">
|
|
<property name="name" value="KVM Agent"/>
|
|
</bean>
|
|
|
|
<bean id="SimulatorDiscoverer" class="com.cloud.resource.SimulatorDiscoverer">
|
|
<property name="name" value="Simulator Agent"/>
|
|
</bean>
|
|
|
|
|
|
<bean id="BareMetalDiscoverer" class="com.cloud.baremetal.manager.BareMetalDiscoverer">
|
|
<property name="name" value="Bare Metal Agent"/>
|
|
</bean>
|
|
|
|
<bean id="HypervServerDiscoverer" class="com.cloud.hypervisor.hyperv.HypervServerDiscoverer">
|
|
<property name="name" value="SCVMMServer"/>
|
|
</bean>
|
|
|
|
<bean id="OvmDiscoverer" class="com.cloud.ovm.hypervisor.OvmDiscoverer">
|
|
<property name="name" value="Ovm Discover"/>
|
|
</bean>
|
|
|
|
<bean id="FirstFitPlanner" class="com.cloud.deploy.FirstFitPlanner">
|
|
<property name="name" value="First Fit"/>
|
|
<property name="StoragePoolAllocators">
|
|
<list>
|
|
<ref bean="LocalStoragePoolAllocator"/>
|
|
<ref bean="clusterScopeStoragePoolAllocator"/>
|
|
<ref bean="zoneWideStoragePoolAllocator"/>
|
|
<ref bean="garbageCollectingStoragePoolAllocator"/>
|
|
</list>
|
|
</property>
|
|
<property name="HostAllocators">
|
|
<list>
|
|
<ref bean="FirstFitRouting"/>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="resourceManagerImpl" class="com.cloud.resource.ResourceManagerImpl" >
|
|
<property name="PodAllocators">
|
|
<list>
|
|
<ref bean="UserConcentratedAllocator"/>
|
|
</list>
|
|
</property>
|
|
<property name="Discoverers">
|
|
<list>
|
|
<ref bean="XcpServerDiscoverer"/>
|
|
<ref bean="SecondaryStorageDiscoverer"/>
|
|
<ref bean="KvmServerDiscoverer"/>
|
|
|
|
<!--
|
|
<ref bean="BareMetalDiscoverer"/>
|
|
-->
|
|
|
|
<ref bean="OvmDiscoverer"/>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="highAvailabilityManagerExtImpl" class="com.cloud.ha.HighAvailabilityManagerExtImpl" >
|
|
<property name="Investigators">
|
|
<list>
|
|
<ref bean="CheckOnAgentInvestigator"/>
|
|
<ref bean="XenServerInvestigator"/>
|
|
<ref bean="UserVmDomRInvestigator"/>
|
|
<ref bean="ManagementIPSystemVMInvestigator"/>
|
|
</list>
|
|
</property>
|
|
<property name="FenceBuilders">
|
|
<list>
|
|
<ref bean="XenServerFencer"/>
|
|
<ref bean="KVMFencer"/>
|
|
<ref bean="OvmFencer"/>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="clusteredVirtualMachineManagerImpl" class="com.cloud.vm.ClusteredVirtualMachineManagerImpl" >
|
|
<property name="HostAllocators">
|
|
<list>
|
|
<ref bean="FirstFitRouting"/>
|
|
</list>
|
|
</property>
|
|
<property name="Planners">
|
|
<list>
|
|
<ref bean="FirstFitPlanner" />
|
|
<ref bean="UserDispersingPlanner" />
|
|
<ref bean="UserConcentratedPodPlanner" />
|
|
|
|
<!--
|
|
<ref bean="BareMetalPlanner" />
|
|
-->
|
|
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="networkManagerImpl" class="com.cloud.network.NetworkManagerImpl" >
|
|
<property name="NetworkGurus">
|
|
<list>
|
|
<ref bean="StorageNetworkGuru"/>
|
|
<ref bean="ExternalGuestNetworkGuru"/>
|
|
<ref bean="PublicNetworkGuru"/>
|
|
<ref bean="PodBasedNetworkGuru"/>
|
|
<ref bean="DirectPodBasedNetworkGuru"/>
|
|
<ref bean="ControlNetworkGuru"/>
|
|
<ref bean="DirectNetworkGuru"/>
|
|
<ref bean="OvsGuestNetworkGuru"/>
|
|
<ref bean="PrivateNetworkGuru"/>
|
|
</list>
|
|
</property>
|
|
<property name="NetworkElements">
|
|
<list>
|
|
<ref bean="VirtualRouter"/>
|
|
<ref bean="Ovs"/>
|
|
<ref bean="SecurityGroupProvider"/>
|
|
<ref bean="VpcVirtualRouter"/>
|
|
<!--
|
|
<ref bean="BareMetalDhcp"/>
|
|
<ref bean="BareMetalPxe"/>
|
|
<ref bean="BareMetalUserdata"/>
|
|
-->
|
|
</list>
|
|
</property>
|
|
<property name="IpDeployers">
|
|
<list>
|
|
<ref bean="elasticLoadBalancerElement"/>
|
|
<ref bean="VirtualRouter"/>
|
|
<ref bean="VpcVirtualRouter"/>
|
|
</list>
|
|
</property>
|
|
<property name="DhcpProviders">
|
|
<list>
|
|
<ref bean="VirtualRouter"/>
|
|
<ref bean="VpcVirtualRouter"/>
|
|
<!--
|
|
<ref bean="BareMetalDhcp"/>
|
|
-->
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="networkGurus" class="com.cloud.utils.component.AdapterList">
|
|
<property name="Adapters">
|
|
<list>
|
|
<ref bean="StorageNetworkGuru"/>
|
|
<ref bean="ExternalGuestNetworkGuru"/>
|
|
<ref bean="PublicNetworkGuru"/>
|
|
<ref bean="PodBasedNetworkGuru"/>
|
|
<ref bean="DirectPodBasedNetworkGuru"/>
|
|
<ref bean="ControlNetworkGuru"/>
|
|
<ref bean="DirectNetworkGuru"/>
|
|
<ref bean="OvsGuestNetworkGuru"/>
|
|
<ref bean="PrivateNetworkGuru"/>
|
|
<ref bean="NiciraNvpGuestNetworkGuru"/>
|
|
<ref bean="MidoNetGuestNetworkGuru"/>
|
|
<ref bean="SspGuestNetworkGuru"/>
|
|
<ref bean="VxlanGuestNetworkGuru"/>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="networkElements" class="com.cloud.utils.component.AdapterList">
|
|
<property name="Adapters">
|
|
<list>
|
|
<ref bean="VirtualRouter"/>
|
|
<ref bean="Ovs"/>
|
|
<ref bean="SecurityGroupProvider"/>
|
|
<ref bean="VpcVirtualRouter"/>
|
|
<!--
|
|
<ref bean="BareMetalDhcp"/>
|
|
<ref bean="BareMetalPxe"/>
|
|
<ref bean="BareMetalUserdata"/>
|
|
-->
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="SimulatorGuru" class="com.cloud.simulator.SimulatorGuru">
|
|
<property name="name" value="SimulatorGuru"/>
|
|
</bean>
|
|
|
|
</beans>
|