Commit Graph

6176 Commits

Author SHA1 Message Date
Rickard von Essen 5cbc36103e Merge pull request #3756 from ricardclau/floppy_check
Test floppy disks actually exist
2016-09-12 08:05:16 +02:00
Rickard von Essen 12426b314f Merge pull request #3823 from mitchellh/f-singlebinary
Update documentation to single binary
2016-09-12 07:47:15 +02:00
Rickard von Essen 21a957ddcd Added a missing the 2016-09-12 07:46:47 +02:00
Mark Turner de35df833b Fixed azure storage command example to include sku-name and kind 2016-09-10 17:44:13 +01:00
Mark Turner 0f4cba9c82 Added quotes to JQ line when getting Azure accounts 2016-09-10 17:33:20 +01:00
Scott Crunkleton 913a9db23f Added github.com/stretchr/testify to vendor. 2016-09-09 18:31:21 -07:00
Scott Crunkleton b54b82d3ac Some googlecompute fixes and cleanup. Addresses https://github.com/mitchellh/packer/issues/3829. Changes:
- startup scripts don't run for Windows since it is isn't implemented yet.
- startup scripts use instance metadata instead of serial port output to flag when they are done.
- added licenses to Image data type (to check if an Image is a  Windows Image).
- added GetImage and GetImageFromProject to googlecompute Drivers.
- changed some of the builder/googlecompute tests to use github.com/stretchr/testify/assert.

Tests:
- (in the Packer directory) `go test .`, `go test ./builder/googlecompute`, and `go test ./post-processor/googlecompute-export`
- manual run of `packer build packer_template.json` with the following files

--packer_template.json--
{
  "builders": [
    {
      "type": "googlecompute",
      "account_file": "creds.json",
      "project_id": "google.com:packer-test",
      "source_image": "debian-8-jessie-v20160629",
      "zone": "us-central1-a",
      "startup_script_file": "startup_script.sh",
      "metadata": {
        "startup-script": "#!/bin/sh\necho \"This should be overwritten.\"",
        "startup-script-log-dest": "gs://packer-test.google.com.a.appspot.com/startup-script.log"
      },
      "image_name": "test-packer-modifications",
      "ssh_username": "foo"
    }
  ],
  "post-processors": [
    {
      "type": "googlecompute-export",
      "paths": [
        "gs://packer-test.google.com.a.appspot.com/foo.tar.gz",
        "gs://packer-test.google.com.a.appspot.com/bar.tar.gz"
      ],
      "keep_input_artifact": true
    }
  ]
}

--startup_script.sh--
\#!/bin/sh
echo "Hi, my name is Scott. I'm waiting 60 seconds!" >> /scott
sleep 60
echo "I'm done waiting!" >> /scott
2016-09-09 16:22:50 -07:00
Dan Peterson c7af9a67bc amazon/common/ssh: fix saving of instance to state
Fixes #3496
2016-09-09 10:16:53 -03:00
Rickard von Essen 9dc7ce52cf Updated CHANGELOG.md 2016-09-08 11:32:16 +02:00
Rickard von Essen 1d365e4581 Merge pull request #3868 from rickard-von-essen/di-snapshot-fix
builders/digitalocean: fixes timeout waiting for snapshot #3853
2016-09-08 11:30:50 +02:00
Rickard von Essen f446c1a1b7
builders/digitalocean: fixes timeout waiting for snapshot #3853 2016-09-08 10:32:43 +02:00
Jeremy Asher 66e55553e8 cleanup and make format on amazon-chroot docs 2016-09-04 12:19:47 -07:00
Rickard von Essen e68f2782f8
Updated aws-sdk-go from v1.1.2 to v1.4.6
Updated github.com/aws/aws-sdk-go/aws from v1.1.2 to v1.4.6 to support
Amazon EC2 Container Registry - ECR.
2016-09-04 14:45:01 +02:00
Rickard von Essen b2d9782a9e
Improved support for Amazon EC2 Container Registry - ECR
This adds support for authenticating towards ECR in the docker builder
and docker-push post-processor using them same mechanisms as in the
amazon builders. I.g. access key/secret key, credentials on file,
environment variables, sts tokens or IAM instance roles.
2016-09-04 14:33:47 +02:00
Jeremy Asher e1c69a2e9a amazon-chroot from_scratch option documentation 2016-09-03 12:32:43 -07:00
Jeremy Asher 9a7758a002 fix amazon-chroot docs use of backticks for true/false 2016-09-03 12:32:43 -07:00
Jeremy Asher 1c392b23f9 generate warnings for unused options with from_scratch 2016-09-03 12:32:43 -07:00
Jeremy Asher ef0c7543e1 add amazon-chroot post mount commands
This adds an additional PostMountCommands step to the amazon-chroot
builder which executes after the volume is mounted, but before the
extra chroot mounts and copy step.
2016-09-03 12:32:41 -07:00
Jeremy Asher 5e8b697a76 add from_scratch option to amazon-chroot builder
This provides an alternate mode for the amazon-chroot builder which uses
a blank volume to build the image.  It adds StepPreMountCommands to
permit partitioning and format commands to be executed before mounting
the new volume.
2016-09-03 12:28:22 -07:00
Jeremy Asher 85ae04bb75 split up BlockDevices in amazon/common
This breaks up the two options provided by BlockDevices into separate
structs to allow only one of them to be used by the amazon-chroot
builder.
2016-09-03 09:58:45 -07:00
Rickard von Essen 4214464065 Merge pull request #3851 from andyfeller/ansible-redhat-sftp-limitation-documentation
Updated ansible provisioner documentation to cite situation encounter…
2016-09-02 22:55:14 +02:00
Rickard von Essen 28a913025c Updated CHANGELOG.md 2016-09-02 22:53:52 +02:00
Rickard von Essen 227c6ad6e2 Merge pull request #3848 from spuder/patch-3
Installs 64bit chef on windows if available
2016-09-02 22:51:59 +02:00
Andy Feller 71e43abef6 Updated ansible provisioner documentation to cite situation encountered by Redhat family around sftp_command 2016-09-02 07:45:16 -04:00
Spencer Owen 9963bfcd42 removes unneeded white space 2016-09-01 13:39:44 -06:00
Spencer Owen 7fdd303641 Installs 64bit chef on windows if available
Resolves #3847

- Changes linux install url to new omnitruck.chef.io url. 
- Changes powershell install to use omnitruck url instead of hard coded to 32bit msi install.
2016-09-01 13:23:08 -06:00
Rickard von Essen 405f93be9c Updated CHANGELOG.md 2016-09-01 20:56:19 +02:00
Rickard von Essen 16158622fe Merge pull request #3836 from mahcsig/3833-incorrect-ssh-port
Issue 3833 - fix for port error in PR 3347
2016-09-01 20:52:56 +02:00
Rickard von Essen d1e38052f7 Merge pull request #3350 from JoakimLofgren/add-support-for-ansible-galaxy
Add support for ansible-galaxy
2016-09-01 20:51:17 +02:00
Joakim Löfgren eee54d48f3 Add documentation for galaxy_file 2016-09-01 13:51:14 +02:00
Rickard von Essen 2b1808d4fd
Capitalize documentation index correctly 2016-08-30 19:53:23 +02:00
Rickard von Essen d8e67a0b6f
Added file builder documentation. 2016-08-30 19:51:49 +02:00
Billie H. Cleek c3a57ca232 set ansible_env_vars correctly 2016-08-29 00:44:26 -07:00
Rickard von Essen 1270cfb863 Updated CHANGELOG.md 2016-08-27 03:20:10 +02:00
Rickard von Essen ba629922c6 Merge pull request #3662 from ryansb/boost-spot-bid
(AWS Spot) Add 0.5 cents to discovered spot price
2016-08-27 03:18:59 +02:00
Rickard von Essen e5c12bde5c Updated CHANGELOG.md 2016-08-27 03:16:36 +02:00
Ingo Gottwald 0c1051a017 GCE builder: Switch to google.DefaultClient (#3655)
* GCE builder: Switch to google.DefaultClient

This enables authentication through an authenticated gcloud tool.

* GCE builder: Add docs about auth mech precedence
2016-08-27 03:12:55 +02:00
Marc Siegfriedt c1e129848c 3833 - fix for port in MR3347 2016-08-26 20:58:04 +00:00
Rickard von Essen 683cb121db Updated CHANGELOG.md 2016-08-25 09:20:09 +02:00
Krzysztof Wilczynski d01fb65dcf Fix. Use temporary_key_pair_name when specified. (#3739)
Fix: Use temporary_key_pair_name when specified.

This is to fix an issue where the temporary_key_pair_name configuration option
for amazon-ebs and amazon-instance builders would be ignored and replaced with
an automatically generated value using UUID, even when the option was explicitly
specified.

Remove space from the auto-generated SSH key-pair name.

Resolves #3736
2016-08-25 09:17:57 +02:00
Rickard von Essen 5184d0ae0f Clearified how to specify version when reporting issues 2016-08-25 08:46:42 +02:00
Rickard von Essen 2562a0432e Updated CHANGELOG.md 2016-08-24 20:03:51 +02:00
Billie Cleek 023f2edde8 add better logging and error handling to ansible provisioner (#3477) 2016-08-24 19:53:39 +02:00
Christopher Boumenot b7da7768df Merge pull request #3812 from ritasker/azure-setup-script
Changes How Azure AD Apps are Created
2016-08-24 10:06:50 -07:00
Lamoni Finlayson d02b106a16 Fix for issue #2972 - Implemented ssh_host for virtualbox builders (#3617) 2016-08-24 18:30:26 +02:00
Rich d36f79ac44 Changes How Azure AD Apps are Created
- Adds the required fields to `azure ad sp create` command.
- Also stores the object and client Ids.
- Removes the createApplication method and call.
- echos out the parameters in a JSON object style.
2016-08-24 11:59:21 +01:00
Joseph Heck 27cdd4480a detail on connecting to build VM for debugging (#3797)
* detail on connecting to build VM for debugging

 - resolves #485, mostly my own confusion about how to connect to a
   locally built machine being created by packer while using -debug
   functionality.

* fixing name of preseed file typo
2016-08-24 09:12:22 +02:00
Hal Deadman 6f8ec8bd63 fix docs to match code for puppet-server provisioner staging_dir (#3604) 2016-08-24 00:04:00 +02:00
Royce Remer faa971291d document optional amazon-ebs virt type behavior 2016-08-24 00:02:17 +02:00
Huy Nguyen 5e1aa22dc7 IAM permission needed to deregister failed images (#3796) 2016-08-23 23:55:01 +02:00