From 2c64ba72fc0545e202b8e5e79e60447e119539a5 Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Fri, 29 Jan 2010 16:50:05 +0000 Subject: [PATCH] Proposed Eucalyptus RSpec --- sfa/managers/eucalyptus/eucalyptus.rnc | 78 ++++++++++++++++++++++++++ sfa/managers/eucalyptus/eucalyptus.xml | 76 +++++++++++++++++++++++++ 2 files changed, 154 insertions(+) create mode 100644 sfa/managers/eucalyptus/eucalyptus.rnc create mode 100644 sfa/managers/eucalyptus/eucalyptus.xml diff --git a/sfa/managers/eucalyptus/eucalyptus.rnc b/sfa/managers/eucalyptus/eucalyptus.rnc new file mode 100644 index 00000000..ca06454d --- /dev/null +++ b/sfa/managers/eucalyptus/eucalyptus.rnc @@ -0,0 +1,78 @@ +start = RSpec +RSpec = element RSpec { + attribute type { xsd:NMTOKEN }, + cloud +} +cloud = element cloud { + attribute id { xsd:NMTOKEN }, + user-info?, + ipv4, + keypairs, + images, + cluster+ +} +user-info = element user-info { + credential +} +keypairs = element keypairs { keypair+ } +images = element images { image+ } +image = element image { + attribute id { xsd:ID }, + type, + arch, + state, + location +} +cluster = element cluster { + attribute id { xsd:ID }, + ipv4, + vm-types +} +vm-types = element vm-types { vm-type+ } +vm-type = element vm-type { + attribute name { xsd:ID }, + free-slots, + max-instances, + cores, + memory, + disk-space, + request? +} +request = element request { + instances, + kernel-image, + ramdisk, + disk-image, + keypair +} +credential = element credential { text } +ipv4 = element ipv4 { text } +keypair = element keypair { text } +type = element type { text } +arch = element arch { text } +state = element state { text } +location = element location { text } +free-slots = element free-slots { text } +max-instances = element max-instances { text } +cores = element cores { text } +memory = element memory { + attribute unit { xsd:NMTOKEN }, + text +} +disk-space = element disk-space { + attribute unit { xsd:NMTOKEN }, + text +} +instances = element instances { text } +kernel-image = element kernel-image { + attribute id { xsd:IDREF }, + empty +} +ramdisk = element ramdisk { + attribute id { xsd:IDREF }?, + empty +} +disk-image = element disk-image { + attribute id { xsd:IDREF }, + empty +} diff --git a/sfa/managers/eucalyptus/eucalyptus.xml b/sfa/managers/eucalyptus/eucalyptus.xml new file mode 100644 index 00000000..88023b56 --- /dev/null +++ b/sfa/managers/eucalyptus/eucalyptus.xml @@ -0,0 +1,76 @@ + + + + + + foobarbaz + + 155.98.39.85 + + cortex + mykey + + + + machine + x86_64 + available + images/ttylinux.img.manifest.xml + + + kernel + x86_64 + available + images/vmlinuz-2.6.16.33-xen.manifest.xml + + + + 10.1.1.2 + + + 2 + 2 + 1 + 128 + 2 + + + 1 + + + + cortex + + + + 1 + 2 + 1 + 256 + 5 + + + 0 + 1 + 2 + 512 + 10 + + + 0 + 1 + 2 + 1024 + 20 + + + 0 + 0 + 4 + 2048 + 20 + + + + + -- 2.43.0