Puppet Class: infiniband::config

Defined in:
manifests/config.pp

Summary

Manage InfiniBand config

Overview



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
# File 'manifests/config.pp', line 3

class infiniband::config {

  Shellvar {
    ensure  => present,
    target  => $infiniband::rdma_conf_path,
  }

  shellvar { 'infiniband IPOIB_LOAD': variable => 'IPOIB_LOAD', value => $infiniband::ipoib_load }
  shellvar { 'infiniband SRP_LOAD': variable => 'SRP_LOAD', value => $infiniband::srp_load }
  shellvar { 'infiniband ISER_LOAD': variable => 'ISER_LOAD', value => $infiniband::iser_load }
  shellvar { 'infiniband RDS_LOAD': variable => 'RDS_LOAD', value => $infiniband::rds_load }
  shellvar { 'infiniband FIXUP_MTRR_REGS': variable => 'FIXUP_MTRR_REGS', value => $infiniband::fixup_mtrr_regs }
  shellvar { 'infiniband NFSoRDMA_LOAD': variable => 'NFSoRDMA_LOAD', value => $infiniband::nfsordma_load }
  shellvar { 'infiniband NFSoRDMA_PORT': variable => 'NFSoRDMA_PORT', value => $infiniband::nfsordma_port }

  if $infiniband::manage_mlx4_core_options {
    file { '/etc/modprobe.d/mlx4_core.conf':
      ensure  => 'file',
      content => template('infiniband/modprobe.d/mlx4_core.conf.erb'),
      owner   => 'root',
      group   => 'root',
      mode    => '0644',
    }
  }

}