mofed
: Manage Mellanox OFEDmofed::opensm
: Manage OpenSMmofed::srp
: Manage SRP
mofed::config
mofed::install
mofed::repo
mofed::service
mofed::interface
: Manage IPoIB interface
Manage Mellanox OFED
class { 'mofed':
repo_baseurl => 'http://example.com/mlnx/$releasever/3.4-2.0.0.0-rhel7.3/'
repo_gpgkey => 'http://example.com/mlnx/$releasever/3.4-2.0.0.0-rhel7.3/RPM-GPG-KEY-Mellanox',
}
The following parameters are available in the mofed
class:
manage_repo
repo_baseurl
repo_gpgcheck
repo_gpgkey
repo_exclude
repo_priority
manage_packages
package_ensure
package_name
extra_packages
extra_packages_hiera_merge
manage_service
restart_service
openibd_service_name
openibd_service_ensure
openibd_service_enable
openibd_service_hasstatus
openibd_service_hasrestart
manage_config
openib_config_path
openib_shellvars
interfaces
Data type: Boolean
Boolean to set if MOFED repo should be managed
Default value: true
Data type: Optional[String]
The baseurl of the yumrepo resource
Default value: undef
Data type: Enum['1','0']
The gpgcheck of the yumrepo resource
Default value: '1'
Data type: Optional[String]
The gpgkey of the yumrepo resource
Default value: undef
Data type: Optional[String]
The exclude of the yumrepo resource
Default value: undef
Data type: Optional[String]
The priority of the yumrepo resource
Default value: undef
Data type: Boolean
Boolean to determine if packages should be managed
Default value: true
Data type: String
The package ensure property
Default value: 'present'
Data type: String
The MOFED package name to install
Default value: 'mlnx-ofed-basic'
Data type: Optional[Array]
An array of additional packages to install
Default value: undef
Data type: Boolean
Boolean that sets if extra_packages should have values merged from hiera
Default value: false
Data type: Boolean
Boolean that determines if the openibd service should be managed
Default value: true
Data type: Boolean
Boolean that sets of openibd should be restarted
Default value: false
Data type: String
Name of the openibd service
Default value: 'openibd'
Data type: String
openibd service ensure property
Default value: 'running'
Data type: Boolean
openibd service enable property
Default value: true
Data type: Boolean
openibd service hasstatus property
Default value: true
Data type: Boolean
openibd service hasrestart property
Default value: true
Data type: Boolean
Boolean that sets if configs should be managed
Default value: true
Data type: Stdlib::Absolutepath
Path to openib.conf
Default value: '/etc/infiniband/openib.conf'
Data type: Hash
Hash of shellvar resources
Default value: {}
Data type: Hash
Hash of mofed::interface resources
Default value: {}
Manage OpenSM
class { 'mofed::opensm':
ports => ['mlx4_1 1', 'mlx4_1 2'],
}
The following parameters are available in the mofed::opensm
class:
Data type: Enum['present', 'absent', 'disabled']
State of opensm. present
will run opensm.
disabled
will install and configure opensm but disable services.
absent
will remove opensm.
Default value: 'present'
Data type: Array
Ports used by opensm
Default value: []
Data type: Integer
Value passsed to opensm -s
argument.
Default value: 10
Manage SRP
class { 'mofed::srp':
ports => ['mlx4_1 1', 'mlx4_1 2'],
}
The following parameters are available in the mofed::srp
class:
Data type: Enum['present', 'absent', 'disabled']
State of srp. present
will run opensm.
disabled
will install and configure opensm but disable services.
absent
will remove opensm.
Default value: 'present'
Data type: Array
Ports used by srp daemon.
Default value: []
Data type: Optional[Variant[String, Array]]
Define lines in srp_daemon.conf
Default value: undef
Data type: Optional[Hash[String, Variant[String,Integer], 1]]
Options passed to ib_srp kernel module
Default value: undef
Manage IPoIB interface
mofed::interface { 'ib0':
ensure => 'present',
ipaddr => '10.0.0.1',
netmask => '255.255.0.0',
connected_mode => 'no',
}
The following parameters are available in the mofed::interface
defined type:
ipaddr
netmask
gateway
ensure
enable
nm_controlled
connected_mode
mtu
bonding
bonding_slaves
bonding_opts
Data type: Optional[Stdlib::Compat::Ip_address]
IP address, required when ensure=present
Default value: undef
Data type: Optional[Stdlib::Compat::Ip_address]
Netmask address, required when ensure=present
Default value: undef
Data type: Optional[Stdlib::Compat::Ip_address]
Gateway address.
Default value: undef
Data type: Enum['present', 'absent']
Interface ensure value.
Default value: 'present'
Data type: Boolean
Boolean of whether to enable the interface at boot.
Default value: true
Data type: Optional[Variant[Boolean, Enum['yes','no']]]
Value for nm_controlled on interface
Default value: undef
Data type: Enum['yes', 'no']
The value for setting interface to connected mode.
Default value: 'yes'
Data type: Optional[Integer]
The MTU of the interface.
Default value: undef
Data type: Boolean
If this interface is a bonding interface
Default value: false
Data type: Array[String]
Array of interfaces that should be enslaved in the bonding interface
Default value: []
Data type: String
The bonding options to use for this bonding interface
Default value: 'mode=active-backup miimon=100'