orion.rb 11.1 KB
Newer Older
Simon Delamare's avatar
Simon Delamare committed
1
2
3
4
5
site :lyon do |site_uid|

  cluster :orion do |cluster_uid|
    model "Dell R720"
    created_at Time.parse("2012-09-14 12:00 GMT").httpdate
6
    kavlan true
7

Simon Delamare's avatar
Simon Delamare committed
8
9
    4.times do |i|
      node "#{cluster_uid}-#{i+1}" do |node_uid|
10

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

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

Simon Delamare's avatar
Simon Delamare committed
22
        architecture({
23
24
25
          :smp_size       => lookup('orion_generated', node_uid, 'architecture', 'smp_size'),
          :smt_size       => lookup('orion_generated', node_uid, 'architecture', 'smt_size'),
          :platform_type  => lookup('orion_generated', node_uid, 'architecture', 'platform_type')
Simon Delamare's avatar
Simon Delamare committed
26
        })
27

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

Simon Delamare's avatar
Simon Delamare committed
42
        main_memory({
43
          :ram_size     => lookup('orion_generated', node_uid, 'main_memory', 'ram_size'),
Simon Delamare's avatar
Simon Delamare committed
44
45
          :virtual_size => nil
        })
46

Simon Delamare's avatar
Simon Delamare committed
47
        operating_system({
48
          :name     => lookup('orion_generated', node_uid, 'operating_system', 'name'),
49
          :release  => "Squeeze",
50
51
          :version  => lookup('orion_generated', node_uid, 'operating_system', 'version'),
          :kernel   => lookup('orion_generated', node_uid, 'operating_system', 'kernel')
Simon Delamare's avatar
Simon Delamare committed
52
        })
53

Simon Delamare's avatar
Simon Delamare committed
54
        storage_devices [{
55
          :interface  => 'SCSI',
56
          :size       => lookup('orion_generated', node_uid, 'block_devices', 'sda', 'size'),
57
          :driver     => "megaraid_sas",
58
59
60
61
          :device     => lookup('orion_generated', node_uid, 'block_devices', 'sda', 'device'),
          :model      => lookup('orion_generated', node_uid, 'block_devices', 'sda', 'model'),
          :vendor     => lookup('orion_generated', node_uid, 'block_devices', 'sda', 'vendor'),
          :rev        => lookup('orion_generated', node_uid, 'block_devices', 'sda', 'rev')
Simon Delamare's avatar
Simon Delamare committed
62
        }]
63

Simon Delamare's avatar
Simon Delamare committed
64
        network_adapters [{
65
66
67
68
69
70
          :interface        => lookup('orion_generated', node_uid, 'network_interfaces', 'eth0', 'interface'),
          :rate             => lookup('orion_generated', node_uid, 'network_interfaces', 'eth0', 'rate'),
          :enabled          => lookup('orion_generated', node_uid, 'network_interfaces', 'eth0', 'enabled'),
          :management       => lookup('orion_generated', node_uid, 'network_interfaces', 'eth0', 'management'),
          :mountable        => lookup('orion_generated', node_uid, 'network_interfaces', 'eth0', 'mountable'),
          :mounted          => lookup('orion_generated', node_uid, 'network_interfaces', 'eth0', 'mounted'),
71
72
73
74
          :bridged          => true,
          :device           => "eth0",
          :vendor           => 'Intel',
          :model            => 'Intel X520 DP 10Gb DA/SFP+ Server Adapter',
75
          :driver           => lookup('orion_generated', node_uid, 'network_interfaces', 'eth0', 'driver'),
Simon Delamare's avatar
Simon Delamare committed
76
          :network_address  => "#{node_uid}.#{site_uid}.grid5000.fr",
77
78
          :ip               => lookup('orion_generated', node_uid, 'network_interfaces', 'eth0', 'ip'),
          :ip6              => lookup('orion_generated', node_uid, 'network_interfaces', 'eth0', 'ip6'),
79
          :switch           => "force10",
80
81
          :switch_port      => lookup('orion_generated', node_uid, 'network_interfaces', 'eth0', 'switch_port'),
          :mac              => lookup('orion_generated', node_uid, 'network_interfaces', 'eth0', 'mac')
Simon Delamare's avatar
Simon Delamare committed
82
83
        },
        {
84
          :interface        => lookup('orion_generated', node_uid, 'network_interfaces', 'eth1', 'interface'),
85
          :rate             => 1.G,
86
87
88
89
          :enabled          => lookup('orion_generated', node_uid, 'network_interfaces', 'eth1', 'enabled'),
          :management       => lookup('orion_generated', node_uid, 'network_interfaces', 'eth1', 'management'),
          :mountable        => lookup('orion_generated', node_uid, 'network_interfaces', 'eth1', 'mountable'),
          :mounted          => lookup('orion_generated', node_uid, 'network_interfaces', 'eth1', 'mounted'),
90
91
92
93
          :device           => "eth1",
          :bridged          => false,
          :vendor           => 'Intel',
          :model            => 'Intel X520 DP 10Gb DA/SFP+ Server Adapter',
94
95
          :driver           => lookup('orion_generated', node_uid, 'network_interfaces', 'eth1', 'driver'),
          :mac              => lookup('orion_generated', node_uid, 'network_interfaces', 'eth1', 'mac')
Simon Delamare's avatar
Simon Delamare committed
96
97
        },
        {
98
          :interface        => lookup('orion_generated', node_uid, 'network_interfaces', 'eth2', 'interface'),
99
          :rate             => 1.G,
100
101
102
103
          :enabled          => lookup('orion_generated', node_uid, 'network_interfaces', 'eth2', 'enabled'),
          :management       => lookup('orion_generated', node_uid, 'network_interfaces', 'eth2', 'management'),
          :mountable        => lookup('orion_generated', node_uid, 'network_interfaces', 'eth2', 'mountable'),
          :mounted          => lookup('orion_generated', node_uid, 'network_interfaces', 'eth2', 'mounted'),
104
105
106
107
          :device           => "eth2",
          :bridged          => false,
          :vendor           => 'Intel',
          :model            => 'Intel Ethernet I350 QP 1Gb',
108
109
          :driver           => lookup('orion_generated', node_uid, 'network_interfaces', 'eth2', 'driver'),
          :mac              => lookup('orion_generated', node_uid, 'network_interfaces', 'eth2', 'mac')
Simon Delamare's avatar
Simon Delamare committed
110
111
        },
        {
112
          :interface        => lookup('orion_generated', node_uid, 'network_interfaces', 'eth3', 'interface'),
113
          :rate             => 1.G,
114
115
116
117
          :enabled          => lookup('orion_generated', node_uid, 'network_interfaces', 'eth3', 'enabled'),
          :management       => lookup('orion_generated', node_uid, 'network_interfaces', 'eth3', 'management'),
          :mountable        => lookup('orion_generated', node_uid, 'network_interfaces', 'eth3', 'mountable'),
          :mounted          => lookup('orion_generated', node_uid, 'network_interfaces', 'eth3', 'mounted'),
118
119
120
121
          :device           => "eth3",
          :bridged          => false,
          :vendor           => 'Intel',
          :model            => 'Intel Ethernet I350 QP 1Gb',
122
123
          :driver           => lookup('orion_generated', node_uid, 'network_interfaces', 'eth3', 'driver'),
          :mac              => lookup('orion_generated', node_uid, 'network_interfaces', 'eth3', 'mac')
Simon Delamare's avatar
Simon Delamare committed
124
125
        },
        {
126
          :interface        => lookup('orion_generated', node_uid, 'network_interfaces', 'eth4', 'interface'),
127
          :rate             => 1.G,
128
129
130
131
          :enabled          => lookup('orion_generated', node_uid, 'network_interfaces', 'eth4', 'enabled'),
          :management       => lookup('orion_generated', node_uid, 'network_interfaces', 'eth4', 'management'),
          :mountable        => lookup('orion_generated', node_uid, 'network_interfaces', 'eth4', 'mountable'),
          :mounted          => lookup('orion_generated', node_uid, 'network_interfaces', 'eth4', 'mounted'),
132
133
134
135
          :device           => "eth4",
          :bridged          => false,
          :vendor           => 'Intel',
          :model            => 'Intel Ethernet I350 QP 1Gb',
136
137
          :driver           => lookup('orion_generated', node_uid, 'network_interfaces', 'eth4', 'driver'),
          :mac              => lookup('orion_generated', node_uid, 'network_interfaces', 'eth4', 'mac')
Simon Delamare's avatar
Simon Delamare committed
138
139
        },
        {
140
          :interface        => lookup('orion_generated', node_uid, 'network_interfaces', 'eth5', 'interface'),
141
          :rate             => 1.G,
142
143
144
145
          :enabled          => lookup('orion_generated', node_uid, 'network_interfaces', 'eth5', 'enabled'),
          :management       => lookup('orion_generated', node_uid, 'network_interfaces', 'eth5', 'management'),
          :mountable        => lookup('orion_generated', node_uid, 'network_interfaces', 'eth5', 'mountable'),
          :mounted          => lookup('orion_generated', node_uid, 'network_interfaces', 'eth5', 'mounted'),
146
147
148
149
          :device           => "eth5",
          :bridged          => false,
          :vendor           => 'Intel',
          :model            => 'Intel Ethernet I350 QP 1Gb',
150
151
          :driver           => lookup('orion_generated', node_uid, 'network_interfaces', 'eth5', 'driver'),
          :mac              => lookup('orion_generated', node_uid, 'network_interfaces', 'eth5', 'mac')
152
153
154
155
156
        },
        {
          :interface            => 'Ethernet',
          :rate                 => 1.G,
          :network_address      => "#{node_uid}-bmc.#{site_uid}.grid5000.fr",
157
158
          :ip                   => lookup('orion_generated', node_uid, 'network_interfaces', 'bmc', 'ip'),
          :mac                  => lookup('orion_generated', node_uid, 'network_interfaces', 'bmc', 'mac'),
159
160
161
162
163
          :enabled              => true,
          :mounted              => false,
          :mountable            => false,
          :management           => true,
          :device               => "bmc"
Simon Delamare's avatar
Simon Delamare committed
164
        }]
165
166

        chassis({
167
168
169
          :serial       => lookup('orion_generated', node_uid, 'chassis', 'serial_number'),
          :name         => lookup('orion_generated', node_uid, 'chassis', 'product_name'),
          :manufacturer => lookup('orion_generated', node_uid, 'chassis', 'manufacturer')
170
171
172
        })

        bios({
173
174
175
          :version      => lookup('orion_generated', node_uid, 'bios', 'version'),
          :vendor       => lookup('orion_generated', node_uid, 'bios', 'vendor'),
          :release_date => lookup('orion_generated', node_uid, 'bios', 'release_date')
176
177
        })

Simon Delamare's avatar
Simon Delamare committed
178
179
180
        monitoring({
          :wattmeter  => true
        })
181

Simon Delamare's avatar
Simon Delamare committed
182
183
184
185
        sensors({
          :power => {
            :available => true,
            :via => {
186
187
            :api => { :metric => 'pdu' },
            :www => { :url => 'https://helpdesk.grid5000.fr/supervision/lyon/wattmetre/GetWatts.php' },
Simon Delamare's avatar
Simon Delamare committed
188
189
190
            }
          }
        })
Simon Delamare's avatar
Simon Delamare committed
191
192
193
        gpu({
          :gpu         =>  true,
          :gpu_count   =>  1,
194
          :gpu_vendor  =>  "Nvidia",
Simon Delamare's avatar
Simon Delamare committed
195
196
          :gpu_model   =>  "Tesla-M2075",
        })
197

Simon Delamare's avatar
Simon Delamare committed
198
199
      end
    end
200
  end # cluster orion
Simon Delamare's avatar
Simon Delamare committed
201
end