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.sls 607B

9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
123456789101112131415161718192021222324
  1. {%- from "linux/map.jinja" import storage with context %}
  2. {%- if storage.enabled and storage.multipath.enabled %}
  3. linux_storage_multipath_packages:
  4. pkg.installed:
  5. - pkgs: {{ storage.multipath.pkgs }}
  6. linux_storage_multipath_config:
  7. file.managed:
  8. - name: /etc/multipath.conf
  9. - source: salt://linux/files/multipath.conf
  10. - template: jinja
  11. - require:
  12. - pkg: linux_storage_multipath_packages
  13. linux_storage_multipath_service:
  14. service.running:
  15. - enable: true
  16. - name: {{ storage.multipath.service }}
  17. - watch:
  18. - file: linux_storage_multipath_config
  19. - sig: multipathd
  20. {%- endif %}