Skip to content

Commit

Permalink
Added multiple cmd targets for more convenient installation with go get
Browse files Browse the repository at this point in the history
  • Loading branch information
prologic committed Dec 24, 2018
1 parent 95d52ed commit a1f744d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
terraform-provider-proxmox
*~*
*.bak
File renamed without changes.
18 changes: 18 additions & 0 deletions cmd/terraform-provisioner-proxmox/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package main

import (
"github.com/Telmate/terraform-provider-proxmox/proxmox"
"github.com/hashicorp/terraform/plugin"
"github.com/hashicorp/terraform/terraform"
)

func main() {
plugin.Serve(&plugin.ServeOpts{
ProviderFunc: func() terraform.ResourceProvider {
return proxmox.Provider()
},
ProvisionerFunc: func() terraform.ResourceProvisioner {
return proxmox.Provisioner()
},
})
}

0 comments on commit a1f744d

Please sign in to comment.