Skip to content

hpc-unibe-ch/puppet-infiniband

 
 

Repository files navigation

puppet-infiniband

Puppet Forge Build Status

Installs the InfiniBand software stack.

Support

  • CentOS 6 & 7 x86_64

Usage

infiniband

Standard usage to enable InfiniBand support

class { 'infiniband': }

Define a IBoIP interface

class { 'infiniband':
  interfaces  => {
    'ib0' => {'ipaddr' => '192.168.1.1', 'netmask' => '255.255.255.0'}
  }
}

Reference

http://treydock.github.io/puppet-infiniband/

Facts

has_infiniband

Determine if the system's hardware supports InfiniBand.

infiniband_fw_version

Reports the firmware version of the InfiniBand interface card.

NOTE: Only supports getting the value from the first interface card found.

infiniband_board_id

Returns the board_id (PSID) of the InfiniBand interface card.

NOTE: Only supports getting the value from the first interface card found.

infiniband_rate

Returns the rate of the InfiniBand interface card.

NOTE: Only supports getting the value from the first interface card found.

infiniband_hcas

Returns Array of HCAs:

[
  "mlx5_0",
  "mlx5_1",
  "mlx5_2",
  "mlx5_3"
]

infiniband_hca_board_id

Returns Hash of PSID / Board IDs for each HCA:

{
  mlx5_0 => "MT_0000000023",
  mlx5_1 => "MT_0000000023",
  mlx5_2 => "MT_0000000023",
  mlx5_3 => "MT_0000000023"
}

infiniband_hca_port_guids

Return Hash of HCA port GUIDs:

{
  mlx5_0 => {
    1 => "0x506b4b0300aaffcc"
  },
  mlx5_1 => {
    1 => "0x506b4b0300aaffcd"
  },
  mlx5_2 => {
    1 => "0x506b4b0300aaffc6"
  },
  mlx5_3 => {
    1 => "0x506b4b0300aaffc7"
  }
}

infiniband_netdevs

Return Hash of IPoIB netdev information:

{
  ib0 => {
    hca => "mlx5_0",
    port => "1",
    state => "ACTIVE",
    rate => "100",
    link_layer => "InfiniBand"
  }
}

Development

Testing

Testing requires the following dependencies:

  • rake
  • bundler

Install gem dependencies

bundle install

Run unit tests

bundle exec rake test

If you have Vagrant >= 1.2.0 installed you can run system tests

bundle exec rake beaker

TODO

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 83.2%
  • Puppet 16.6%
  • HTML 0.2%