mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
provisioner/file: Skeleton files
This commit is contained in:
parent
082790c4c1
commit
a9cad200d8
10
builtin/bins/provisioner-file/main.go
Normal file
10
builtin/bins/provisioner-file/main.go
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/hashicorp/terraform/builtin/provisioners/file"
|
||||||
|
"github.com/hashicorp/terraform/plugin"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
plugin.Serve(new(file.ResourceProvisioner))
|
||||||
|
}
|
1
builtin/bins/provisioner-file/main_test.go
Normal file
1
builtin/bins/provisioner-file/main_test.go
Normal file
@ -0,0 +1 @@
|
|||||||
|
package main
|
17
builtin/provisioners/file/resource_provisioner.go
Normal file
17
builtin/provisioners/file/resource_provisioner.go
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package file
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/hashicorp/terraform/terraform"
|
||||||
|
)
|
||||||
|
|
||||||
|
type ResourceProvisioner struct{}
|
||||||
|
|
||||||
|
func (p *ResourceProvisioner) Apply(s *terraform.ResourceState,
|
||||||
|
c *terraform.ResourceConfig) (*terraform.ResourceState, error) {
|
||||||
|
panic("not implemented")
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p *ResourceProvisioner) Validate(c *terraform.ResourceConfig) (ws []string, es []error) {
|
||||||
|
return
|
||||||
|
}
|
1
builtin/provisioners/file/resource_provisioner_test.go
Normal file
1
builtin/provisioners/file/resource_provisioner_test.go
Normal file
@ -0,0 +1 @@
|
|||||||
|
package file
|
@ -38,6 +38,7 @@ func init() {
|
|||||||
BuiltinConfig.Provisioners = map[string]string{
|
BuiltinConfig.Provisioners = map[string]string{
|
||||||
"local-exec": "terraform-provisioner-local-exec",
|
"local-exec": "terraform-provisioner-local-exec",
|
||||||
"remote-exec": "terraform-provisioner-remote-exec",
|
"remote-exec": "terraform-provisioner-remote-exec",
|
||||||
|
"file": "terraform-provisioner-file",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user