summaryrefslogtreecommitdiffstats
path: root/templates/node.xml
diff options
context:
space:
mode:
authorroot <root@blu.(none)>2008-07-10 11:09:08 +1000
committerroot <root@blu.(none)>2008-07-10 11:09:08 +1000
commitf48fccf2a983e925f3423b1e9001bb096cd21b30 (patch)
treed5664a71d29af8ca8009f2bd8bf700d8c57f7fff /templates/node.xml
parent0eb9fe6293b2063d0ba392144fc4c5103e305200 (diff)
downloadautocluster-f48fccf2a983e925f3423b1e9001bb096cd21b30.tar.gz
autocluster-f48fccf2a983e925f3423b1e9001bb096cd21b30.tar.xz
autocluster-f48fccf2a983e925f3423b1e9001bb096cd21b30.zip
moved to template based configuration
Diffstat (limited to 'templates/node.xml')
-rw-r--r--templates/node.xml72
1 files changed, 72 insertions, 0 deletions
diff --git a/templates/node.xml b/templates/node.xml
new file mode 100644
index 0000000..bec1b0d
--- /dev/null
+++ b/templates/node.xml
@@ -0,0 +1,72 @@
+<!-- template for initial install of cluster nodes -->
+<domain type='kvm'>
+ <name>@@NAME@@</name>
+ <uuid>@@UUID@@</uuid>
+ <memory>@@MEM@@</memory>
+ <currentMemory>@@MEM@@</currentMemory>
+ <vcpu>1</vcpu>
+ <os>
+ <type>hvm</type>
+ <boot dev='hd'/>
+ </os>
+ <features>
+ <acpi/>
+ </features>
+ <clock offset='utc'/>
+ <on_poweroff>destroy</on_poweroff>
+ <on_reboot>restart</on_reboot>
+ <on_crash>destroy</on_crash>
+ <devices>
+ <emulator>@@KVM@@</emulator>
+ <disk type='file' device='disk'>
+ <source file='@@DISK@@'/>
+ <target dev='sda' bus='scsi'/>
+ </disk>
+ <disk type='file' device='disk'>
+ <source file='@@VIRTBASE@@/@@CLUSTER@@/shared1'/>
+ <target dev='sdb' bus='scsi'/>
+ </disk>
+ <disk type='file' device='disk'>
+ <source file='@@VIRTBASE@@/@@CLUSTER@@/shared2'/>
+ <target dev='sdc' bus='scsi'/>
+ </disk>
+ <disk type='file' device='disk'>
+ <source file='@@VIRTBASE@@/@@CLUSTER@@/shared3'/>
+ <target dev='sdd' bus='scsi'/>
+ </disk>
+ <!-- We list all the shared disks twice, so we can play with multipath -->
+ <disk type='file' device='disk'>
+ <source file='@@VIRTBASE@@/@@CLUSTER@@/shared1'/>
+ <target dev='sde' bus='scsi'/>
+ </disk>
+ <disk type='file' device='disk'>
+ <source file='@@VIRTBASE@@/@@CLUSTER@@/shared2'/>
+ <target dev='sdf' bus='scsi'/>
+ </disk>
+ <disk type='file' device='disk'>
+ <source file='@@VIRTBASE@@/@@CLUSTER@@/shared3'/>
+ <target dev='sdg' bus='scsi'/>
+ </disk>
+ <interface type='network'>
+ <mac address='@@MAC1@@'/>
+ <model type='@@NICMODEL@@'/>
+ <source network='net1'/>
+ </interface>
+ <interface type='network'>
+ <mac address='@@MAC2@@'/>
+ <model type='@@NICMODEL@@'/>
+ <source network='net2'/>
+ </interface>
+ <interface type='network'>
+ <mac address='@@MAC3'/>
+ <model type='@@NICMODEL@@'/>
+ <source network='net3'/>
+ </interface>
+ <input type='mouse' bus='ps2'/>
+ <graphics type='vnc' port='-1' listen='127.0.0.1'/>
+ <serial type="file">
+ <source path="@@KVMLOG@@/serial.@@NAME@@"/>
+ <target port="1"/>
+ </serial>
+ </devices>
+</domain>