sagittaire.rb 2.68 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
site :lyon do |site_uid|

  cluster :sagittaire do |cluster_uid|
    model "Sun Fire V20z"
    created_at Time.parse("2006-07-01 12:00 GMT").httpdate
    79.times do |i|
      node "#{cluster_uid}-#{i+1}" do |node_uid|
        supported_job_types({:deploy => true, :besteffort => true, :virtual => false})
        architecture({
          :smp_size => 2,
          :smt_size => 2,
          :platform_type => "x86_64"
13
        })
14
15
16
17
18
19
20
21
22
23
24
25
        processor({
          :vendor => "AMD",
          :model => "AMD Opteron",
          :version => "250",
          :clock_speed => 2.4.G,
          :instruction_set => "",
          :other_description => "",
          :cache_l1 => nil,
          :cache_l1i => nil,
          :cache_l1d => nil,
          :cache_l2 => 1.MiB
        })
26
27
28
29
30
31
32
33
34
35
36
        if (i<69) then
          main_memory({
            :ram_size => 2.GiB, # bytes
            :virtual_size => nil
          })
        else
          main_memory({
            :ram_size => 16.GiB, # bytes
            :virtual_size => nil
          })
        end
37
38
39
40
41
42
        operating_system({
          :name => "Debian",
          :release => "6.0",
          :version => nil,
          :kernel => "2.6.32"
        })
43
44
45
46
47
48
49
50
51
52
        if (i<69) then
          storage_devices [
            {:interface => 'SCSI', :size => 73.GB, :driver => "mptspi"}
          ]
        else
          storage_devices [
            {:interface => 'SCSI', :size => 73.GB, :driver => "mptspi"},
            {:interface => 'SCSI', :size => 73.GB, :driver => "mptspi"}
          ]
        end
53
        network_adapters [{
54
55
          :interface => 'Ethernet',
          :rate => 1.G,
56
          :mac => lookup('sagittaire',"#{node_uid}",'network_interfaces','eth0','mac'),
57
58
59
60
61
62
63
          :vendor => 'Broadcom',
          :model => 'BCM5704',
          :enabled => true,
          :management => false,
          :mountable => true,
          :mounted => false,
          :driver => 'tg3',
64
          :ip => lookup('sagittaire',"#{node_uid}",'network_interfaces','eth0','ip'),
65
66
67
        },{
          :interface => 'Ethernet',
          :rate => 1.G,
68
          :mac => lookup('sagittaire',"#{node_uid}",'network_interfaces','eth1','mac'),
69
70
71
72
73
          :vendor => 'Broadcom',
          :model => 'BCM5704',
          :enabled => true,
          :management => false,
          :mountable => true,
74
          :bridged => true,
75
76
77
78
          :driver => 'tg3',
          :mounted => true,
          :network_address => "#{node_uid}.#{site_uid}.grid5000.fr",
          :device => 'eth1',
79
          :ip => lookup('sagittaire',"#{node_uid}",'network_interfaces','eth1','ip'),
80
81
          :switch => 'little-ego'
        }]
82
83
84
        monitoring({
          :wattmeter  => true
        })
85
86
87
88
      end
    end
  end # cluster sagittaire
end