grenoble-edel.rb 4.28 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
site :grenoble do |site_uid|

  cluster :edel do |cluster_uid|
    model "Bull bullx B500 compute blades"
    created_at Time.parse("2008-10-03").httpdate

    72.times do |i|
      node "#{cluster_uid}-#{i+1}" do |node_uid|
        supported_job_types({:deploy => true, :besteffort => true, :virtual => "ivt"})
        architecture({
          :smp_size => 2,
          :smt_size => 8,
          :platform_type => "x86_64"
          })
        processor({
          :vendor => "Intel",
          :model => "Intel Xeon",
          :version => "E5520",
          :clock_speed => 2.27.G,
          :instruction_set => "",
          :other_description => "",
          :cache_l1 => nil,
          :cache_l1i => nil,
          :cache_l1d => nil,
          :cache_l2 => nil
        })
        main_memory({
          :ram_size => 24.GiB, # bytes
          :virtual_size => nil
        })
        operating_system({
          :name => "Debian",
          :release => "Squeeze",
          :version => "6.0",
          :kernel => "2.6.32"
        })
        storage_devices [{
          :interface => 'SATA',
          :size => 60.GB,
          :driver => "ahci",
          :model => lookup('grenoble-edel', node_uid, 'block_devices', 'sda', 'model')
        }]
        network_adapters [{
          :interface => 'InfiniBand',
          :rate => 40.G,
          :enabled => true,
          :device => "ib0",
          :mounted => true,
          :mountable => true,
          :management => false,
          :vendor => 'Mellanox',
          :version => "MT26428 ConnectX IB QDR, PCIe 2.0 5.0GT/s (rev a0)",
          :driver => "mlx4_core",
          :network_address => "#{node_uid}-ib0.#{site_uid}.grid5000.fr",
          :ip => lookup('grenoble-edel', node_uid, 'network_interfaces', 'ib0', 'ip'),
          :guid => lookup('grenoble-edel', node_uid, 'network_interfaces', 'ib0', 'guid')
        },
        {
          :interface => 'InfiniBand',
          :rate => 40.G,
          :enabled => false,
          :device => "ib1",
          :mounted => false,
          :mountable => false,
          :management => false,
          :vendor => 'Mellanox',
          :version => "MT26428 ConnectX IB QDR, PCIe 2.0 5.0GT/s (rev a0)",
          :driver => "mlx4_core",
          :guid => lookup('grenoble-edel', node_uid, 'network_interfaces', 'ib1', 'guid')
        },
        {
          :interface => 'Ethernet',
          :rate => 1.G,
          :enabled => true,
          :device => "eth0",
          :mounted => true,
          :mountable => true,
          :management => false,
          :network_address => "#{node_uid}-eth0.#{site_uid}.grid5000.fr",
          :ip => lookup('grenoble-edel', node_uid, 'network_interfaces', 'eth0', 'ip'),
          :mac => lookup('grenoble-edel', node_uid, 'network_interfaces', 'eth0', 'mac'),
          :vendor => "Intel",
          :version => "82576 Gigabit Network Connection",
          :driver => "igb"
        },
        {
          :interface => 'Ethernet',
          :rate => 1.G,
          :device => "eth1",
          :enabled => false,
          :mounted => false,
          :mountable => false,
          :management => false,
          :vendor => "Intel",
          :version => "82576 Gigabit Network Connection",
          :mac => lookup('grenoble-edel', node_uid, 'network_interfaces', 'eth1', 'mac')
        },
        {
          :interface => 'Ethernet',
          :rate => 100.M,
          :enabled => true,
          :mounted => false,
          :mountable => false,
          :management => true,
          :network_address => "#{node_uid}-bmc.#{site_uid}.grid5000.fr",
          :ip => lookup('grenoble-edel', node_uid, 'network_interfaces', 'bmc', 'ip'),
          :mac => lookup('grenoble-edel', node_uid, 'network_interfaces', 'bmc', 'mac'),
          :vendor => "Unknown",
          :version => "1.7"
        }]
111 112 113 114 115 116 117 118 119
        bios({
          :version      => lookup('grenoble-edel', node_uid, 'bios', 'version'),
          :vendor       => lookup('grenoble-edel', node_uid, 'bios', 'vendor'),
          :release_date => lookup('grenoble-edel', node_uid, 'bios', 'release_date')
        })
        chassis({
          :serial       => lookup('grenoble-edel', node_uid, 'chassis', 'serial_number'),
          :name         => lookup('grenoble-edel', node_uid, 'chassis', 'product_name')
        })
120 121 122 123 124
      end
    end
  end

end