Added config section for compute deployment details

* Added compute section for hypervisor confg. Will need this
  section to define other specifics about environment shortly
* Added compute section to reference configs

Change-Id: I668d5c3cfb2fe1db07b6de7e582c175478fad813
This commit is contained in:
Daryl Walleck
2013-05-15 00:12:42 -05:00
parent 7daaea942a
commit 50bbb1590d
5 changed files with 21 additions and 0 deletions

View File

@@ -17,6 +17,15 @@ limitations under the License.
from cloudcafe.common.models.configuration import ConfigSectionInterface
class ComputeConfig(ConfigSectionInterface):
SECTION_NAME = 'compute'
@property
def hypervisor(self):
return self.get("hypervisor")
class ComputeEndpointConfig(ConfigSectionInterface):
SECTION_NAME = 'compute_endpoint'

View File

@@ -20,6 +20,9 @@ deserialize_format=json
endpoint=<auth_endpoint>
strategy=keystone
[compute]
hypervisor=qemu
[compute_admin_auth_config]
endpoint=<auth_endpoint>
strategy=keystone

View File

@@ -20,6 +20,9 @@ deserialize_format=xml
endpoint=<auth_endpoint>
strategy=keystone
[compute]
hypervisor=qemu
[compute_admin_auth_config]
endpoint=<auth_endpoint>
strategy=keystone

View File

@@ -20,6 +20,9 @@ deserialize_format=json
endpoint=<auth_endpoint>
strategy=<keystone/rax_auth>
[compute]
hypervisor=<kvm/qemu/xen_server>
[compute_admin_auth_config]
endpoint=<auth_endpoint>
strategy=<keystone/rax_auth>

View File

@@ -20,6 +20,9 @@ deserialize_format=xml
endpoint=<auth_endpoint>
strategy=<keystone/rax_auth>
[compute]
hypervisor=<kvm/qemu/xen_server>
[compute_admin_auth_config]
endpoint=<auth_endpoint>
strategy=<keystone/rax_auth>