Merge pull request #3363 from mitchellh/f-remove-plugins

Cleanup plugin code that is no longer used
This commit is contained in:
Chris Bednarski 2016-03-17 17:57:15 -07:00
commit 8040317f77
77 changed files with 39 additions and 635 deletions

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/amazon/chroot"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(chroot.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/amazon/ebs"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(ebs.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/amazon/instance"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(instance.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/digitalocean"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(digitalocean.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/docker"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(docker.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/file"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(file.Builder))
server.Serve()
}

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/googlecompute"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(googlecompute.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/null"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(null.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/openstack"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(openstack.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/parallels/iso"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(iso.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/parallels/pvm"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(pvm.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/qemu"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(qemu.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/virtualbox/iso"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(iso.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/virtualbox/ovf"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(ovf.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/vmware/iso"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(iso.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/builder/vmware/vmx"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(vmx.Builder))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

36
plugin/example/main.go Normal file
View File

@ -0,0 +1,36 @@
// This is an example plugin. In packer 0.9.0 and up, core plugins are compiled
// into the main binary so these files are no longer necessary for the packer
// project.
//
// However, it is still possible to create a third-party plugin for packer that
// is distributed independently from the packer distribution. These continue to
// work in the same way. They will be loaded from the same directory as packer
// by looking for packer-[builder|provisioner|post-processor]-plugin-name. For
// example:
//
// packer-builder-docker
//
// Look at command/plugin.go to see how the core plugins are loaded now, but the
// format below was used for packer <= 0.8.6 and is forward-compatible.
package main
import (
"github.com/mitchellh/packer/builder/amazon/chroot"
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/docker-push"
"github.com/mitchellh/packer/provisioner/powershell"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
// Choose the appropriate type of plugin. You should only use one of these
// at a time, which means you will have a separate plugin for each builder,
// provisioner, or post-processor.
server.RegisterBuilder(new(chroot.Builder))
server.RegisterPostProcessor(new(dockerpush.PostProcessor))
server.RegisterProvisioner(new(powershell.Provisioner))
server.Serve()
}

View File

@ -0,0 +1,3 @@
// Core Packer plugins included a _test.go file to make sure they compiled
// correctly when running packer tests. For custom plugins this file is optional.
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/artifice"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(artifice.PostProcessor))
server.Serve()
}

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/atlas"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(atlas.PostProcessor))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/compress"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(compress.PostProcessor))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/docker-import"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(dockerimport.PostProcessor))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/docker-push"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(dockerpush.PostProcessor))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/docker-save"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(dockersave.PostProcessor))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/docker-tag"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(dockertag.PostProcessor))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/shell-local"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(shell_local.PostProcessor))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/vagrant-cloud"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(vagrantcloud.PostProcessor))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/vagrant"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(vagrant.PostProcessor))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/vsphere"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(vsphere.PostProcessor))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/ansible-local"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(ansiblelocal.Provisioner))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/ansible"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(ansible.Provisioner))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/chef-client"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(chefclient.Provisioner))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/chef-solo"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(chefsolo.Provisioner))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/file"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(file.Provisioner))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/powershell"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(powershell.Provisioner))
server.Serve()
}

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/puppet-masterless"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(puppetmasterless.Provisioner))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/puppet-server"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(puppetserver.Provisioner))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/salt-masterless"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(saltmasterless.Provisioner))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/shell-local"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(shell.Provisioner))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/shell"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(shell.Provisioner))
server.Serve()
}

View File

@ -1 +0,0 @@
package main

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/windows-restart"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(restart.Provisioner))
server.Serve()
}

View File

@ -1,15 +0,0 @@
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/windows-shell"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(shell.Provisioner))
server.Serve()
}