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.

23 lines
692B

  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.shell']('/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. }