Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

multipath.conf 690B

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
12345678910111213141516171819202122
  1. {%- from "linux/map.jinja" import storage with context %}
  2. ##
  3. ## This is multipath-tools configuration file managed by Salt
  4. ##
  5. defaults {
  6. # getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
  7. user_friendly_names no
  8. }
  9. blacklist {
  10. {%- for device in storage.multipath.get('blacklist_devices', []) %}
  11. wwid {{ salt['cmd.run']('/lib/udev/scsi_id -g -u '+device) }}
  12. {%- endfor %}
  13. devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st|nbd)[0-9]*"
  14. }
  15. devices {
  16. {%- for backend in storage.multipath.get('backends', []) %}
  17. {%- include "linux/files/multipath/_" + backend + ".conf" %}
  18. {%- endfor %}
  19. }