| {%- from "linux/map.jinja" import storage with context %} |
| ## |
| ## This is multipath-tools configuration file managed by Salt |
| ## |
| |
| defaults { |
| # getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n" |
| user_friendly_names no |
| } |
| |
| blacklist { |
| {%- for device in storage.multipath.get('blacklist_devices', []) %} |
| wwid {{ salt['cmd.run']('/lib/udev/scsi_id -g -u '+device) }} |
| {%- endfor %} |
| devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st|nbd)[0-9]*" |
| } |
| |
| devices { |
| {%- for backend in storage.multipath.get('backends', []) %} |
| {%- include "linux/files/multipath/_" + backend + ".conf" %} |
| {%- endfor %} |
| } |