Skip to content

Commit

Permalink
move packer to hashicorp
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhooker committed Apr 4, 2017
1 parent a9bb232 commit 81522dc
Show file tree
Hide file tree
Showing 573 changed files with 1,048 additions and 1,048 deletions.
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Describe the change you are making here!

Please include tests. Check out these examples:

- https://github.com/mitchellh/packer/blob/master/builder/virtualbox/common/ssh_config_test.go#L19-L37
- https://github.com/mitchellh/packer/blob/master/post-processor/compress/post-processor_test.go#L153-L182
- https://github.com/hashicorp/packer/blob/master/builder/virtualbox/common/ssh_config_test.go#L19-L37
- https://github.com/hashicorp/packer/blob/master/post-processor/compress/post-processor_test.go#L153-L182

If your PR resolves any open issue(s), please indicate them like this so they will be closed when your PR is merged:

Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ following steps in order to be able to compile and test Packer. These instructio
rebuilding. If you don't have `make` you can simply run `go build -o bin/packer .` from the project root.
6. After running building packer successfully, use
`$GOPATH/src/github.com/mitchellh/packer/bin/packer` to build a machine and
verify your changes work. For instance: `$GOPATH/src/github.com/mitchellh/packer/bin/packer build template.json`.
`$GOPATH/src/github.com/hashicorp/packer/bin/packer` to build a machine and
verify your changes work. For instance: `$GOPATH/src/github.com/hashicorp/packer/bin/packer build template.json`.
7. If everything works well and the tests pass, run `go fmt` on your code
before submitting a pull-request.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ http://www.packer.io/docs

## Developing Packer

See [CONTRIBUTING.md](https://github.com/mitchellh/packer/blob/master/CONTRIBUTING.md) for best practices and instructions on setting up your development environment to work on Packer.
See [CONTRIBUTING.md](https://github.com/hashicorp/packer/blob/master/CONTRIBUTING.md) for best practices and instructions on setting up your development environment to work on Packer.
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ build_script:
- ps: |
go.exe test (go.exe list ./... `
|? { -not $_.Contains('/vendor/') } `
|? { $_ -ne 'github.com/mitchellh/packer/builder/parallels/common' } `
|? { $_ -ne 'github.com/mitchellh/packer/common' }`
|? { $_ -ne 'github.com/mitchellh/packer/provisioner/ansible' })
|? { $_ -ne 'github.com/hashicorp/packer/builder/parallels/common' } `
|? { $_ -ne 'github.com/hashicorp/packer/common' }`
|? { $_ -ne 'github.com/hashicorp/packer/provisioner/ansible' })
test: off

Expand Down
10 changes: 5 additions & 5 deletions builder/amazon/chroot/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (

"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ec2"
awscommon "github.com/hashicorp/packer/builder/amazon/common"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/helper/config"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/common"
"github.com/mitchellh/packer/helper/config"
"github.com/mitchellh/packer/packer"
"github.com/mitchellh/packer/template/interpolate"
)

// The unique ID for this builder
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package chroot
import (
"testing"

"github.com/mitchellh/packer/packer"
"github.com/hashicorp/packer/packer"
)

func testConfig() map[string]interface{} {
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/communicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
"syscall"

"github.com/mitchellh/packer/packer"
"github.com/hashicorp/packer/packer"
)

// Communicator is a special communicator that works by executing
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/communicator_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package chroot

import (
"github.com/mitchellh/packer/packer"
"github.com/hashicorp/packer/packer"
"testing"
)

Expand Down
6 changes: 3 additions & 3 deletions builder/amazon/chroot/run_local_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package chroot
import (
"fmt"

"github.com/mitchellh/packer/packer"
"github.com/mitchellh/packer/post-processor/shell-local"
"github.com/mitchellh/packer/template/interpolate"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/post-processor/shell-local"
"github.com/hashicorp/packer/template/interpolate"
)

func RunLocalCommands(commands []string, wrappedCommand CommandWrapper, ctx interpolate.Context, ui packer.Ui) error {
Expand Down
4 changes: 2 additions & 2 deletions builder/amazon/chroot/step_attach_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"time"

"github.com/aws/aws-sdk-go/service/ec2"
awscommon "github.com/hashicorp/packer/builder/amazon/common"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"
)

// StepAttachVolume attaches the previously created volume to an
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_check_root_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

// StepCheckRootDevice makes sure the root device on the AMI is EBS-backed.
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_chroot_provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package chroot
import (
"log"

"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

// StepChrootProvision provisions the instance within a chroot.
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_copy_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package chroot
import (
"bytes"
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"log"
"path/filepath"
)
Expand Down
4 changes: 2 additions & 2 deletions builder/amazon/chroot/step_create_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
awscommon "github.com/hashicorp/packer/builder/amazon/common"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"
)

// StepCreateVolume creates a new volume from the snapshot of the root
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_early_cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package chroot

import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"log"
)

Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_early_unflock.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package chroot

import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"log"
)

Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_flock.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package chroot

import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"log"
"os"
"path/filepath"
Expand Down
4 changes: 2 additions & 2 deletions builder/amazon/chroot/step_instance_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"log"

"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/builder/amazon/common"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"
)

// StepInstanceInfo verifies that this builder is running on an EC2 instance.
Expand Down
4 changes: 2 additions & 2 deletions builder/amazon/chroot/step_mount_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"strings"

"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"github.com/mitchellh/packer/template/interpolate"
)

type mountPathData struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_mount_extra.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package chroot
import (
"bytes"
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"os"
"os/exec"
"syscall"
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_post_mount_commands.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package chroot

import (
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

type postMountCommandsData struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_pre_mount_commands.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package chroot

import (
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

type preMountCommandsData struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_prepare_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"os"

"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

// StepPrepareDevice finds an available device and sets it.
Expand Down
4 changes: 2 additions & 2 deletions builder/amazon/chroot/step_register_ami.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
awscommon "github.com/hashicorp/packer/builder/amazon/common"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"
)

// StepRegisterAMI creates the AMI.
Expand Down
4 changes: 2 additions & 2 deletions builder/amazon/chroot/step_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"time"

"github.com/aws/aws-sdk-go/service/ec2"
awscommon "github.com/hashicorp/packer/builder/amazon/common"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"
)

// StepSnapshot creates a snapshot of the created volume.
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/common/access_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds"
"github.com/aws/aws-sdk-go/aws/ec2metadata"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/mitchellh/packer/template/interpolate"
"github.com/hashicorp/packer/template/interpolate"
)

// AccessConfig is for common configuration related to AWS access
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/common/ami_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package common
import (
"fmt"

"github.com/mitchellh/packer/template/interpolate"
"github.com/hashicorp/packer/template/interpolate"
)

// AMIConfig is for common configuration related to creating AMIs.
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/common/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/mitchellh/packer/packer"
"github.com/hashicorp/packer/packer"
)

// Artifact is an artifact implementation that contains built AMIs.
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/common/artifact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/mitchellh/packer/packer"
"github.com/hashicorp/packer/packer"
)

func TestArtifact_Impl(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/common/block_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/mitchellh/packer/template/interpolate"
"github.com/hashicorp/packer/template/interpolate"
)

// BlockDevice
Expand Down
6 changes: 3 additions & 3 deletions builder/amazon/common/run_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"regexp"
"time"

"github.com/mitchellh/packer/common/uuid"
"github.com/mitchellh/packer/helper/communicator"
"github.com/mitchellh/packer/template/interpolate"
"github.com/hashicorp/packer/common/uuid"
"github.com/hashicorp/packer/helper/communicator"
"github.com/hashicorp/packer/template/interpolate"
)

var reShutdownBehavior = regexp.MustCompile("^(stop|terminate)$")
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/common/run_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"regexp"
"testing"

"github.com/mitchellh/packer/helper/communicator"
"github.com/hashicorp/packer/helper/communicator"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/common/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

"github.com/aws/aws-sdk-go/service/ec2"
packerssh "github.com/hashicorp/packer/communicator/ssh"
"github.com/mitchellh/multistep"
packerssh "github.com/mitchellh/packer/communicator/ssh"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent"
)
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/common/step_ami_region_copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ec2"

"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

type StepAMIRegionCopy struct {
Expand Down
6 changes: 3 additions & 3 deletions builder/amazon/common/step_create_tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ec2"
retry "github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
"github.com/mitchellh/multistep"
retry "github.com/mitchellh/packer/common"
"github.com/mitchellh/packer/packer"
"github.com/mitchellh/packer/template/interpolate"
)

type StepCreateTags struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/common/step_deregister_ami.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

type StepDeregisterAMI struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/common/step_encrypted_ami.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

type StepCreateEncryptedAMICopy struct {
Expand Down
Loading

0 comments on commit 81522dc

Please sign in to comment.