Commit 8bd5d94e authored by Sebastien Badia's avatar Sebastien Badia
Browse files

[admin,reims] Add switch position for eth0

parent 9e565b3e
site :reims do |site_uid|
cluster :stremi do |cluster_uid|
model "HP ProLiant DL165 G7"
created_at Time.parse("2011-04-18").httpdate
44.times do |i|
node "#{cluster_uid}-#{i+1}" do |node_uid|
supported_job_types({:deploy => true, :besteffort => true, :virtual => "amd-v"})
architecture({
:smp_size => 2,
:smt_size => 24,
:platform_type => "amd64"
})
processor({
:vendor => "AMD",
:model => "AMD Opteron",
:version => "6164 HE",
:clock_speed => 1.7.G,
:instruction_set => "",
:other_description => "",
:cache_l1 => nil,
:cache_l1i => nil,
:cache_l1d => nil,
:cache_l2 => nil
})
main_memory({
:ram_size => 48.GiB,
:virtual_size => nil
})
operating_system({
:name => "Debian",
:release => "6.0",
:version => nil,
:kernel => "2.6.32"
})
storage_devices [{
:interface => 'SATA',
:size => 250.GB,
:driver => "ahci",
:device => "sda"
}]
network_adapters [{
:interface => 'Ethernet',
:rate => 1.G,
:enabled => true,
:management => true,
:mountable => false,
:mounted => false,
:device => "bmc",
:network_address => "#{node_uid}-bmc.#{site_uid}.grid5000.fr",
:ip => lookup('reims-stremi', node_uid, 'network_interfaces', 'bmc', 'ip'),
:mac => lookup('reims-stremi', node_uid, 'network_interfaces', 'bmc', 'mac')
},
{
:interface => 'Ethernet',
:rate => 1.G,
:enabled => true,
:mountable => true,
:mounted => true,
:bridged => true,
:device => "eth0",
:driver => "igb",
:network_address => "#{node_uid}.#{site_uid}.grid5000.fr",
:ip => lookup('reims-stremi', node_uid, 'network_interfaces', 'eth0', 'ip'),
:mac => lookup('reims-stremi', node_uid, 'network_interfaces', 'eth0', 'mac'),
:switch => "gw",
:switch_port => lookup('reims-stremi', node_uid, 'network_interfaces', 'eth0', 'switch_port')
},
{
:interface => 'Ethernet',
:rate => 1.G,
:enabled => false,
:device => "eth1",
:driver => "igb",
:mac => lookup('reims-stremi', node_uid, 'network_interfaces', 'eth1', 'mac')
},
{
:interface => 'Ethernet',
:rate => 1.G,
:enabled => false,
:device => "eth2",
:driver => "igb",
:mac => lookup('reims-stremi', node_uid, 'network_interfaces', 'eth2', 'mac')
},
{
:interface => 'Ethernet',
:rate => 1.G,
:enabled => false,
:device => "eth3",
:driver => "igb",
:mac => lookup('reims-stremi', node_uid, 'network_interfaces', 'eth3', 'mac')
}]
end
end
end
end
stremi-1:
network_interfaces:
bmc:
stremi-1:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:16:d1
ip: 172.17.160.1
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/1
mac: d4:85:64:45:b5:96
ip: 172.16.160.1
eth1:
eth1:
mac: d4:85:64:45:b5:97
eth2:
eth2:
mac: d4:85:64:45:b5:7c
eth3:
eth3:
mac: d4:85:64:45:b5:7d
stremi-2:
network_interfaces:
bmc:
stremi-2:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:36:8b
ip: 172.17.160.2
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/2
mac: d4:85:64:45:07:94
ip: 172.16.160.2
eth1:
eth1:
mac: d4:85:64:45:07:95
eth2:
eth2:
mac: d4:85:64:45:07:82
eth3:
eth3:
mac: d4:85:64:45:07:83
stremi-3:
network_interfaces:
bmc:
stremi-3:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:46:2d
ip: 172.17.160.3
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/3
mac: d4:85:64:44:77:4a
ip: 172.16.160.3
eth1:
eth1:
mac: d4:85:64:44:77:4b
eth2:
eth2:
mac: d4:85:64:44:77:48
eth3:
eth3:
mac: d4:85:64:44:77:49
stremi-4:
network_interfaces:
bmc:
stremi-4:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:26:1a
ip: 172.17.160.4
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/4
mac: d4:85:64:45:c5:d4
ip: 172.16.160.4
eth1:
eth1:
mac: d4:85:64:45:c5:d5
eth2:
eth2:
mac: d4:85:64:45:c5:c8
eth3:
eth3:
mac: d4:85:64:45:c5:c9
stremi-5:
network_interfaces:
bmc:
stremi-5:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:26:40
ip: 172.17.160.5
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/5
mac: d4:85:64:45:d5:12
ip: 172.16.160.5
eth1:
eth1:
mac: d4:85:64:45:d5:13
eth2:
eth2:
mac: d4:85:64:45:d5:50
eth3:
eth3:
mac: d4:85:64:45:d5:51
stremi-6:
network_interfaces:
bmc:
stremi-6:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:36:ca
ip: 172.17.160.6
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/6
mac: d4:85:64:45:f5:26
ip: 172.16.160.6
eth1:
eth1:
mac: d4:85:64:45:f5:27
eth2:
eth2:
mac: d4:85:64:45:e5:f8
eth3:
eth3:
mac: d4:85:64:45:e5:f9
stremi-7:
network_interfaces:
bmc:
stremi-7:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:26:e5
ip: 172.17.160.7
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/7
mac: d4:85:64:45:95:4c
ip: 172.16.160.7
eth1:
eth1:
mac: d4:85:64:45:95:4d
eth2:
eth2:
mac: d4:85:64:45:95:4a
eth3:
eth3:
mac: d4:85:64:45:95:4b
stremi-8:
network_interfaces:
bmc:
stremi-8:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:26:64
ip: 172.17.160.8
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/8
mac: d4:85:64:45:65:de
ip: 172.16.160.8
eth1:
eth1:
mac: d4:85:64:45:65:df
eth2:
eth2:
mac: d4:85:64:45:65:82
eth3:
eth3:
mac: d4:85:64:45:65:83
stremi-9:
network_interfaces:
bmc:
stremi-9:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:26:b3
ip: 172.17.160.9
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/9
mac: d4:85:64:45:85:32
ip: 172.16.160.9
eth1:
eth1:
mac: d4:85:64:45:85:33
eth2:
eth2:
mac: d4:85:64:45:85:c0
eth3:
eth3:
mac: d4:85:64:45:85:c1
stremi-10:
network_interfaces:
bmc:
stremi-10:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:36:f1
ip: 172.17.160.10
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/10
mac: d4:85:64:45:d5:ca
ip: 172.16.160.10
eth1:
eth1:
mac: d4:85:64:45:d5:cb
eth2:
eth2:
mac: d4:85:64:45:d5:e2
eth3:
eth3:
mac: d4:85:64:45:d5:e3
stremi-11:
network_interfaces:
bmc:
stremi-11:
network_interfaces:
bmc:
mac: 1c:c1:de:7a:67:f0
ip: 172.17.160.11
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/11
mac: 1c:c1:de:eb:87:e4
ip: 172.16.160.11
eth1:
eth1:
mac: 1c:c1:de:eb:87:e5
eth2:
eth2:
mac: 1c:c1:de:eb:97:0a
eth3:
eth3:
mac: 1c:c1:de:eb:97:0b
stremi-12:
network_interfaces:
bmc:
stremi-12:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:26:c9
ip: 172.17.160.12
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/12
mac: d4:85:64:45:85:30
ip: 172.16.160.12
eth1:
eth1:
mac: d4:85:64:45:85:31
eth2:
eth2:
mac: d4:85:64:45:85:3c
eth3:
eth3:
mac: d4:85:64:45:85:3d
stremi-13:
network_interfaces:
bmc:
stremi-13:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:36:f6
ip: 172.17.160.13
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/13
mac: d4:85:64:45:e5:1c
ip: 172.16.160.13
eth1:
eth1:
mac: d4:85:64:45:e5:1d
eth2:
eth2:
mac: d4:85:64:45:d5:f8
eth3:
eth3:
mac: d4:85:64:45:d5:f9
stremi-14:
network_interfaces:
bmc:
stremi-14:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:36:57
ip: 172.17.160.14
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/14
mac: d4:85:64:45:07:b2
ip: 172.16.160.14
eth1:
eth1:
mac: d4:85:64:45:07:b3
eth2:
eth2:
mac: d4:85:64:45:07:b0
eth3:
eth3:
mac: d4:85:64:45:07:b1
stremi-15:
network_interfaces:
bmc:
stremi-15:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:26:67
ip: 172.17.160.15
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/15
mac: d4:85:64:45:65:08
ip: 172.16.160.15
eth1:
eth1:
mac: d4:85:64:45:65:09
eth2:
eth2:
mac: d4:85:64:45:65:74
eth3:
eth3:
mac: d4:85:64:45:65:75
stremi-16:
network_interfaces:
bmc:
stremi-16:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:16:fa
ip: 172.17.160.16
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/16
mac: d4:85:64:45:75:b2
ip: 172.16.160.16
eth1:
eth1:
mac: d4:85:64:45:75:b3
eth2:
eth2:
mac: d4:85:64:45:c5:c0
eth3:
eth3:
mac: d4:85:64:45:c5:c1
stremi-17:
network_interfaces:
bmc:
stremi-17:
network_interfaces:
bmc:
mac: 1c:c1:de:7a:f1:f0
ip: 172.17.160.17
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/17
mac: 1c:c1:de:6e:14:10
ip: 172.16.160.17
eth1:
eth1:
mac: 1c:c1:de:6e:14:11
eth2:
eth2:
mac: 1c:c1:de:6e:14:0e
eth3:
eth3:
mac: 1c:c1:de:6e:14:0f
stremi-18:
network_interfaces:
bmc:
stremi-18:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:36:7d
ip: 172.17.160.18
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/18
mac: d4:85:64:44:b7:9c
ip: 172.16.160.18
eth1:
eth1:
mac: d4:85:64:44:b7:9d
eth2:
eth2:
mac: d4:85:64:44:b7:a2
eth3:
eth3:
mac: d4:85:64:44:b7:a3
stremi-19:
network_interfaces:
bmc:
stremi-19:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:36:33
ip: 172.17.160.19
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/19
mac: d4:85:64:45:b5:6e
ip: 172.16.160.19
eth1:
eth1:
mac: d4:85:64:45:b5:6f
eth2:
eth2:
mac: d4:85:64:45:a5:fc
eth3:
eth3:
mac: d4:85:64:45:a5:fd
stremi-20:
network_interfaces:
bmc:
stremi-20:
network_interfaces:
bmc:
mac: 1c:c1:de:7a:87:41
ip: 172.17.160.20
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/20
mac: 1c:c1:de:eb:38:a2
ip: 172.16.160.20
eth1:
eth1:
mac: 1c:c1:de:eb:38:a3
eth2:
eth2:
mac: 1c:c1:de:eb:38:7a
eth3:
eth3:
mac: 1c:c1:de:eb:38:7b
stremi-21:
network_interfaces:
bmc:
stremi-21:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:46:05
ip: 172.17.160.21
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/21
mac: d4:85:64:45:d5:fe
ip: 172.16.160.21
eth1:
eth1:
mac: d4:85:64:45:d5:ff
eth2:
eth2:
mac: d4:85:64:45:d5:fc
eth3:
eth3:
mac: d4:85:64:45:d5:fd
stremi-22:
network_interfaces:
bmc:
stremi-22:
network_interfaces:
bmc:
mac: 1c:c1:de:7b:36:3e
ip: 172.17.160.22
eth0:
eth0:
switch_name: gw
switch_port: Unknown
switch_port: Gi0/22
mac: d4:85:64:45:f5:74
ip: 172.16.160.22
eth1:
eth1:
mac: d4:85:64:45:f5:75
eth2:
eth2:
mac: d4:85:64:45:f5:72
eth3:<