Paker で Chef を利用時、ライセンスエラー

Packer で type に chef-solo を指定時、コマンドが失敗するようになった。
これは、ライセンスの承諾が必要になったことが原因。

Chef Infra Client cannot execute without accepting the license
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

`--chef-license accept-silent` を追加する必要がある。

  "provisioners": [
    {
      "type": "chef-solo",
      "cookbook_paths": ["site-cookbooks/"],
      "execute_command": "{{if .Sudo}}sudo {{end}}chef-solo --chef-license accept-silent --no-color -c {{.ConfigPath}} -j {{.JsonPath}}",

    ...