parapluie.rb 5.39 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
site :rennes do |site_uid|
  
  cluster :parapluie do |cluster_uid|
     model "HP ProLiant DL165 G7"
     created_at Time.parse("2010-11-02").httpdate

     40.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  => "5.0",
           :version  => nil,
           :kernel   => "2.6.26"
         })
         storage_devices [{
           :interface  => 'SATA',
           :size       => 244198584.KiB,
           :driver     => "ahci",
           :device     => "sda",
42
43
           :model      => lookup('parapluie', node_uid, 'block_devices', 'sda', 'model'),
           :rev        => lookup('parapluie', node_uid, 'block_devices', 'sda', 'rev'),
44
45
46
47
48
49
50
51
52
53
         }]
         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",
54
55
           :ip               => lookup('parapluie', node_uid, 'network_interfaces', 'bmc', 'ip'),
           :mac              => lookup('parapluie', node_uid, 'network_interfaces', 'bmc', 'mac')
56
57
58
59
60
61
62
         },
         {
           :interface        => 'Ethernet',
           :rate             => 1.G,
           :enabled          => false,
           :device           => "eth0",
           :driver           => "igb",
63
           :mac              => lookup('parapluie', node_uid, 'network_interfaces', 'eth0', 'mac')
64
65
66
67
68
69
70
         },
         {
           :interface        => 'Ethernet',
           :rate             => 1.G,
           :enabled          => true,
           :mountable        => true,
           :mounted          => true,
71
           :bridged 	     => true,
72
73
74
           :device           => "eth1",
           :driver           => "igb",
           :network_address  => "#{node_uid}.#{site_uid}.grid5000.fr",
75
76
77
78
           :ip               => lookup('parapluie', node_uid, 'network_interfaces', 'eth1', 'ip'),
           :mac              => lookup('parapluie', node_uid, 'network_interfaces', 'eth1', 'mac'),
           :switch           => lookup('parapluie', node_uid, 'network_interfaces', 'eth1', 'switch_name'),
           :switch_port      => lookup('parapluie', node_uid, 'network_interfaces', 'eth1', 'switch_port'),
79
80
           :vendor           => "Intel",
           :version          => "82576"
81
82
83
84
85
86
87
         },
         {
           :interface        => 'Ethernet',
           :rate             => 1.G,
           :enabled          => false,
           :device           => "eth2",
           :driver           => "igb",
88
           :mac              => lookup('parapluie', node_uid, 'network_interfaces', 'eth2', 'mac')
89
90
91
92
93
94
95
         },
         {
           :interface        => 'Ethernet',
           :rate             => 1.G,
           :enabled          => false,
           :device           => "eth3",
           :driver           => "igb",
96
           :mac              => lookup('parapluie', node_uid, 'network_interfaces', 'eth3', 'mac')
97
98
99
100
101
102
103
104
105
106
107
108
         },
         {
           :interface        => 'Infiniband',
           :rate             => 10.G,
           :enabled          => true,
           :mountable        => true,
           :mounted          => true,
           :device           => "ib0",
           :driver           => "mlx4_core",
           :vendor           => "Mellanox",
           :version          => "MT25418",
           :network_address  => "#{node_uid}-ib0.#{site_uid}.grid5000.fr",
109
110
           :ip               => lookup('parapluie', node_uid, 'network_interfaces', 'ib0', 'ip'),
           :mac              => lookup('parapluie', node_uid, 'network_interfaces', 'ib0', 'guid')
111
112
113
114
115
116
117
118
119
         },
         {
           :interface        => 'Infiniband',
           :rate             => 10.G,
           :enabled          => false,
           :device           => "ib1",
           :driver           => "mlx4_core",
           :vendor           => "Mellanox",
           :version          => "MT25418",
120
           :mac              => lookup('parapluie', node_uid, 'network_interfaces', 'ib1', 'guid')
121
122
         }]
         bios({
123
124
125
           :version      => lookup('parapluie', node_uid, 'bios', 'version'),
           :vendor       => lookup('parapluie', node_uid, 'bios', 'vendor'),
           :release_date => lookup('parapluie', node_uid, 'bios', 'release_date')
126
         })
127
128
129
          monitoring({
            :temperature  => true
          })
130
         chassis({:serial_number => lookup('parapluie', node_uid, 'chassis', 'serial_number')})
131
132
133
134
135
       end
     end

   end
  
136
end