Saltstack Official Linux Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

23 rindas
780B

  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.items() %}
  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 %}