mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-31 11:17:25 -06:00
f5449a62e0
1. Migrate `chef` provisioner to `schema.Provisioner`: * `chef.Provisioner` structure was renamed to `ProvisionerS`and now it's decoded from `schema.ResourceData` instead of `terraform.ResourceConfig` using simple copy-paste-based solution; * Added simple schema without any validation yet. 2. Support `ValidateFunc` validate function : implemented in `file` and `chef` provisioners.
13 lines
217 B
Go
13 lines
217 B
Go
package main
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform/builtin/provisioners/chef"
|
|
"github.com/hashicorp/terraform/plugin"
|
|
)
|
|
|
|
func main() {
|
|
plugin.Serve(&plugin.ServeOpts{
|
|
ProvisionerFunc: chef.Provisioner,
|
|
})
|
|
}
|