Puppet Class: psick::multipath

Defined in:
manifests/multipath.pp

Overview

This class installs and configures multipath (only on physical servers)

Parameters:

  • config_file_template (String) (defaults to: 'psick/multipath/multipath.conf.erb')

    The path of the erb template to use for the content of /etc/multipath.conf. If empty the file is not managed.

  • user_friendly_names (String) (defaults to: 'yes')

    Defines the content of the user_friendly_names entry in multipath.conf

  • manage (Boolean) (defaults to: $psick::manage)
  • noop_manage (Boolean) (defaults to: $psick::noop_manage)
  • noop_value (Boolean) (defaults to: $psick::noop_value)


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/multipath.pp', line 9

class psick::multipath (
  String $config_file_template = 'psick/multipath/multipath.conf.erb',
  String $user_friendly_names  = 'yes',

  Boolean $manage              = $psick::manage,
  Boolean $noop_manage         = $psick::noop_manage,
  Boolean $noop_value          = $psick::noop_value,
) {
  if $manage {
    if $noop_manage {
      noop($noop_value)
    }

    if $config_file_template != '' and $facts['virtual'] == 'physical' {
      tp::conf { 'multipath':
        content => template($config_file_template),
      }
      tp::install { 'multipath': }
    }
  }
}