summaryrefslogtreecommitdiffstats
path: root/odl-pipeline/templates
diff options
context:
space:
mode:
authorNikolas Hermanns <nikolas.hermanns@ericsson.com>2016-12-13 10:26:11 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-13 10:26:11 +0000
commit2dd53e9153a37a5a9f14a8772224dbdaa091bbfa (patch)
tree7e083f4959878d78f943c07cc32575c66a4ba05d /odl-pipeline/templates
parent2445ba0a0325611e0b927ecc7ed4d361426e5fc4 (diff)
parent416f9cf177801cecfe39f5249d73e3a4a85f0bbd (diff)
Merge "adding odl-pipeline"
Diffstat (limited to 'odl-pipeline/templates')
-rw-r--r--odl-pipeline/templates/ifcfg-enp0s45
-rw-r--r--odl-pipeline/templates/ifcfg-enp0s65
-rw-r--r--odl-pipeline/templates/nets/br-admin.xml7
-rw-r--r--odl-pipeline/templates/nets/br-private.xml6
-rw-r--r--odl-pipeline/templates/nets/br-public.xml6
-rw-r--r--odl-pipeline/templates/nets/br-storage.xml6
-rw-r--r--odl-pipeline/templates/nodes/baremetalX.xml87
-rw-r--r--odl-pipeline/templates/nodes/jenkins_slave.xml89
-rw-r--r--odl-pipeline/templates/nodes/undercloud.xml87
9 files changed, 298 insertions, 0 deletions
diff --git a/odl-pipeline/templates/ifcfg-enp0s4 b/odl-pipeline/templates/ifcfg-enp0s4
new file mode 100644
index 0000000..d7751dd
--- /dev/null
+++ b/odl-pipeline/templates/ifcfg-enp0s4
@@ -0,0 +1,5 @@
+# br-admin
+auto enp0s4
+iface enp0s4 inet static
+ address 192.0.2.199
+ netmask 255.255.255.0 \ No newline at end of file
diff --git a/odl-pipeline/templates/ifcfg-enp0s6 b/odl-pipeline/templates/ifcfg-enp0s6
new file mode 100644
index 0000000..e25dc4e
--- /dev/null
+++ b/odl-pipeline/templates/ifcfg-enp0s6
@@ -0,0 +1,5 @@
+# br-public
+auto enp0s6
+iface enp0s6 inet static
+ address 192.168.37.199
+ netmask 255.255.255.0 \ No newline at end of file
diff --git a/odl-pipeline/templates/nets/br-admin.xml b/odl-pipeline/templates/nets/br-admin.xml
new file mode 100644
index 0000000..9508c46
--- /dev/null
+++ b/odl-pipeline/templates/nets/br-admin.xml
@@ -0,0 +1,7 @@
+<network ipv6='yes'>
+ <name>br-admin-NaMe</name>
+ <forward mode='bridge'/>
+ <bridge name='br-admin-NaMe'/>
+
+</network>
+
diff --git a/odl-pipeline/templates/nets/br-private.xml b/odl-pipeline/templates/nets/br-private.xml
new file mode 100644
index 0000000..0fe3ffa
--- /dev/null
+++ b/odl-pipeline/templates/nets/br-private.xml
@@ -0,0 +1,6 @@
+<network ipv6='yes'>
+ <name>br-private-NaMe</name>
+ <forward mode='bridge'/>
+ <bridge name='br-private-NaMe'/>
+</network>
+
diff --git a/odl-pipeline/templates/nets/br-public.xml b/odl-pipeline/templates/nets/br-public.xml
new file mode 100644
index 0000000..66b08f1
--- /dev/null
+++ b/odl-pipeline/templates/nets/br-public.xml
@@ -0,0 +1,6 @@
+<network ipv6='yes'>
+ <name>br-public-NaMe</name>
+ <forward mode='bridge'/>
+ <bridge name='br-public-NaMe'/>
+</network>
+
diff --git a/odl-pipeline/templates/nets/br-storage.xml b/odl-pipeline/templates/nets/br-storage.xml
new file mode 100644
index 0000000..ce5edbd
--- /dev/null
+++ b/odl-pipeline/templates/nets/br-storage.xml
@@ -0,0 +1,6 @@
+<network ipv6='yes'>
+ <name>br-storage-NaMe</name>
+ <forward mode='bridge'/>
+ <bridge name='br-storage-NaMe'/>
+</network>
+
diff --git a/odl-pipeline/templates/nodes/baremetalX.xml b/odl-pipeline/templates/nodes/baremetalX.xml
new file mode 100644
index 0000000..3eb3e87
--- /dev/null
+++ b/odl-pipeline/templates/nodes/baremetalX.xml
@@ -0,0 +1,87 @@
+<domain type='kvm'>
+ <name>NaMe</name>
+ <memory unit='GiB'>MeMoRy</memory>
+ <currentMemory unit='GiB'>MeMoRy</currentMemory>
+ <vcpu placement='static'>vCpU</vcpu>
+ <resource>
+ <partition>/machine</partition>
+ </resource>
+ <os>
+ <type arch='x86_64'>hvm</type>
+ <boot dev='hd'/>
+ <bootmenu enable='no'/>
+ </os>
+ <cpu mode='host-passthrough'/>
+ <clock offset='utc'/>
+ <on_poweroff>destroy</on_poweroff>
+ <on_reboot>restart</on_reboot>
+ <on_crash>restart</on_crash>
+ <devices>
+ <emulator>/usr/bin/kvm</emulator>
+ <disk type='file' device='disk'>
+ <driver name='qemu' type='qcow2' cache='unsafe'/>
+ <source file='DiSk'/>
+ <target dev='sda' bus='sata'/>
+ <alias name='sata0-0-0'/>
+ <address type='drive' controller='0' bus='0' target='0' unit='0'/>
+ </disk>
+ <controller type='scsi' index='0' model='virtio-scsi'>
+ <alias name='scsi0'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
+ </controller>
+ <controller type='usb' index='0'>
+ <alias name='usb'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
+ </controller>
+ <controller type='pci' index='0' model='pci-root'>
+ <alias name='pci.0'/>
+ </controller>
+ <controller type='sata' index='0'>
+ <alias name='sata0'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
+ </controller>
+ <interface type='bridge'>
+ <source bridge='admin-InDeX'/>
+ <virtualport type='openvswitch'/>
+ <model type='virtio'/>
+ <alias name='net0'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
+ </interface>
+ <interface type='bridge'>
+ <source bridge='private-InDeX'/>
+ <virtualport type='openvswitch'/>
+ <model type='virtio'/>
+ <alias name='net1'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
+ </interface>
+ <interface type='bridge'>
+ <source bridge='public-InDeX'/>
+ <virtualport type='openvswitch'/>
+ <model type='virtio'/>
+ <alias name='net2'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
+ </interface>
+ <interface type='bridge'>
+ <source bridge='storage-InDeX'/>
+ <virtualport type='openvswitch'/>
+ <model type='virtio'/>
+ <alias name='net3'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
+ </interface>
+ <input type='mouse' bus='ps2'/>
+ <input type='keyboard' bus='ps2'/>
+ <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'>
+ <listen type='address' address='127.0.0.1'/>
+ </graphics>
+ <video>
+ <model type='cirrus' vram='16384' heads='1'/>
+ <alias name='video0'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
+ </video>
+ <memballoon model='virtio'>
+ <alias name='balloon0'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
+ </memballoon>
+ </devices>
+</domain>
+
diff --git a/odl-pipeline/templates/nodes/jenkins_slave.xml b/odl-pipeline/templates/nodes/jenkins_slave.xml
new file mode 100644
index 0000000..e295a5e
--- /dev/null
+++ b/odl-pipeline/templates/nodes/jenkins_slave.xml
@@ -0,0 +1,89 @@
+<domain type='kvm'>
+ <name>js-pod-NaMe</name>
+ <memory unit='GiB'>2</memory>
+ <currentMemory unit='GiB'>2</currentMemory>
+ <vcpu placement='static'>2</vcpu>
+ <resource>
+ <partition>/machine</partition>
+ </resource>
+ <os>
+ <type arch='x86_64'>hvm</type>
+ <boot dev='hd'/>
+ <boot dev='network'/>
+ <bootmenu enable='no'/>
+ <bios rebootTimeout='30000'/>
+ </os>
+ <clock offset='utc'/>
+ <on_poweroff>destroy</on_poweroff>
+ <on_reboot>restart</on_reboot>
+ <on_crash>restart</on_crash>
+ <devices>
+ <emulator>/usr/bin/kvm</emulator>
+ <disk type='file' device='disk'>
+ <driver name='qemu' type='qcow2'/>
+ <source file='DiSk/jenkins_slave-NaMe.qcow2'/>
+ <target dev='vda' bus='virtio'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
+ </disk>
+ <controller type='usb' index='0'>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
+ </controller>
+ <controller type='pci' index='0' model='pci-root'/>
+ <controller type='ide' index='0'>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
+ </controller>
+ <interface type='network'>
+ <source network='default'/>
+ <mac address='MaC'/>
+ <model type='e1000'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
+ </interface>
+ <interface type='network'>
+ <source network='br-admin-NaMe'/>
+ <model type='virtio'/>
+ <alias name='net0'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
+ </interface>
+ <interface type='network'>
+ <source network='br-private-NaMe'/>
+ <model type='virtio'/>
+ <alias name='net1'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
+ </interface>
+ <interface type='network'>
+ <source network='br-public-NaMe'/>
+ <model type='virtio'/>
+ <alias name='net2'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
+ </interface>
+ <interface type='network'>
+ <source network='br-storage-NaMe'/>
+ <model type='virtio'/>
+ <alias name='net3'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
+ </interface>
+ <serial type='pty'>
+ <target port='0'/>
+ </serial>
+ <console type='pty'>
+ <target type='serial' port='0'/>
+ </console>
+ <input type='mouse' bus='ps2'/>
+ <input type='keyboard' bus='ps2'/>
+ <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' keymap='en-us'>
+ <listen type='address' address='127.0.0.1'/>
+ </graphics>
+ <sound model='ich6'>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
+ </sound>
+ <video>
+ <model type='cirrus' vram='16384' heads='1'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
+ </video>
+ <memballoon model='virtio'>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
+ </memballoon>
+ </devices>
+ <seclabel type='dynamic' model='apparmor' relabel='yes'/>
+</domain>
+
diff --git a/odl-pipeline/templates/nodes/undercloud.xml b/odl-pipeline/templates/nodes/undercloud.xml
new file mode 100644
index 0000000..d37dcc5
--- /dev/null
+++ b/odl-pipeline/templates/nodes/undercloud.xml
@@ -0,0 +1,87 @@
+<domain type='kvm' id='66'>
+ <name>undercloud-NaMe</name>
+ <memory unit='KiB'>12582912</memory>
+ <currentMemory unit='KiB'>12582912</currentMemory>
+ <vcpu placement='static'>4</vcpu>
+ <resource>
+ <partition>/machine</partition>
+ </resource>
+ <os>
+ <type arch='x86_64'>hvm</type>
+ <boot dev='hd'/>
+ <bootmenu enable='no'/>
+ </os>
+ <features>
+ <acpi/>
+ <apic/>
+ <pae/>
+ </features>
+ <cpu mode='host-passthrough'/>
+ <clock offset='utc'/>
+ <on_poweroff>destroy</on_poweroff>
+ <on_reboot>restart</on_reboot>
+ <on_crash>restart</on_crash>
+ <devices>
+ <emulator>/usr/bin/kvm</emulator>
+ <disk type='file' device='disk'>
+ <driver name='qemu' type='qcow2' cache='unsafe'/>
+ <source file='/home/user/odl-pipeline/disks/apex-NaMe/undercloud.qcow2'/>
+ <backingStore/>
+ <target dev='sda' bus='sata'/>
+ <alias name='sata0-0-0'/>
+ <address type='drive' controller='0' bus='0' target='0' unit='0'/>
+ </disk>
+ <controller type='scsi' index='0' model='virtio-scsi'>
+ <alias name='scsi0'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
+ </controller>
+ <controller type='usb' index='0'>
+ <alias name='usb'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
+ </controller>
+ <controller type='pci' index='0' model='pci-root'>
+ <alias name='pci.0'/>
+ </controller>
+ <controller type='sata' index='0'>
+ <alias name='sata0'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
+ </controller>
+ <interface type='network'>
+ <mac address='00:9f:11:d7:b1:49'/>
+ <source network='default' bridge='virbr0'/>
+ <target dev='vnet0'/>
+ <model type='virtio'/>
+ <alias name='net0'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
+ </interface>
+ <interface type='bridge'>
+ <mac address='00:9f:11:d7:b1:4b'/>
+ <source network='admin_network' bridge='br-admin-NaMe'/>
+ <model type='virtio'/>
+ <alias name='net1'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
+ </interface>
+ <interface type='bridge'>
+ <mac address='00:9f:11:d7:b1:4d'/>
+ <source network='public_network' bridge='br-public-NaMe'/>
+ <model type='virtio'/>
+ <alias name='net2'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
+ </interface>
+ <input type='mouse' bus='ps2'/>
+ <input type='keyboard' bus='ps2'/>
+ <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'>
+ <listen type='address' address='127.0.0.1'/>
+ </graphics>
+ <video>
+ <model type='cirrus' vram='16384' heads='1'/>
+ <alias name='video0'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
+ </video>
+ <memballoon model='virtio'>
+ <alias name='balloon0'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
+ </memballoon>
+ </devices>
+</domain>
+