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.

30 satır
749B

  1. {%- from "linux/map.jinja" import system with context %}
  2. include:
  3. - linux.system.grub
  4. /etc/default/grub.d/90-sriov.cfg:
  5. file.managed:
  6. - contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT intel_iommu=on iommu=pt"'
  7. - require:
  8. - file: grub_d_directory
  9. {%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
  10. - watch_in:
  11. - cmd: grub_update
  12. {%- endif %}
  13. /etc/modprobe.d/sriov.conf:
  14. file.managed:
  15. - contents: |
  16. blacklist ixgbevf
  17. blacklist igbvf
  18. blacklist i40evf
  19. {%- if system.kernel.get('unsafe_interrupts', false) %}
  20. /etc/modprobe.d/iommu_unsafe_interrupts.conf:
  21. file.managed:
  22. - contents: options vfio_iommu_type1 allow_unsafe_interrupts=1
  23. {%- endif %}