Megan Marsh
556da47d35
modify validation to allow user to have the original region in the ami_regions list
2017-11-30 13:51:33 -08:00
Christopher Boumenot
da0c13f622
azure: delete keyvault deployment
2017-11-30 01:19:08 -08:00
zhuzhih2017
bdc1fa0527
Merge pull request #5641 from zhuzhih2017/master
...
Add security token supported and TLS handshake timeout support
2017-11-28 11:15:56 +08:00
zhuzhih2017
de0017c37a
Add security token supported and TLS handshake timeout support
2017-11-28 10:32:17 +08:00
John Davies-Colley
10aaa49beb
fixing tests and funky logic 💦
2017-11-28 14:42:14 +13:00
John Davies-Colley
0c787ec9df
Valadating early ⏰
2017-11-28 11:46:32 +13:00
Vijaya Bhaskar Reddy Kondreddi
3d5303c60d
Fix tests
2017-11-24 13:24:44 +05:30
Vijaya Bhaskar Reddy Kondreddi
b7e3f37b44
Add support for differential disk
2017-11-24 12:44:53 +05:30
John Davies-Colley
75320440ec
adding missing quote 🙏
2017-11-22 15:59:15 +13:00
John Davies-Colley
707ec675b2
ssh interface for amazon builders 🔨
2017-11-22 15:49:38 +13:00
Christopher Boumenot
a3c9485062
azure: sanity check resource group names
2017-11-20 15:19:12 -08:00
Christopher Boumenot
247da61ad1
Merge pull request #5593 from boumenot/pr-azure-keep-resource-group
...
Azure: Keep temporary resource group.
2017-11-16 17:39:33 -08:00
Christopher Boumenot
8985bd45ba
azure: go fmt
2017-11-16 17:32:35 -08:00
Christopher Boumenot
ee767e55d1
azure: change literal to constant
2017-11-16 16:36:42 -08:00
Christopher Boumenot
2684153cb2
azure: reject bad configuration faster
2017-11-16 16:34:18 -08:00
Christopher Boumenot
787f08f39b
azure: add user message to indicate what is being deleted
2017-11-16 16:31:05 -08:00
Megan Marsh
20390ff1ec
fix vetting for test fail print statements
2017-11-15 17:01:53 -08:00
SwampDragons
ab542c07ff
Merge pull request #5547 from egraff/hyperv-patch
...
builder/hyperv/vmcx: missing InterpolateContext
2017-11-15 17:00:55 -08:00
Ammar Ansari
b8bd66d10d
Align virtual disk size for qemu builder
...
When booting from a disk image, the Qemu builder resizes the disk to 40000
which is not a multiple of 1kB. This causes problems while booting from the image.
Updating the default disk size to 40960 fixes this issue
2017-11-15 15:00:13 -05:00
Matthew Hooker
b07a0cd6f0
fix tests
...
always sort telemetry options
2017-11-14 16:39:03 -08:00
Megan Marsh
6756df9510
use url library instead of parsing string naiively
2017-11-13 12:57:53 -08:00
Megan Marsh
771349e58c
fix error message
2017-11-13 12:52:47 -08:00
Megan Marsh
764be03876
didn't mean for this error message to get changed
2017-11-13 12:42:57 -08:00
Megan Marsh
0d18de2942
do validation in vmx config stage
2017-11-13 12:42:57 -08:00
Daniel Hess
f0299ba713
Adding GCE container optimized os image project
2017-11-12 00:45:22 -08:00
Arjen Schwarz
f43f3155d4
Remove breaking debug statement
2017-11-10 11:04:31 +11:00
Matthew Hooker
f146e5903f
Merge pull request #5567 from bennu/vm-template-with-export-vm
...
enable vsphere-template post processor to work with export behavior
2017-11-09 15:24:41 -08:00
SwampDragons
e5c59468df
Merge pull request #5343 from evandbrown/pr-googlecompute-subnetworks
...
Interpolate network and subnetwork values
2017-11-09 12:10:41 -08:00
SwampDragons
aae324e4e7
Merge pull request #5562 from hashicorp/fix5558
...
don't set region from metadata if profile is set.
2017-11-09 10:22:15 -08:00
Arjen Schwarz
0e706320ad
Issue #5045 - Add build_resource_group_name
...
* Created a new parameter for using existing resource groups
* Implemented logic to ensure temp_ and build_ can't both be used
* Implemented logic to ensure they can only be used in correct context
* Implemented tests for this logic
* Updated where required to ensure the process works
2017-11-09 22:20:09 +11:00
bugbuilder
23f4d187e2
validating keep_registered and fixing skip_export issues
2017-11-08 15:57:34 -03:00
stack72
450a233303
builder/triton: Wait for ImageCreation State
...
A bug was reported to Joyent, that sometimes packer UI reports that an image was created but it wasn't actually available in Triton for use. We believe that there was a bug uploading that image to Manta but that the metadata of the image was already populated and thus packer was reporting success as it was just checking for the metadata presence
This PR changes Packer to wait for the state of the image to be `active` to make sure that it has fully uploaded and is ready for use
```
==> triton: Stopping source machine (61647c3c-f2bf-4e30-b4bc-f076d3b01522)...
==> triton: Waiting for source machine to stop (61647c3c-f2bf-4e30-b4bc-f076d3b01522)...
==> triton: Creating image from source machine...
==> triton: Waiting for image to become available...
==> triton: Deleting source machine...
==> triton: Waiting for source machine to be deleted...
Build 'triton' finished.
==> Builds finished. The artifacts of successful builds are:
--> triton: Image was created: c2537582-34c7-42ea-bd11-b6ed499d5831
```
2017-11-08 16:38:04 +02:00
Chris Lundquist
d00f884e71
Merge pull request #5530 from BaxterStockman/lxc-builder-cli-options
...
Add options to LXC builder for influencing for how containers are built and started
2017-11-07 22:32:17 -08:00
Matthew Hooker
0a24f4eb2e
don't shadow package name
2017-11-07 16:05:43 -08:00
Matthew Hooker
f681faa296
fix tests
2017-11-07 14:57:10 -08:00
Matthew Hooker
545ee45567
debug region we found
2017-11-07 14:51:20 -08:00
Matthew Hooker
c106e7c26c
Don't set region from metadata if profile is set.
2017-11-07 14:33:26 -08:00
Matthew Hooker
52fc0100eb
this is a critical error
2017-11-07 12:52:03 -08:00
Evan Brown
13e0c232d4
builder/googlecompute: Test networking interpolation
...
This change pulls the logic that interpolates network and subnetwork
into its own func and adds tests.
2017-11-06 21:22:53 -08:00
Evan Brown
f2fed94a71
builder/googlecompute: Derive network and subnetwork IDs locally
...
This change constructs partial URLs for networks and subnetworks if they
are not already partial or full URLs (i.e., they do not contain a '/' in
their name). Network and subnetwork self-links are no longer retrieved
from the API.
Previously, if a user did not provide the network or subnetwork as a
fully-qualified URL (i.e., self-link), the builder would make
compute.(sub)networks.get API calls with the provided identifier to
discover the self-link. This requires the user or service account Packer
is using to have permission to describe those network resources, which
is becoming less common as IAM is used more. Specifically, a user may
have permission to launch a VM into a network/subnetwork, but will not
have permission to call APIs to describe network resources.
2017-11-06 16:41:42 -08:00
Evan Brown
bada7b73c1
builder/googlecompute: Selectively set default network
...
If a network is not specified, it should only be set to "default" if a
subnetwork is also not specified.
2017-11-06 16:41:42 -08:00
Evan Brown
1b3eb1c34d
builder/googlecompute: Set default network_project_id
...
If network_project_id is not specified in the GCE builder config, it
should default to the project_id.
2017-11-06 16:41:42 -08:00
Matthew Hooker
68fa09c308
Merge pull request #5512 from hashicorp/fix5501
...
builder/virtualbox-ovf retry removing VM.
2017-11-06 15:56:08 -08:00
Matthew Hooker
bdb2509735
Merge pull request #5475 from ChrisLundquist/lxd-publish-properties
...
[Lxd] publish properties
2017-11-06 15:45:56 -08:00
Matthew Hooker
0172a5c82b
Merge pull request #5511 from hashicorp/fix5507
...
remove login_email from docker
2017-11-06 15:34:04 -08:00
Arjen Schwarz
f4600a208f
Azure: Keep temporary resource group. Fixes #5045
...
This changeset will detect if the defined temporary resource group
already exists. If it does, it will not destroy it, but clean up
every resource required for building that is created by Packer
individually, both on success and failure.
Unit tests have been fixed, but more tests should be added for the new
functionalities.
2017-11-06 16:16:58 +11:00
Erlend Graff
27fc72c137
fix formatting errors
2017-11-05 15:16:47 +01:00
Erlend Graff
ae6987c74b
hyper-v: add test for hashicorp/packer#5184
2017-11-05 14:58:08 +01:00
Erlend Graff
eeeee3ec35
hyper-v/vmcx: add missing InterpolateContext
2017-11-05 14:55:56 +01:00
Erlend Graff
d890051940
hyper-v: implement driver mock
2017-11-05 14:51:18 +01:00
James Nugent
fdd9b952d1
Merge pull request #5538 from stack72/triton-image-data-source
...
builder/triton: Add a data source for source_machine_image
2017-11-02 15:33:22 -05:00
Matthew Hooker
4d117bf117
Make vm log output less confusing
2017-11-02 10:45:54 -07:00
Matthew Hooker
ac8bc522e0
Merge pull request #5534 from lisimia/digital_ocean_ipv6_option
...
Added option for ipv6 within the digitalocean builder
2017-11-02 09:55:45 -07:00
Matthew Hooker
95e4ae251e
WIP
2017-11-02 09:03:44 -07:00
Matthew Hooker
e87b468c6e
Merge pull request #5536 from hashicorp/fix5535
...
add delay option to security group waiter
2017-11-02 08:54:34 -07:00
Matthew Hooker
8ab390a048
Merge pull request #5495 from smaato/master
...
Fix regressions relating to spot instances and EBS volumes
2017-11-02 08:53:27 -07:00
stack72
7776bf596b
builder/triton: Add a data source for source_machine_image
...
fixes : #5476
Based on this new template addition:
```
{
"variables": {
"image_version": "",
"triton_account": "",
"triton_key_id": "",
"triton_key_material": ""
},
"builders": [{
"type": "triton",
"triton_account": "{{user `triton_account`}}",
"triton_key_id": "{{user `triton_key_id`}}",
"triton_key_material": "{{user `triton_key_material`}}",
"source_machine_package": "g4-highcpu-128M",
"source_machine_image_filter": {
"name": "ubuntu-16.04",
"most_recent": "true"
},
"ssh_username": "root",
"image_version": "{{user `image_version`}}",
"image_name": "teamcity-server"
}],
"provisioners": [
{
"type": "shell",
"start_retry_timeout": "10m",
"inline": [
"sudo apt-get update -y",
"sudo apt-get install -y nginx"
]
}
]
}
```
I got the following output from packer:
```
packer-testing % make image
packer build \
-var "triton_account=stack72_joyent" \
-var "triton_key_id=40:9d:d3:f9:0b:86:62:48:f4:2e:a5:8e:43:00:2a:9b" \
-var "triton_key_material=""" \
-var "image_version=1.0.0" \
new-template.json
triton output will be in this color.
==> triton: Selecting an image based on search criteria
==> triton: Based, on given search criteria, Machine ID is: "7b5981c4-1889-11e7-b4c5-3f3bdfc9b88b"
==> triton: Waiting for source machine to become available...
==> triton: Waiting for SSH to become available...
==> triton: Connected to SSH!
==> triton: Provisioning with shell script: /var/folders/_p/2_zj9lqn4n11fx20qy787p7c0000gn/T/packer-shell797317310
triton: Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
triton: Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
```
I can verify from the triton cli tools that the id `7b5981c4` (from the packer output) is indeed the correct ID
```
terraform [master●] % triton images name=~ubuntu-16.04
SHORTID NAME VERSION FLAGS OS TYPE PUBDATE
49b22aec ubuntu-16.04 20160427 P linux lx-dataset 2016-04-27
675834a0 ubuntu-16.04 20160505 P linux lx-dataset 2016-05-05
4edaa46a ubuntu-16.04 20160516 P linux lx-dataset 2016-05-16
05140a7e ubuntu-16.04 20160601 P linux lx-dataset 2016-06-01
e331b22a ubuntu-16.04 20161004 P linux lx-dataset 2016-10-04
8879c758 ubuntu-16.04 20161213 P linux lx-dataset 2016-12-13
7b5981c4 ubuntu-16.04 20170403 P linux lx-dataset 2017-04-03 <------- THIS IS THE LATEST UBUNTU IMAGE
```
2017-11-02 16:10:16 +02:00
Matthew Hooker
f2413ff138
add delay option to security group waiter
2017-11-02 00:25:54 -07:00
Matthew Hooker
a14e9f4d48
Merge pull request #5525 from hashicorp/fix5524
...
use correct default region when deregistering AMIs.
2017-11-01 16:17:59 -07:00
Lawrence
5509d0734b
Added ipv6 option for digitalocean builder
...
the ipv6 option is already part of the godo package
Updated documentation to reflect new feature
Closes: https://github.com/hashicorp/packer/issues/5533
2017-11-01 15:41:25 -04:00
James Nugent
a495948dc5
Merge pull request #5531 from stack72/bump-triton-dependencies
...
Bump Joyent/triton-go to modern version of the SDK
2017-10-31 11:21:08 -05:00
stack72
b04796c2cc
Bump Joyent/triton-go to modern version of the SDK
...
This brings packer into the same version of triton-go as that in Terraform, where we rewrote the package from a library with everything in 1 place to individual packages
I was able to successfully provision a machine on triton using this new change, you can find the output in the attached gist
https://gist.github.com/stack72/a64d745459107c5a16bcb156965597ce
2017-10-31 18:08:53 +02:00
Matthew Hooker
19e6049f17
style fixes
2017-10-31 08:48:17 -07:00
Matthew Hooker
f64fa7b5ba
Merge pull request #5491 from BenPhegan/hyperv-disk_additional_size
...
Hyper-V disk_additional_size capability
2017-10-31 08:42:07 -07:00
Matt Schreiber
1f2135f65e
Add options to LXC builder for influencing for how containers are built and started
...
via
- create_options: a list of options passed to lxc-create
- start_options: a list of options passed to lxc-start
- attach_options: a list of options passed to lxc-attach
Also extended existing LXC builder BATS tests to exercise the new builder
options, and added website docs.
2017-10-30 21:48:43 -04:00
Matthew Hooker
d322fc6c19
Shorten metadata timeout
...
When running in travis, metadata requests will timeout after 5 seconds.
After 24 such timeouts, we'll hit travis' build timeout of two minutes,
and the build will fail. Lowering it to 100 gets us in a safe time
limit. We _may_ need to expose a timeout env var with this logic,
however.
2017-10-30 15:22:15 -07:00
Matthew Hooker
314fc94bd8
clean up
2017-10-30 15:02:39 -07:00
Matthew Hooker
0e4ea7420b
fix tests
2017-10-30 14:34:16 -07:00
Matthew Hooker
c65fa8490d
fix various bugs deregistering AMIs
...
always deregister ami in session region
validate that session region does not appear in ami_regions
2017-10-30 14:17:19 -07:00
Matthew Hooker
6c4fbe8d87
use correct default region when deregistering AMIs.
2017-10-30 13:07:58 -07:00
Matthew Hooker
faf96b369f
Merge pull request #5510 from hashicorp/fix5216
...
fix hyper-v admin check
2017-10-27 08:49:16 -07:00
Joe Ferguson
5c2f758053
🎨 Fix typo in "copyed" -> "copied" usages.
2017-10-26 07:42:49 -05:00
Matthew Hooker
794e518eb7
use hyper-v admin group, not admin
2017-10-25 13:29:03 -07:00
Matthew Hooker
812fd12a0b
move trimspace to powershell exit check
2017-10-25 13:28:59 -07:00
Matthew Hooker
1901c0385f
remove login_email from docker
...
adds fixer
removes documentation
removes from docker builder and docker-push pp
2017-10-25 10:53:06 -07:00
Matthew Hooker
fb098d045d
builder/virtualbox-ovf retry removing VM.
...
moves behavior from builder/virtualbox-iso into the driver
so it is automatically available to callers.
2017-10-25 10:27:33 -07:00
Matthew Hooker
0be02ab217
hyper-v: Don't error while checking for admin permissions.
2017-10-25 09:18:40 -07:00
Mark Meyer
4c5df79222
Fix regressions introduced in the instance builder
...
Related to #5504
2017-10-24 23:23:18 +02:00
Mark Meyer
309bf61257
Add missing blockdevices to ebsvolume builder
2017-10-23 22:33:16 +02:00
Mark Meyer
1cc9b3f1e3
Bring back volume tagging to ebsvolume
...
Related to #5486
2017-10-23 22:09:04 +02:00
Mark Meyer
7e1646826d
Check if VolumeTags is empty before tagging volumes
...
Related to #5486
2017-10-23 21:10:40 +02:00
Andrew Pryde
f31c2c59c1
Merge pull request #5407 from prydie/fix-5401
...
Fix Oracle OCI builder ignores region value provided in OCI config file
2017-10-23 09:56:49 +01:00
Ben Phegan
12fc928e1d
Initial commit of Hyper-V disk_additional_size capability. Support a
...
maximum of 64 disks added to the SCSI controller. Implement #4823 .
2017-10-23 08:26:35 +11:00
SwampDragons
1563fb97c7
Merge pull request #5463 from atsushi-ishibashi/issue5323
...
Add clean_image_name for gcp
2017-10-20 14:16:11 -07:00
Megan Marsh
4721b48c70
add a couple of extra tests and reword documentation
2017-10-20 14:06:02 -07:00
Atsushi Ishibashi
c3a00993d0
Don't truncate and replace with 'a', update docs
2017-10-19 10:45:48 +09:00
Andrew Pryde
bb497c2453
Fixed incorrect test failure message in oci client
2017-10-18 11:11:14 +01:00
Chris Lundquist
c1a7b3845a
[lxd] allow passing of publish properties
2017-10-18 04:57:13 +00:00
Atsushi Ishibashi
3e68f1c505
Change first and last character when it doesn't match
2017-10-18 11:10:19 +09:00
Aaron Browne
ffc63a8724
Use amazon common AccessConfig for ecr_login
...
Signed-off-by: Aaron Browne <aaron0browne@gmail.com>
2017-10-17 15:00:19 -04:00
Atsushi Ishibashi
210dd08326
Change args of NewConfig
2017-10-17 13:48:15 +09:00
Atsushi Ishibashi
5310d5629b
Modify clean_image_name not defined error
2017-10-17 12:31:50 +09:00
Aaron Browne
8df643c343
Add aws_profile option to docker-push ecr_login
...
An aws_profile option is added to the AWS ECR login credentials
configuration to allow using shared AWS credentials stored in
a non-default profile.
Signed-off-by: Aaron Browne <aaron0browne@gmail.com>
2017-10-16 16:55:34 -04:00
Atsushi Ishibashi
3600924e59
Rename files
2017-10-17 04:55:50 +09:00
Atsushi Ishibashi
2da4e4c31d
Change func name
2017-10-16 11:45:18 +09:00
Atsushi Ishibashi
caa6c9bf22
Add clean_ami_name for gcp
2017-10-16 00:53:18 +09:00
Matthew Hooker
454cb08896
Merge pull request #5336 from SLAZ666/keepregistered-ovf
...
Add option keep_registered to virtualbox-ovf builder
2017-10-13 17:45:07 -07:00
Olivier Bilodeau
820811675d
vmware-iso builder: Logging on network errors on connection refused
2017-10-13 19:00:48 -04:00
Matthew Hooker
f617a678b1
Merge pull request #5422 from localghost/upload_owner_fix
...
Fix owner of files uploaded to docker container run as non-root.
2017-10-13 14:56:16 -07:00
SwampDragons
f3c33240fa
Merge pull request #5444 from vijayinvites/packer-vhdx
...
Hyperv vmcx builder and allow vhd/vhdx instead of ISO
2017-10-13 11:53:27 -07:00
Matthew Hooker
f7e269945e
add cidr validation and rename option
2017-10-12 17:05:56 -07:00
Matthew Hooker
c74be87187
Merge pull request #5384 from dave2/sg-source-cidr
...
[WIP] Allow temporary security group to have source CIDR block explicit
2017-10-12 17:05:45 -07:00
Matthew Hooker
07b013945f
more consistent flag name
2017-10-12 16:38:18 -07:00
Matthew Hooker
106408f6be
add new disable_vnc option
2017-10-12 16:34:40 -07:00
nictrix
6a238a3ef3
add option to skip vnc phase and update docs
2017-10-12 16:28:27 -07:00
SwampDragons
512ac214b4
Merge pull request #5417 from smaato/master
...
Add ability to tag volumes on creation
2017-10-12 12:56:25 -07:00
Mark Meyer
dbb3c76032
Remove redundant step and its usage
...
StepTagEBSVolumes is no longer needed, since this functionality is now
taken over by StepRunSourceInstance and StepRunSpotInstance. So remove
this functionality from the codebase.
2017-10-12 21:40:21 +02:00
Vijaya Bhaskar Reddy Kondreddi
4f6a207441
go fmt
2017-10-11 22:10:39 +05:30
Matthew Hooker
2655cf7493
fix tests
2017-10-11 22:05:53 +05:30
Matthew Hooker
91d66fb67c
use new method of building runner
2017-10-11 22:05:52 +05:30
Matthew Hooker
d8c6e6d4a4
remove duplicate line
2017-10-11 22:05:52 +05:30
Matthew Hooker
7978fd8ec0
make fmt
2017-10-11 22:05:52 +05:30
Taliesin Sisson
5f2c71f7d7
Floppy directories are provided by default with common.floppydrives
2017-10-11 22:05:52 +05:30
Taliesin Sisson
2fbe0b4a7f
Don't try to mount vhd and vhdx files as dvd drive. Hard drives are mounted in the create vm step
2017-10-11 22:05:52 +05:30
Taliesin Sisson
628116f4c4
Test settings for clone from vm and import vmxc from path
2017-10-11 22:05:52 +05:30
Taliesin Sisson
8232759397
If vhd or vhdx extension is specified for ISOUrls, we want to use an existing hard drive which means that we don't need to specify hard drive size
...
Filepath.ext includes the dot
2017-10-11 22:05:51 +05:30
Taliesin Sisson
3d0ac529e0
use common floppy_config instead of builder specific one
...
Add tests for floppy files and comm
2017-10-11 22:05:51 +05:30
Taliesin Sisson
efa62e1550
Can specify an iso, vhd or vhdx for download. If it is a vhd or vhdx it is used as the hard drive for spinning up a new machine, importing an exported virtual machine or cloning a virtual machine.
...
Can import a virtual machine from a folder
Can clone an existing virtual machine
2017-10-11 22:05:45 +05:30
Taliesin Sisson
452fcbd9a1
Only attach dvd drive if there is one
...
Fix debug messages for cloning
Add hyperv-vmcx as a builder from command line
2017-10-11 21:42:32 +05:30
Taliesin Sisson
429e1bc3ad
Adding an ISO is now optional for hyperv vmcx
...
Add documentation for hyperv vmcx
2017-10-11 21:42:32 +05:30
Taliesin Sisson
6fd7f0877d
Initial check in to add a builder that can clone existing hyper v machines
2017-10-11 21:42:32 +05:30
localghost
5866d4ea24
Move container user inspect to StepConnectDocker.
2017-10-10 22:45:47 +02:00
Matthew Hooker
eb64920e80
Merge pull request #5206 from sandersaares/hyperv-second-temp-dir
...
(Hyper-V) Enable a separate directory to be used for temporary VHDs
2017-10-09 10:08:00 -07:00
Matthew Hooker
ae455bff99
add debugging help if ec2-upload-bundle fails
2017-10-05 17:33:07 -07:00
Matthew Hooker
2a326b5172
fix nil ptr exception
2017-10-05 16:34:13 -07:00
Megan Marsh
e8cabc1e83
implemented for LXD
2017-10-04 15:23:36 -07:00
Megan Marsh
93bddb3e65
implement directory fix for lxc file uploads
2017-10-04 13:35:15 -07:00
Mark Meyer
2661fd7869
Move building of spot instances into its own step
2017-10-04 12:38:21 +02:00
Megan Marsh
8452ca898c
implemented for docker communicator
2017-10-03 17:06:33 -07:00
localghost
ba72021274
Fix owner of files uploaded to docker container run as non-root.
2017-10-03 21:49:26 +02:00
Mark Meyer
939b44b4fd
Add logic to handle volumes of spot instances
2017-10-03 01:03:21 +02:00
Mark Meyer
cfd6b6fed5
Change EBS builder to do tag-on-creation
...
The EBS builder will now use the tag-on-creation pattern, so
that it's possible to restrict packer to only create volumes that are
properly tagged by using an AWS policy.
2017-10-03 00:13:02 +02:00
Andrew Pryde
f426ba4660
Do not override region in OCI builder
...
Only default the OCI builder region to us-phoenix-1 when no value is
present in the packer template and the OCI config file.
Fixes : #5401
2017-09-29 10:51:31 +01:00
Matthew Hooker
b3661c1f63
builder/docker: set user during exec.
...
Add `exec_user` option to control what user `docker exec` is run as.
2017-09-28 16:39:23 -07:00
Matthew Hooker
74bf75b71a
Merge pull request #5388 from hashicorp/fix5386
...
cloudstack: check that template was created
2017-09-27 15:34:57 -07:00
Megan Marsh
201e8c05a0
add ami name to output
2017-09-26 16:04:40 -07:00
Matthew Hooker
b42c916f9a
cloudstack: check that template was created
2017-09-26 13:36:53 -07:00
Zanetti, David
8a8b51be97
Allow temporary security group to have source CIDR block explicitly provided
2017-09-26 00:57:56 +00:00
Matthew Hooker
02cd6bc7f0
Merge pull request #5288 from hashicorp/fix3114
...
add token variable to upload bundle command template
2017-09-25 18:36:28 -05:00
Matthew Hooker
4bc8e7de3d
add token variable to upload bundle command template
2017-09-25 16:35:53 -07:00
Matthew Hooker
eabcec6809
Merge pull request #5363 from batzen/patch-1
...
Fixes #4880 by always using EnableDynamicMemory
2017-09-25 18:14:30 -05:00
Zanetti, David
42dc1e4795
In Amazon builders, allow tag names to be interpolated like values
2017-09-25 02:24:23 +00:00
Bastian Schmidt
c1aba87b39
Fixes #4880 by always using EnableDynamicMemory
...
This was needed because the default in Hyper-V on Windows 10 changed from "false" to "true".
2017-09-20 14:53:37 +02:00
Peter Mounce
7cbd57faa6
Filling it back
2017-09-19 11:40:01 +01:00
Peter Mounce
15a456750b
CI as compiler!
2017-09-19 11:34:08 +01:00
Peter Mounce
2239d55fdb
Add test coverage
2017-09-19 11:31:05 +01:00
Peter Mounce
5bcb0644c3
Using CI for compilation errors because am on Windows
2017-09-18 18:13:21 +01:00
Peter Mounce
ac8eedf171
Introduce a new configuration parameter instead
...
... so that one can have a different list compared to instances.
2017-09-18 17:53:40 +01:00
Peter Mounce
e579b947b1
Fix signature that I missed
2017-09-18 17:34:06 +01:00
Peter Mounce
8789ae72e8
Make the googlecompute builder label the resulting image.
...
... so that it's possible to find images matching particular characteristics more easily.
2017-09-18 15:44:01 +01:00
SLAZ666
f6bb79784f
Add option keep_registered to virtualbox-ovf builder
2017-09-13 15:37:26 +02:00
Matthew Hooker
392af507e0
builder/docker: respect rsync semantics when uploading directories.
2017-09-12 14:45:25 -07:00
Matthew Hooker
ab216ec61b
Add license with copyright notice
2017-09-12 12:22:50 -07:00
Andrew Pryde
6fd2f6701d
Rename Oracle BMCS builder to OCI
...
Oracle Bare Metal Cloud Services (BMCS) has been rebranded as Oracle
Cloud Infrastructure (OCI).
2017-09-12 10:40:56 -07:00
Matthew Hooker
624b1e5110
Merge pull request #4554 from prydie/f-oracle-bmcs
...
Oracle Bare Metal Cloud Services (BMCS) builder
2017-09-11 09:42:14 -07:00
Matthew Hooker
322422f235
remove copyright notice header and add COPYRIGHT file
2017-09-08 09:49:06 -07:00
Matthew Hooker
d4895156e5
remove copyright notice
2017-09-07 11:44:38 -07:00
Matthew Hooker
f7c85e36bc
add pkcs12 license
2017-09-07 11:40:14 -07:00
Matthew Hooker
57237c55e6
Merge pull request #5308 from pdecat/f-gce-instance-labels
...
Add support for setting labels on GCE instance
2017-09-06 14:59:40 -07:00
Matthew Hooker
3eeb722897
Merge pull request #5301 from hashicorp/pkcs12redux
...
Replace pkcs12 code with upstream
2017-09-06 10:52:11 -07:00
Megan Marsh
4d89ab3943
Merge pull request #5309 from hashicorp/pr/3523
...
Pr/3523
2017-09-06 09:27:58 -07:00
Patrick Decat
a7283f2281
Add support for setting labels on GCE instance
2017-09-06 10:58:08 +02:00
zhuzhih2017
1861a22c77
Merge pull request #5219 from zhuzhih2017/master
...
update alicloud go sdk and enable multi sites support for alicloud
2017-09-06 09:41:38 +08:00
Megan Marsh
8d24b3930a
cleanup imports and rebase artifacts
2017-09-05 15:23:22 -07:00
Chris Lundquist
cd2a783382
[lxc] update to new conventions, improve docs
2017-09-05 15:19:25 -07:00
Chris Lundquist
5eb1bc9338
[lxc] go fmt our files
2017-09-05 15:18:07 -07:00
Chris Lundquist
9b4a7e935f
[lxc] add basic tests
2017-09-05 15:18:07 -07:00
Chris Lundquist
2d19b4f2d2
Revert "[lxc] only build for linux. Ignore vim swp files."
...
This reverts commit 60409dc678273864dbb29f624a669d00b4cc0134.
2017-09-05 15:17:15 -07:00
Chris Lundquist
8b4e94d9c6
[lxc] remove commented code
2017-09-05 15:17:15 -07:00
Chris Lundquist
e23920a6b9
[lxc] only build for linux. Ignore vim swp files.
2017-09-05 15:17:15 -07:00
Chris Lundquist
15c18c83a9
[lxc] default to target runlevel 3
2017-09-05 15:17:15 -07:00
Chris Lundquist
ddbb584235
[lxc] Ubuntu likes runlevel 5
2017-09-05 15:17:15 -07:00
Chris Lundquist
341ebdd7e8
[lxc] implement interface, add validation
2017-09-05 15:17:15 -07:00
Michele Catalano
659a0da594
Add lxc builder to packer
2017-09-05 15:15:28 -07:00
Megan Marsh
7f0d253dbf
some last minute cleanup
2017-09-05 14:09:15 -07:00
Chris Lundquist
f6bc158a80
[lxd] minor fixups for new styles and docs
2017-09-05 12:46:36 -07:00
Chris Lundquist
29bbe10c1c
[lxd] rework local tar command to avoid chdir
2017-09-05 12:44:39 -07:00
Chris Lundquist
acae8fc2f9
[lxd] implement artifact detroy
2017-09-05 12:44:39 -07:00
Chris Lundquist
68bb72380a
[lxd] avoid extra container start/stop and race
...
Before we couldn't be sure if we were a permanent container or not.
Now we explicitly pass this on the command line so we don't depend on the
extra logic in `lxc publish --force` for ephemeral handling.
This means we avoid restarting the container after we publish
since we tear it down right away anyhow.
Likewise, there was sometimes a race which prevented the deletion
while the container was in a boot stage.
2017-09-05 12:44:39 -07:00
Chris Lundquist
e29f06fe1c
[lxd] refactor commands to dry things up
2017-09-05 12:44:39 -07:00
Chris Lundquist
c79e8ddc8f
[lxd] more cleanup
2017-09-05 12:44:39 -07:00
Chris Lundquist
607da30547
[lxd] remove CheckInit
2017-09-05 12:44:39 -07:00
Chris Lundquist
8326d7b6ac
[lxd] fixup some publish stuff
2017-09-05 12:44:39 -07:00
Chris Lundquist
c62f9a0301
[lxd] cleanup and tweaks
2017-09-05 12:44:39 -07:00
Chris Lundquist
3a0ef7b8b8
[lxd] it 'works'
2017-09-05 12:44:39 -07:00
Chris Lundquist
821cca56a8
[lxd] hack for UploadDir, improve Upload/Download
2017-09-05 12:44:39 -07:00
Chris Lundquist
7366b6c78e
[lxd] first pass
2017-09-05 12:44:39 -07:00
Andrew Pryde
dbbe8665e6
NewRunner -> NewRunnerWithPauseFn in bmcs builder
2017-09-05 11:08:27 +01:00
Rickard von Essen
516bf52115
Merge pull request #5173 from rickard-von-essen/cloudstack-fixes
...
cloudstack: Move ipaddress, host port, and source to statebag
2017-09-05 06:29:22 +02:00
Matthew Hooker
07bb47f793
Replace pkcs12 code with upstream
2017-09-02 16:09:29 -07:00
Sander Saares
2a1a9a55f8
Clean up both VHD and regular temp dir
2017-09-02 14:55:00 +03:00
Sander Saares
028c941b77
Enable use of separate temp path for Hyper-V VHD
2017-09-02 14:55:00 +03:00
Megan Marsh
3974976518
Merge pull request #5137 from vilkaspilkas/f-googlecompute-accelerator
...
Add accelerator api support to googlecompute builder
2017-09-01 14:12:26 -07:00
Rickard von Essen
cad3978e6a
cloudstack: Updated after review
2017-08-31 12:00:29 -07:00
Rickard von Essen
1a1ab3863c
cloudstack: Add support for Security Groups
...
Adds two new options:
- `create_security_group` which automatically creates a temporary SG.
- `security_groups` which takes a list of SGs to attach to the instance.
2017-08-31 12:00:03 -07:00
Matthew Hooker
d843531452
Merge pull request #5297 from vijayinvites/fix5295
...
Fix -on-error issue not working.
2017-08-31 11:52:02 -07:00
Vijaya Bhaskar Reddy Kondreddi
e45223a867
Fix -on-error issue not working.
...
When we supply -on-error flag for Packer with Hyper-v builder, it does not do anything.
2017-09-01 00:14:28 +05:30
Megan Marsh
e93d64e80f
Merge pull request #4592 from jimmythedog/ovfexportpath-localoutputdir
...
Ovfexportpath localoutputdir -- Merging for release with 1.1.0
2017-08-31 09:55:58 -07:00
Megan Marsh
cc104cdf55
Merge pull request #5174 from rickard-von-essen/cloudstack-temp-ssh-key
...
cloudstack: Setup temporary SSH keypair
2017-08-30 16:49:11 -07:00
Matthew Hooker
cd11e4ff33
Merge pull request #5187 from mkuzmin/vmware-artifactid
...
vmware: Publish artifact ID
2017-08-30 13:56:49 -07:00