adonis.rb 9.09 KB
Newer Older
1 2
site :grenoble do |site_uid|

3 4
  cluster :adonis do |cluster_uid|
    model "Bull R422-E2 dual mobo + Tesla S1070"
5
    created_at Time.parse("2010-09-02").httpdate
Elodie Bertoncello's avatar
Elodie Bertoncello committed
6
    kavlan true
7

8 9
    10.times do |i|
      node "#{cluster_uid}-#{i+1}" do |node_uid|
10

11
        performance({
12 13 14 15 16 17 18
        :core_flops => 7139000000,
        :node_flops => 55510000000
      })

        supported_job_types({
          :deploy       => true,
          :besteffort   => true,
19
          :virtual      => lookup('adonis_generated', node_uid, 'supported_job_types', 'virtual')
20
        })
21

22
        architecture({
23 24 25
          :smp_size       => lookup('adonis_generated', node_uid, 'architecture', 'smp_size'),
          :smt_size       => lookup('adonis_generated', node_uid, 'architecture', 'smt_size'),
          :platform_type  => lookup('adonis_generated', node_uid, 'architecture', 'platform_type')
26
        })
27

28
        processor({
29 30 31 32 33 34 35 36 37 38 39
          :vendor             => lookup('adonis_generated', node_uid, 'processor', 'vendor'),
          :model              => lookup('adonis_generated', node_uid, 'processor', 'model'),
          :version            => lookup('adonis_generated', node_uid, 'processor', 'version'),
          :clock_speed        => lookup('adonis_generated', node_uid, 'processor', 'clock_speed'),
          :instruction_set    => lookup('adonis_generated', node_uid, 'processor', 'instruction_set'),
          :other_description  => lookup('adonis_generated', node_uid, 'processor', 'other_description'),
          :cache_l1           => lookup('adonis_generated', node_uid, 'processor', 'cache_l1'),
          :cache_l1i          => lookup('adonis_generated', node_uid, 'processor', 'cache_l1i'),
          :cache_l1d          => lookup('adonis_generated', node_uid, 'processor', 'cache_l1d'),
          :cache_l2           => lookup('adonis_generated', node_uid, 'processor', 'cache_l2'),
          :cache_l3           => lookup('adonis_generated', node_uid, 'processor', 'cache_l3')
40
        })
41

42
        main_memory({
43
          :ram_size     => lookup('adonis_generated', node_uid, 'main_memory', 'ram_size'),
44 45
          :virtual_size => nil
        })
46

47
        operating_system({
48
          :name     => lookup('adonis_generated', node_uid, 'operating_system', 'name'),
49
          :release  => "Squeeze",
50 51
          :version  => lookup('adonis_generated', node_uid, 'operating_system', 'version'),
          :kernel   => lookup('adonis_generated', node_uid, 'operating_system', 'kernel')
52
        })
53

54
        storage_devices [{
55
          :interface  => 'SATA',
56
          :size       => lookup('adonis_generated', node_uid, 'block_devices', 'sda', 'size'),
57
          :driver     => "ahci",
58 59 60 61
          :device     => lookup('adonis_generated', node_uid, 'block_devices', 'sda', 'device'),
          :model      => lookup('adonis_generated', node_uid, 'block_devices', 'sda', 'model'),
          :vendor     => lookup('adonis_generated', node_uid, 'block_devices', 'sda', 'vendor'),
          :rev        => lookup('adonis_generated', node_uid, 'block_devices', 'sda', 'rev')
62
        }]
63

64
        network_adapters [{
65 66 67 68 69 70
          :interface        => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth0', 'interface'),
          :rate             => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth0', 'rate'),
          :enabled          => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth0', 'enabled'),
          :management       => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth0', 'management'),
          :mountable        => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth0', 'mountable'),
          :mounted          => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth0', 'mounted'),
71 72 73 74
          :bridged          => true,
          :device           => "eth0",
          :vendor           => 'Intel',
          :version          => "Device 10c9 (rev 01)",
75
          :driver           => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth0', 'driver'),
76
          :network_address  => "#{node_uid}.#{site_uid}.grid5000.fr",
77 78 79 80 81
          :ip               => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth0', 'ip'),
          :ip6              => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth0', 'ip6'),
          :switch           => lookup('adonis_manual', node_uid, 'network_interfaces', 'eth0', 'switch_name'),
          :switch_port      => lookup('adonis_manual', node_uid, 'network_interfaces', 'eth0', 'switch_port'),
          :mac              => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth0', 'mac')
82 83
        },
        {
84
          :interface        => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth1', 'interface'),
85
          :rate             => 1.G,
86 87 88 89
          :enabled          => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth1', 'enabled'),
          :management       => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth1', 'management'),
          :mountable        => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth1', 'mountable'),
          :mounted          => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth1', 'mounted'),
90 91 92 93
          :bridged          => false,
          :device           => "eth1",
          :vendor           => 'Intel',
          :version          => "Device 10c9 (rev 01)",
94 95
          :driver           => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth1', 'driver'),
          :mac              => lookup('adonis_generated', node_uid, 'network_interfaces', 'eth1', 'mac')
96 97
        },
        {
98 99
          :interface        => lookup('adonis_generated', node_uid, 'network_interfaces', 'ib0', 'interface'),
          :rate             => lookup('adonis_generated', node_uid, 'network_interfaces', 'ib0', 'rate'),
100
          :device           => "ib0",
101 102 103 104
          :enabled          => lookup('adonis_generated', node_uid, 'network_interfaces', 'ib0', 'enabled'),
          :management       => lookup('adonis_generated', node_uid, 'network_interfaces', 'ib0', 'management'),
          :mountable        => lookup('adonis_generated', node_uid, 'network_interfaces', 'ib0', 'mountable'),
          :mounted          => lookup('adonis_generated', node_uid, 'network_interfaces', 'ib0', 'mounted'),
105
          :vendor           => 'Mellanox',
106 107
          :version          => lookup('adonis_generated', node_uid, 'network_interfaces', 'ib0', 'version'),
          :driver           => lookup('adonis_generated', node_uid, 'network_interfaces', 'ib0', 'driver'),
108
          :network_address  => "#{node_uid}-ib0.#{site_uid}.grid5000.fr",
109 110 111
          :ip               => lookup('adonis_generated', node_uid, 'network_interfaces', 'ib0', 'ip'),
          :ip6              => lookup('adonis_generated', node_uid, 'network_interfaces', 'ib0', 'ip6'),
          :guid             => lookup('adonis_generated', node_uid, 'network_interfaces', 'ib0', 'guid')
112 113
        },
        {
114 115 116 117 118 119 120 121
          :interface        => 'Ethernet',
          :rate             => 1.G,
          :enabled          => true,
          :management       => true,
          :mountable        => false,
          :mounted          => false,
          :device           => "bmc",
          :network_address  => "#{node_uid}-bmc.#{site_uid}.grid5000.fr",
122
          :ip               => lookup('adonis_generated', node_uid, 'network_interfaces', 'bmc', 'ip'),
123 124
          :vendor           => 'Super Micro Computer Inc.',
          :version          => "1.15",
125
          :mac              => lookup('adonis_generated', node_uid, 'network_interfaces', 'bmc', 'mac')
126
        }]
127 128

        chassis({
129 130 131
          :serial       => lookup('adonis_generated', node_uid, 'chassis', 'serial_number'),
          :name         => lookup('adonis_generated', node_uid, 'chassis', 'product_name'),
          :manufacturer => lookup('adonis_generated', node_uid, 'chassis', 'manufacturer')
132 133
        })

134
        bios({
135 136 137
          :version      => lookup('adonis_generated', node_uid, 'bios', 'version'),
          :vendor       => lookup('adonis_generated', node_uid, 'bios', 'vendor'),
          :release_date => lookup('adonis_generated', node_uid, 'bios', 'release_date')
138
        })
139

Vidal WATAT's avatar
Vidal WATAT committed
140
        gpu({
141
          :gpu         => true,
142
          :gpu_count   =>  lookup('adonis_manual', node_uid, 'gpu', 'gpu_count'),
143
          :gpu_vendor  =>  lookup('adonis_manual', node_uid, 'gpu', 'gpu_vendor'),
144
          :gpu_model   =>  lookup('adonis_manual', node_uid, 'gpu', 'gpu_model'),
145 146
        })

147 148 149 150 151
        sensors({
          :power => {
            :available => true,
            :via => {
              :pdu  => [
152 153 154 155
                [ { :measure 	=>  lookup('adonis_manual', node_uid, 'sensors', 'measure1'),
                    :uid			=>  lookup('adonis_manual', node_uid, 'sensors', 'pdu')},
                  { :measure	=> 	lookup('adonis_manual', node_uid, 'sensors', 'measure2'),
                    :uid			=>  lookup('adonis_manual', node_uid, 'sensors', 'pdu')}
156
                ],
157 158
                [ { :measure	=> 	"global",
                    :uid			=>	lookup('adonis_manual', node_uid, 'sensors', 'block')}
159 160 161 162
                ]
              ]
            }
          }
163
        })
164

165 166 167 168
      end
    end
  end
end