Multipath Configuration¶
This section describes the available configuration options for multipath in the profile::multipath Puppet profile. The profile manages the /etc/multipath.conf file based on the provided Hiera data.
The profile can be enabled by setting the hiera key base::enable_multipath to true.
Following options can be set in Hiera to customize the multipath configuration :
profile::multipath::wwid¶
A hash containing the allowed multipaths by mapping a device alias to its wwid.
Example Hiera data:
profile::multipath::wwid:
'vol1_a': '360080e50004315f40000087e5966df82'
'vol1_b': '360080e5000431680000007c35966e03e'
'vol1_c': '360080e50004315f4000008825966e1bf'
Generates the following in /etc/multipath.conf:
multipaths {
multipath {
alias vol1_a
wwid "360080e50004315f40000087e5966df82"
}
multipath {
alias vol1_b
wwid "360080e5000431680000007c35966e03e"
}
multipath {
alias vol1_c
wwid "360080e50004315f4000008825966e1bf"
}
}
profile::multipath::blacklist_wwid¶
A hash containing blacklisted multipaths by mapping a device alias to its wwid.
Example Hiera data:
Generates the following in /etc/multipath.conf:
profile::multipath::devices¶
An array of allowed devices for multipath.conf.
Example Hiera data:
Generates the following in /etc/multipath.conf:
profile::multipath::blacklist_devices¶
An array of blacklisted devices for multipath.conf.
Example Hiera data:
Generates the following in /etc/multipath.conf:
profile::multipath::blacklist_devnode¶
An array of node devices to blacklist in multipath.conf. The template already includes some default devnode patterns:
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^(td|hd|vd)[a-z]"
devnode "^(dcssblk)[0-9]*"
Example Hiera data:
Generates the following in /etc/multipath.conf: