Saltstack Official Linux Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

45 行
1.8KB

  1. {%- from "linux/map.jinja" import network with context %}
  2. {%- set openvswitch = network.openvswitch %}
  3. # This is a POSIX shell fragment -*- sh -*-
  4. # FORCE_COREFILES: If 'yes' then core files will be enabled.
  5. # FORCE_COREFILES=yes
  6. # OVS_CTL_OPTS: Extra options to pass to ovs-ctl. This is, for example,
  7. # a suitable place to specify --ovs-vswitchd-wrapper=valgrind.
  8. # OVS_CTL_OPTS=
  9. # OVS_VSWITCHD_OPTS: Extra options to pass to ovs-ctl.
  10. # Options to start Open vSwitch daemon with.
  11. # Example: '-vconsole:dbg -vsyslog:dbg -vfile:dbg -vFACILITY:clock2'
  12. # OVS_VSWITCHD_OPTS=
  13. {%- if openvswitch.get('logging', {}).vswitchd is defined %}
  14. {%- set _vswitchd_opts = [] %}
  15. {%- for opt in ['console', 'file', 'syslog'] %}
  16. {%- if openvswitch.logging.vswitchd.get(opt) %}
  17. {%- do _vswitchd_opts.append("-v"+ opt + ":" + openvswitch.logging.vswitchd.get(opt)) %}
  18. {%- endif %}
  19. {%- endfor %}
  20. {%- if openvswitch.logging.vswitchd.facility is defined %}
  21. {%- do _vswitchd_opts.append("-vFACILITY:" + openvswitch.logging.vswitchd.facility) %}
  22. {%- endif %}
  23. OVS_VSWITCHD_OPTS="{{ ' '.join(_vswitchd_opts) }}"
  24. {%- endif %}
  25. # OVSDB_OPTS: Extra options to pass to ovs-ctl.
  26. # Options to start Open vSwitch DB daemon with.
  27. # Example: '-vconsole:dbg -vsyslog:dbg -vfile:dbg -vFACILITY:clock2'
  28. # OVSDB_OPTS=
  29. {%- if openvswitch.get('logging', {}).ovsdb is defined %}
  30. {%- set _ovsdb_opts = [] %}
  31. {%- for opt in ['console', 'file', 'syslog'] %}
  32. {%- if openvswitch.logging.ovsdb.get(opt) %}
  33. {%- do _ovsdb_opts.append("-v" + opt + ":" + openvswitch.logging.ovsdb.get(opt)) %}
  34. {%- endif %}
  35. {%- endfor %}
  36. {%- if openvswitch.logging.ovsdb.facility is defined %}
  37. {%- do _ovsdb_opts.append("-vFACILITY:" + openvswitch.logging.ovsdb.facility) %}
  38. {%- endif %}
  39. OVSDB_OPTS="{{ ' '.join(_ovsdb_opts) }}"
  40. {%- endif %}