{{ if ne .Vars.OS "windows" }}
kernel-param:
  net.bridge.bridge-nf-call-iptables:
    value: "1"
  net.ipv6.conf.all.forwarding:
    value: "1"
  net.ipv6.conf.all.disable_ipv6:
    value: "0"
  net.ipv4.ip_forward:
    value: "1"
  net.bridge.bridge-nf-call-ip6tables:
    value: "1"
  vm.overcommit_memory:
    value: "1"
  kernel.panic:
    value: "10"
  kernel.panic_on_oops:
    value: "1"
{{range $name, $vers := index .Vars .Vars.OS "common-kernel-param"}}
  {{ $name }}:
  {{range $key, $val := $vers}}
    {{$key}}: "{{$val}}"
  {{end}}
{{end}}
{{range $name, $vers := index .Vars .Vars.OS .Vars.PROVIDER "kernel-param"}}
  {{ $name }}:
  {{range $key, $val := $vers}}
    {{$key}}: "{{$val}}"
  {{end}}
{{end}}
{{end}}