2342 Commits
Author SHA1 Message Date
Matthew Hooker a242014aa9 Merge pull request #4749 from rickard-von-essen/issue-4608
builder/googlecompute: Revert to using default service account
2017-04-03 11:24:50 -07:00
Matthew Hooker b2775b0ca3 more fixes from errcheck 2017-03-29 17:34:42 -07:00
Matthew Hooker f91f24f164 s/non existent/nonexistent/ 2017-03-29 17:34:41 -07:00
Matthew Hooker 9131c8cea8 check for a couple errors 2017-03-29 17:34:40 -07:00
Matthew Hooker 793c42d6a2 remove unnecessary type conversions 2017-03-29 17:34:40 -07:00
Matthew Hooker 9962fd486b automagic simplification 2017-03-29 17:34:39 -07:00
Matthew Hooker 1392f4dd09 simplify some code 2017-03-29 17:34:39 -07:00
Matthew Hooker 81472bdbab Print instead of Printf with no dynamic first variable. 2017-03-29 17:34:38 -07:00
Matthew Hooker 9b8ab21c15 remove a bunch of dead code.
https://github.com/dominikh/go-tools/tree/master/cmd/unused
2017-03-29 17:34:38 -07:00
Matthew Hooker 5781c27fef spell fixes 2017-03-29 17:34:38 -07:00
Matthew Hooker 3e9cf70fc9 builder/amazon-chroot: nullable copy_files
Allow users to specify that they don't want any
files copied into the chroot by setting an empty
copy_files list
2017-03-29 17:32:02 -07:00
Matthew Hooker 0fb55177e4 fix typo 2017-03-29 17:32:01 -07:00
Matthew Hooker 77d20776a9 builder/virtualbox: retry removing floppy controller 2017-03-29 17:32:01 -07:00
Matthew Hooker 669dcae766 builder/amazon: report tag creation 2017-03-29 17:32:00 -07:00
Matthew Hooker de3e2312c8 builder/hyper-v don't wait for shutdown to return.
Mirrors work done in #4436
2017-03-29 17:31:58 -07:00
Matthew Hooker da145b960b builder/virtualbox: allow skipping upload of version file 2017-03-29 17:31:55 -07:00
Matthew Hooker c4d8cfc090 builder/amazon: validate ssh key name/file
When using ssh_key_name, ssh_private_key file must be given,
or ssh_agent_auth enabled.

When automatically retrieving the winrm password, if ssh_key_name is
given, ssh_private_key_file must also be given.
2017-03-29 17:31:51 -07:00
Matthew Hooker e67994b174 builder/amazon: set force_deregister to true on -force 2017-03-29 17:31:48 -07:00
Matthew Hooker 2c1740ab3c builder/hyper-v: validate output dir in step, not in config
essentially same work as #2233
2017-03-29 17:31:48 -07:00
Tadas Medisauskas f851475df8 Add support for Hyper-V admins security group 2017-03-29 17:31:47 -07:00
Rickard von Essen b5a27c23fe googlecompute: Correct values for on_host_maintenance
If preemptible is true then on_host_maintenance must be TERMINATE.

Also corrected order in docs.

Closes #4620
2017-03-29 17:31:43 -07:00
Rickard von Essen 408a15fe13 amazon: Step Region Copy crashing on device mapping
Closes #4635
2017-03-29 17:31:40 -07:00
Matthew Hooker 8cc2ed7d6e vmware/esx: try for longer to connect to vnc port 2017-02-28 22:21:19 -08:00
Matthew Hooker 9c027aa70b Merge pull request #4601 from mitchellh/ebssurrogate-copy-ami
build/amazon-ebssurrogate: Add region copy, attributes, tags steps
2017-02-27 10:47:34 -08:00
James Nugent e856339309 build/amazon-ebssurrogate: Add region copy, attributes, tags steps
As pointed out in the initial code review of #4351, some of the steps
from the standard EBS builder were (intetionally) omitted. It turns out
that these actually are useful, and the original rationale for the
omission was wrong. Consequently, this commit adds in the following
steps:

- `StepPrevalidate`
- `StepTagEBSVolumes`
- `StepDeregisterAMI`
- `StepCreateEncryptedAMICopy`
- `StepAMIRegionCopy`
- `StepModifyAMIAttribute`
- `StepCreateTags`

We also fix the interpolation filter and documentation to reflect these
additions, though the majority were already documented and just not
functional.
2017-02-27 09:05:39 -06:00
James Nugent 1eec5bf058 builder/amazon-ebssurrogate: Exclude duplicate root volume
This commit removes the root volume from the list of launch block device
mappings passed to the image, since it is already passed in the form of
a snapshot (which is then configured to be the root device). Without
this commit, AMIs created using this builder have two root volumes
attached on launch.
2017-02-27 06:57:35 -06:00
Matthew Hooker fd1b00a0d1 use aws helper method 2017-02-26 19:33:34 -08:00
Matthew Hooker 61976dfd86 Merge pull request #4578 from life360/enable_ena
Always set both SRIOV and ENA when Enhanced Networking is enabled
2017-02-26 19:31:22 -08:00
Matthew Hooker ed92055372 Merge pull request #4532 from mitchellh/vmipgetagain
builder/vmware: don't cache ip address so we know if it changes
2017-02-26 18:46:46 -08:00
Matthew Hooker 1f2df5c174 Merge pull request #4536 from mitchellh/vmwareextraopts
builder/vmware: allow extra options for ovftool
2017-02-26 18:45:40 -08:00
Matthew Hooker 6a7c37beb6 builder/amazon-chroot: support encrypted boot volume 2017-02-26 17:48:13 -08:00
Matthew Hooker f62d0abf4e Merge pull request #4560 from guessi/deprecated_option_tag
Conditional ignore `force` flag for `docker-tag`
2017-02-26 17:43:25 -08:00
Matthew Hooker 2cb9b32acf don't attempt to delete non-existant key when using agent auth 2017-02-26 17:38:22 -08:00
Matthew Hooker f95514c120 fix ssh agent authentication
treat key name to empty string if it's not been set
by prior step.
2017-02-26 17:17:49 -08:00
Aaron Stone 1cc3cdf7b5 Always set both SRIOV and ENA when Enhanced Networking is enabled
Set SriovNetSupport to "simple". As of February 2017, this applies to C3, C4,
D2, I2, R3, and M4 (excluding m4.16xlarge).

Set EnaSupport to true. As of February 2017, this applies to C5, I3, P2, R4,
X1, and m4.16xlarge.
2017-02-25 07:16:35 -08:00
Richard Owen 33a4c2e13b Change EC2 WindowsPasswordTimeout to 20 minutes
10 minutes is often exceeded when using a custom source AMI
which has been sysprepped.
2017-02-24 11:08:17 +00:00
James Nugent 635aeb765b amazon/ebssurrogate: Add New Builder
This commit adds a new type of builder which builds an AMI based on a
snapshot of an EBS volume which is provisioned on a "surrogate"
instance. This can be used to build operating system images from
scratch, but unlike the `chroot` builder does not require running from
an AWS EC2 instance.
2017-02-21 18:38:19 -06:00
Matthew Hooker 3409ea76ee Merge pull request #4564 from wtsi-hgi/fix/4551-openstack-builder-reuse-ips
add reuse_ips option for openstack builder
2017-02-21 15:20:10 -08:00
Matthew Hooker 2381bfa8ad Merge pull request #4518 from AlexLov/bugfix_image_family
[googlecompute] fix bug of creating image from custom image_family
2017-02-21 10:58:23 -08:00
Joshua Randall e9cfaa2730 add reuse_ips option for openstack builder
add reuse_ips option and use it to control whether openstack builder
will attempt to reuse existing unassigned floating ips rather than
allocating a new one.

fix #4551
2017-02-16 12:44:03 +00:00
guessi 66615e3f56 reuse the func DockerDriver.Version() 2017-02-16 08:26:44 +08:00
guessi 5eae809b0c improve description 2017-02-16 01:14:21 +08:00
guessi c5e01da3c6 Conditional ignore force flag for docker-tag
`docker tag -f` will now become an error, since it was removed after
upgrading docker daemon to 1.12.0 (or later)

this PR is to bypass `force` flag if docker >= 1.12.0 was detected

reference:
- https://docs.docker.com/engine/deprecated/#/f-flag-on-docker-tag

Signed-off-by: guessi <[email protected]>
2017-02-16 00:50:46 +08:00
Matthew Hooker 4f92b9fb61 Merge branch 'pr/4544' 2017-02-10 12:11:43 -08:00
Dimitri Rudnev 2009fcd9df OnHostMaintenance, googlecompute updating documenation , additional option for validation and setting defaults 2017-02-10 11:57:15 -08:00
Dimitri Rudnev bab590c177 Adding OnHostMaintenance option for googlecompue builder 2017-02-10 10:58:57 -08:00
Matthew Hooker 0ed84f843e builder/vmware: allow extra options for ovftool 2017-02-10 00:22:20 -08:00
Matthew Hooker 29dd20da68 builder/vmware: don't cache ip address so we know if it changes 2017-02-09 23:16:40 -08:00
Matthew Hooker c41e32dbc1 print stderr on docker import failure 2017-02-09 20:41:29 -08:00
Alex Lov cfa8f8c215 fix bug of creating image from custom image_family 2017-02-08 22:50:19 +03:00