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.

12345678910111213141516171819202122
  1. {%- from "linux/map.jinja" import system with context %}
  2. # default port is 514
  3. #PORT=6666
  4. {%- if system.netconsole is mapping and system.netconsole.port is defined %}
  5. PORT="{{ system.netconsole.port }}"
  6. {%- endif %}
  7. # unicast, could be multiline
  8. #netconsole ens3 192.168.1.32 fa:16:3e:8d:f6:d0
  9. {%- if system.netconsole is mapping and system.netconsole.target is mapping %}
  10. {%- for target, data in system.netconsole.target.iteritems() %}
  11. {%- if data is mapping %}
  12. netconsole "{{ data.get('interface', '${interface}') }}" "{{ target }}" "{{ data.get('mac', '') }}"
  13. {%- endif %}
  14. {%- endfor %}
  15. {%- endif %}
  16. # set up dmesg log level
  17. # dmesg -n info
  18. {%- if system.netconsole is mapping and system.netconsole.loglevel is defined %}
  19. dmesg -n "{{ system.netconsole.loglevel }}"
  20. {%- endif %}