Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

genepi.rb 8.5 KB
Newer Older
1 2 3 4 5
site :grenoble do |site_uid|

  cluster :genepi do |cluster_uid|
    model "Bull R422-E1"
    created_at Time.parse("2008-10-01").httpdate
Elodie Bertoncello's avatar
Elodie Bertoncello committed
6
    kavlan true
Pascal Morillon's avatar
Pascal Morillon committed
7
    production true
8 9 10

    34.times do |i|
      node "#{cluster_uid}-#{i+1}" do |node_uid|
11

12
        performance({
13 14 15
          :core_flops => 7651000000,
          :node_flops => 49650000000
        })
16 17 18 19

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

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

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

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

48
        operating_system({
49 50 51 52
          :name     => "debian",
          :release  => "Wheezy",
          :version  => "7",
          :kernel   => "3.2.0-4-amd64"
53
        })
54

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

66
        network_adapters [{
67
          :interface        => lookup(node_uid, node_uid, 'network_interfaces', 'eth0', 'interface'),
68
          :rate             => 1.G,
69 70 71 72
          :enabled          => lookup(node_uid, node_uid, 'network_interfaces', 'eth0', 'enabled'),
          :management       => lookup(node_uid, node_uid, 'network_interfaces', 'eth0', 'management'),
          :mountable        => lookup(node_uid, node_uid, 'network_interfaces', 'eth0', 'mountable'),
          :mounted          => lookup(node_uid, node_uid, 'network_interfaces', 'eth0', 'mounted'),
73
          :bridged          => false,
74 75 76
          :device           => "eth0",
          :vendor           => 'Intel',
          :version          => "Intel 80003ES2LAN Gigabit Ethernet Controller (Copper) (rev 01)",
77 78
          :driver           => lookup(node_uid, node_uid, 'network_interfaces', 'eth0', 'driver'),
          :mac              => lookup(node_uid, node_uid, 'network_interfaces', 'eth0', 'mac')
79 80
        },
        {
81
          :interface        => lookup(node_uid, node_uid, 'network_interfaces', 'eth1', 'interface'),
82
          :rate             => 1.G,
83 84 85 86
          :enabled          => lookup(node_uid, node_uid, 'network_interfaces', 'eth1', 'enabled'),
          :management       => lookup(node_uid, node_uid, 'network_interfaces', 'eth1', 'management'),
          :mountable        => lookup(node_uid, node_uid, 'network_interfaces', 'eth1', 'mountable'),
          :mounted          => lookup(node_uid, node_uid, 'network_interfaces', 'eth1', 'mounted'),
87
          :bridged          => true,
88 89 90
          :device           => "eth1",
          :vendor           => 'Intel',
          :version          => "Intel 80003ES2LAN Gigabit Ethernet Controller (Copper) (rev 01)",
91 92
          :ip               => lookup(node_uid, node_uid, 'network_interfaces', 'eth1', 'ip'),
          :ip6              => lookup(node_uid, node_uid, 'network_interfaces', 'eth1', 'ip6'),
93
          :network_address  => "#{node_uid}.#{site_uid}.grid5000.fr",
94 95
          :switch           => net_switch_lookup('grenoble', 'genepi', node_uid, 'eth1'),
          :switch_port      => net_port_lookup('grenoble', 'genepi', node_uid, 'eth1'),
96 97
          :driver           => lookup(node_uid, node_uid, 'network_interfaces', 'eth1', 'driver'),
          :mac              => lookup(node_uid, node_uid, 'network_interfaces', 'eth1', 'mac')
98 99
        },
        {
100 101
          :interface        => lookup(node_uid, node_uid, 'network_interfaces', 'ib0', 'interface'),
          :rate             => lookup(node_uid, node_uid, 'network_interfaces', 'ib0', 'rate'),
102
          :device           => "ib0",
103 104 105 106
          :enabled          => lookup(node_uid, node_uid, 'network_interfaces', 'ib0', 'enabled'),
          :management       => lookup(node_uid, node_uid, 'network_interfaces', 'ib0', 'management'),
          :mountable        => lookup(node_uid, node_uid, 'network_interfaces', 'ib0', 'mountable'),
          :mounted          => lookup(node_uid, node_uid, 'network_interfaces', 'ib0', 'mounted'),
107
          :vendor           => 'Mellanox',
108 109
          :version          => lookup(node_uid, node_uid, 'network_interfaces', 'ib0', 'version'),
          :driver           => lookup(node_uid, node_uid, 'network_interfaces', 'ib0', 'driver'),
110
          :network_address  => "#{node_uid}-ib0.#{site_uid}.grid5000.fr",
111 112 113
          :ip               => lookup(node_uid, node_uid, 'network_interfaces', 'ib0', 'ip'),
          :ip6              => lookup(node_uid, node_uid, 'network_interfaces', 'ib0', 'ip6'),
          :guid             => lookup(node_uid, node_uid, 'network_interfaces', 'ib0', 'guid')
114 115
        },
        {
116
          :interface        => lookup(node_uid, node_uid, 'network_interfaces', 'ib1', 'interface'),
117
          :rate             => 40.G,
118
          :rate             => lookup(node_uid, node_uid, 'network_interfaces', 'ib1', 'rate'),
119
          :device           => "ib1",
120 121 122 123
          :enabled          => lookup(node_uid, node_uid, 'network_interfaces', 'ib1', 'enabled'),
          :management       => lookup(node_uid, node_uid, 'network_interfaces', 'ib1', 'management'),
          :mountable        => lookup(node_uid, node_uid, 'network_interfaces', 'ib1', 'mountable'),
          :mounted          => lookup(node_uid, node_uid, 'network_interfaces', 'ib1', 'mounted'),
124
          :vendor           => 'Mellanox',
125 126 127
          :version          => lookup(node_uid, node_uid, 'network_interfaces', 'ib1', 'version'),
          :driver           => lookup(node_uid, node_uid, 'network_interfaces', 'ib1', 'driver'),
          :guid             => lookup(node_uid, node_uid, 'network_interfaces', 'ib1', 'guid')
128 129
        },
        {
130 131 132 133 134 135 136 137
          :interface        => 'Ethernet',
          :rate             => 1.G,
          :enabled          => true,
          :management       => true,
          :mountable        => false,
          :mounted          => false,
          :device           => "bmc",
          :network_address  => "#{node_uid}-bmc.#{site_uid}.grid5000.fr",
138 139
          :ip               => lookup(node_uid, node_uid, 'network_interfaces', 'bmc', 'ip'),
          :mac              => lookup(node_uid, node_uid, 'network_interfaces', 'bmc', 'mac'),
140 141 142
          :vendor => "Peppercon AG (10437)",
          :version => "1.50"
        }]
143 144

        chassis({
145 146 147
          :serial       => lookup(node_uid, node_uid, 'chassis', 'serial_number'),
          :name         => lookup(node_uid, node_uid, 'chassis', 'product_name'),
          :manufacturer => lookup(node_uid, node_uid, 'chassis', 'manufacturer')
148 149
        })

150
        bios({
151 152 153
          :version      => lookup(node_uid, node_uid, 'bios', 'version'),
          :vendor       => lookup(node_uid, node_uid, 'bios', 'vendor'),
          :release_date => lookup(node_uid, node_uid, 'bios', 'release_date')
154
        })
155 156 157

        gpu({
          :gpu  => false
158
        })
159

160 161
        monitoring({
          :wattmeter  => false
162
        })
163

164 165 166 167
      end
    end
  end
end