terraform/builtin/provisioners
Sander van Harmelen 0e422737ba Fix and refactor the Chef provisioner
The tests did pass, but that was because they only tested part of the changes. By using the `schema.TestResourceDataRaw` function the schema and config are better tested and so they pointed out a problem with the schema of the Chef provisioner.

The `Elem` fields did not have a `*schema.Schema` but a `schema.Schema` and in an `Elem` schema only the `Type` field may (and must) be set. Any other fields like `Optional` are not allowed here.

Next to fixing that problem I also did a little refactoring and cleaning up. Mainly making the `ProvisionerS` private (`provisioner`) and removing the deprecated fields.
2017-05-19 21:05:21 +02:00
..
chef Fix and refactor the Chef provisioner 2017-05-19 21:05:21 +02:00
file Fix and refactor the Chef provisioner 2017-05-19 21:05:21 +02:00
local-exec Fix and refactor the Chef provisioner 2017-05-19 21:05:21 +02:00
remote-exec Fix and refactor the Chef provisioner 2017-05-19 21:05:21 +02:00