func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProvisionerFunc: func() terraform.ResourceProvisioner {
			return new(chef.ResourceProvisioner)
		},
	})
}
func main() {
	serveOpts := &plugin.ServeOpts{
		ProvisionerFunc: ResourceProvisionerBuilder,
	}

	plugin.Serve(serveOpts)
}
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: func() terraform.ResourceProvider {
			return Provider()
		},
	})
}
func main() {

	// return details on provider plugin
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: func() terraform.ResourceProvider {

			return &schema.Provider{

				// rage4 api only needs email login & api key
				Schema: map[string]*schema.Schema{
					"email": &schema.Schema{
						Type:        schema.TypeString,
						Required:    true,
						DefaultFunc: envDefaultFunc("RAGE4_EMAIL"),
						Description: "email address associated with Rage4 account",
					},
					"api_key": &schema.Schema{
						Type:        schema.TypeString,
						Required:    true,
						DefaultFunc: envDefaultFunc("RAGE4_API_AKEY"),
						Description: "Rage4 API Key",
					},
				},

				ResourcesMap: map[string]*schema.Resource{
					"rage4_record": resourceRage4Record(),
				},

				ConfigureFunc: providerConfigure,
			}

		},
	})

}
func (c *InternalPluginCommand) Run(args []string) int {
	if len(args) != 2 {
		log.Printf("Wrong number of args; expected: terraform internal-plugin pluginType pluginName")
		return 1
	}

	pluginType := args[0]
	pluginName := args[1]

	log.SetPrefix(fmt.Sprintf("%s-%s (internal) ", pluginName, pluginType))

	switch pluginType {
	case "provider":
		pluginFunc, found := InternalProviders[pluginName]
		if !found {
			log.Printf("[ERROR] Could not load provider: %s", pluginName)
			return 1
		}
		log.Printf("[INFO] Starting provider plugin %s", pluginName)
		plugin.Serve(&plugin.ServeOpts{
			ProviderFunc: pluginFunc,
		})
	case "provisioner":
		pluginFunc, found := InternalProvisioners[pluginName]
		if !found {
			log.Printf("[ERROR] Could not load provisioner: %s", pluginName)
			return 1
		}
		log.Printf("[INFO] Starting provisioner plugin %s", pluginName)
		plugin.Serve(&plugin.ServeOpts{
			ProvisionerFunc: pluginFunc,
		})
	default:
		log.Printf("[ERROR] Invalid plugin type %s", pluginType)
		return 1
	}

	return 0
}
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: nsot.Provider,
	})
}
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: chronos.Provider,
	})
}
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: mesoskafka.Provider,
	})
}
Exemple #9
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: librato.Provider,
	})
}
Exemple #10
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: cloudflare.Provider,
	})
}
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: bigip.Provider,
	})
}
Exemple #12
0
func main() {
	plugin.Serve(new(file.ResourceProvisioner))
}
Exemple #13
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: terraform.Provider,
	})
}
Exemple #14
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: pagerduty.Provider,
	})
}
Exemple #15
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: rundeck.Provider,
	})
}
Exemple #16
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: azurerm.Provider,
	})
}
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: pingdom.Provider,
	})
}
Exemple #18
0
func main() {
	plugin.Serve(new(consul.ResourceProvider))
}
Exemple #19
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: beanstalk.Provider,
	})
}
Exemple #20
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: profitbricks.Provider,
	})
}
Exemple #21
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: triton.Provider,
	})
}
Exemple #22
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: cloudstack.Provider,
	})
}
Exemple #23
0
func main() {
	plugin.Serve(google.Provider())
}
Exemple #24
0
func main() {
	plugin.Serve(new(localexec.ResourceProvisioner))
}
Exemple #25
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: postgresql.Provider,
	})
}
Exemple #26
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: vsphere.Provider,
	})
}
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: localfile.Provider,
	})
}
Exemple #28
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: cobbler.Provider,
	})
}
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: maas.Provider,
	})
}
Exemple #30
0
func main() {
	plugin.Serve(&plugin.ServeOpts{
		ProviderFunc: statuscake.Provider,
	})
}