Commit Graph

6581 Commits

Author SHA1 Message Date
Eugene Chuvyrov eb75dbb693 Changed Service Principal Creation sequence to comply with newer CLI reqs 2016-11-08 00:02:31 -08:00
Eugene Chuvyrov 403fe17f96 Changed Service Principal Creation sequence to comply with newer CLI reqs 2016-11-08 00:00:15 -08:00
Eugene Chuvyrov ab48ed3fe6 Changed Service Principal Creation sequence to comply with newer CLI reqs 2016-11-07 23:18:10 -08:00
Eugene Chuvyrov a5c6d3743e Changed Service Principal Creation sequence to comply with newer CLI reqs 2016-11-07 23:14:15 -08:00
Eugene Chuvyrov fdbb7a0b3f Removed Azure CLI version checking 2016-11-07 23:02:05 -08:00
Justin Campbell fdaa89681a
Update go-atlas.
Use the atlas.BuildVars type.

The -var/-var-file precedence issue is a bug documented in #2682. Not
introduced in this patch
2016-11-07 12:52:32 -08:00
Justin Campbell 16adc3f7cc
command/push: Add test for var-file push to Atlas 2016-11-07 12:52:30 -08:00
Justin Campbell 56cd8171cc
command/push: Push CLI vars to Atlas 2016-11-07 12:52:29 -08:00
Matthew Hooker 2128a391e0 Merge pull request #4127 from spuder/fix/azure-setup
Abort if azure-setup.sh using incompatible cli.
2016-11-07 10:30:52 -08:00
Matthew Hooker d81c06765d
fix go vet issue.
closes #4130
2016-11-07 10:17:53 -08:00
Matthew Hooker 613b935514 Merge pull request #4128 from spuder/f/principle-principal
fixes typo
2016-11-07 10:05:08 -08:00
Spencer Owen ef907282ef fixes typo 2016-11-06 17:15:25 -07:00
Spencer Owen f381d81206 Throw error if azure-setup.sh using incompatible cli. 2016-11-06 17:08:13 -07:00
Rickard von Essen f06ab286bf Updated CHANGELOG.md 2016-11-05 20:00:31 +01:00
Rickard von Essen f6c611da5b Merge pull request #3940 from bhcleek/fix-fastpath
allow ssh communicator's Upload fastpath to execute
2016-11-05 19:58:33 +01:00
Rickard von Essen 2ae24a2feb Updated CHANGELOG.md 2016-11-05 19:41:49 +01:00
Rickard von Essen 5114b66bab Merge pull request #4123 from rickard-von-essen/issue-4117
provisioner/ansible: Move info messages to log
2016-11-05 19:40:50 +01:00
Rickard von Essen a616c3da3c
provisioner/ansible: Move info messages to log
Make the ansible provisioner less noisy by moving most messages to the
log instead of ui print outs.

Closes #4117
2016-11-05 14:25:45 +01:00
Rickard von Essen 233913bc38 Fixed misspelling of semantics 2016-11-05 13:57:57 +01:00
Rickard von Essen f30c568507 Updated CHANGELOG.md
Added [GH-4115] and rearranged list under 0.12.0
2016-11-05 13:55:58 +01:00
Rickard von Essen 25927b61aa Merge pull request #4115 from yamamoto-febc/fix_vnc_special_keycodes
Fix keycodes for ctrl,shift and alt key when sending over VNC
2016-11-05 13:51:49 +01:00
febc.yamamoto 6088c1887c Fix keycodes for ctrl,shift and alt key when sending over VNC 2016-11-04 19:26:14 +09:00
Sander van Harmelen 33f430bf25 Use the private port for the firewall rules (#4114)
Because of how CloudStack configures the firerwall on the router VM, you need to allow traffic to the private port instead of the public port.
2016-11-04 09:56:49 +01:00
Matthew Hooker 2102ded31c
update changelog 2016-11-03 14:50:21 -07:00
Matthew Hooker 8e11edbf40 Merge pull request #4104 from 0x6c7862/master
Fixed inconsistency between vagrant-libvirt driver and packer QEMU ac…
2016-11-03 14:28:31 -07:00
Matthew Hooker 3d69af1247 sort/uniq IAM policies 2016-11-03 11:49:50 -07:00
Matthew Hooker ac8e70ade0 Revert "Remove duplicate permission"
This reverts commit 78067ff949.
2016-11-03 11:48:55 -07:00
Matthew Hooker d47091acd6 update changelog 2016-11-03 11:04:50 -07:00
Matthew Hooker 5d0892bd37 Merge pull request #4101 from lwander/f-googlecompute-ssh-private-key-file
builder/googlecompute: Use ssh_private_key_file if provided
2016-11-03 11:04:02 -07:00
Matthew Hooker 8eab0ee5b2 Merge pull request #4109 from mitchellh/b-docs
builder/amazon: Fix doc of EBS Volume builder name
2016-11-03 10:29:57 -07:00
Matthew Hooker 1ad780933b Merge pull request #4107 from sysadmiral/sysadmiral-website-policy-tidy
Remove duplicate permission
2016-11-03 10:26:41 -07:00
Lars Wander 583e341ae7 builder/googlecompute: Store empty public_key 2016-11-03 12:49:09 -04:00
Lars Wander 7f474d8f78 builder/googlecompute: Tests added 2016-11-03 12:45:52 -04:00
James Nugent 33c423529d builder/amazon: Fix doc of EBS Volume builder name
Various things still referred to `ebsinit` or `ebs-volume` - the
imported name was `amazon-ebsvolume`.
2016-11-03 11:59:02 -04:00
Amo Chumber 78067ff949 Remove duplicate permission
In the suggested policy `ec2:CopyImage` was listed twice.

I've also sorted alphabetically to make it easier for somebody who might be recreating the policy in the AWS gui to follow along more easily.
2016-11-03 14:41:12 +00:00
lxb 12ef9bf8af
Fixed inconsistency between vagrant-libvirt driver and packer QEMU accelerator 2016-11-03 22:55:55 +11:00
Rickard von Essen ac04315710 Fixed name of builder amazon-ebs-volume
amazon-ebs -> amazon-ebs-volume
2016-11-03 08:46:08 +01:00
Matthew Hooker ed3c6f29ef update changelog 2016-11-02 15:37:40 -07:00
Matthew Hooker 99bb04ba3b Merge pull request #4102 from crunk1/master
googlecompute: conditionally omit the wait for startup script.
2016-11-02 15:36:13 -07:00
Scott Crunkleton 85210afe92 googlecompute: conditionally omit the wait for startup script step if no startup script is provided. 2016-11-02 15:20:21 -07:00
Lars Wander d70e783455 builder/googlecompute: Use ssh_private_key_file if provided
This seemed to be missing from the googlecompute provider. Now if the
ssh_private_key_file is provided, that will be used in place of a temporary
key. I didn't update the googlecompute specific docs under `./website/`, since
this parameter is already documented under the communicators templates page.
2016-11-02 17:04:34 -04:00
Matthew Hooker b0d529fafa update changelog 2016-11-02 12:27:04 -07:00
Matthew Hooker f3f5f89fe6 Merge pull request #4096 from mitchellh/filterday
builder/amazon-ebs: show ami id found from filter
2016-11-02 12:25:46 -07:00
Matthew Hooker 60c459d6c8 Merge pull request #4098 from mitchellh/newsession
aws-sdk: use session.NewSession
2016-11-02 12:25:14 -07:00
Matthew Hooker 164adf6366 update changelog 2016-11-02 12:24:15 -07:00
Matthew Hooker 9bc23ea512 Merge pull request #4099 from mitchellh/waitfail
Waitfail
2016-11-02 12:21:51 -07:00
Matthew Hooker ffd76f1194 Merge pull request #4088 from mitchellh/f-ebsinit-builder
[WIP] builder/amazon: Add `ebs-init` builder
2016-11-02 11:54:46 -07:00
Matthew Hooker 6b7ac8ee90 make generate 2016-11-02 11:48:32 -07:00
James Nugent 36c09af992 builder/amazon: Add tests for the `ebs-volume` builder
These smoke tests are effectively a mirror of the EBS builder tests.
2016-11-02 12:56:39 -04:00
James Nugent b1ff8c3bfc builder/amazon: Add `ebs-volume` builder
This commit adds a builder that works like EBS builders, except does not
create an AMI, and instead is intended to create EBS volumes in an
initialized state. For example, the following template can be used to
create and export a set of 3 EBS Volumes in a ZFS zpool named `data` for
importing by instances running production systems:

```
{
	"variables": {
		"aws_access_key_id": "{{ env `AWS_ACCESS_KEY_ID` }}",
		"aws_secret_access_key": "{{ env `AWS_SECRET_ACCESS_KEY` }}",
		"region": "{{ env `AWS_REGION` }}",
		"source_ami": "{{ env `PACKER_SOURCE_AMI` }}",
		"vpc_id": "{{ env `PACKER_VPC_ID` }}",
		"subnet_id": "{{ env `PACKER_SUBNET_ID` }}"
	},
	"builders": [{
		"type": "amazon-ebs-volume",
		"access_key": "{{ user `aws_access_key_id` }}",
		"secret_key": "{{ user `aws_secret_access_key` }}",
		"region": "{{user `region`}}",
		"spot_price_auto_product": "Linux/UNIX (Amazon VPC)",

		"ssh_pty": true,
		"instance_type": "t2.medium",
		"vpc_id": "{{user `vpc_id` }}",
		"subnet_id": "{{user `subnet_id` }}",
		"associate_public_ip_address": true,
		"source_ami": "{{user `source_ami` }}",
		"ssh_username": "ubuntu",
		"ssh_timeout": "5m",

		"ebs_volumes": [
			{
				"device_name": "/dev/xvdf",
				"delete_on_termination": false,
				"volume_size": 10,
				"volume_type": "gp2",
				"tags": {
					"Name": "TeamCity-Data1",
					"zpool": "data",
					"Component": "TeamCity"
				}
			},
			{
				"device_name": "/dev/xvdg",
				"delete_on_termination": false,
				"volume_size": 10,
				"volume_type": "gp2",
				"tags": {
					"Name": "TeamCity-Data2",
					"zpool": "data",
					"Component": "TeamCity"
				}
			},
			{
				"device_name": "/dev/xvdh",
				"delete_on_termination": false,
				"volume_size": 10,
				"volume_type": "gp2",
				"tags": {
					"Name": "TeamCity-Data3",
					"zpool": "data",
					"Component": "TeamCity"
				}
			}
		]
	}],
	"provisioners": [
	{
		"type": "shell",
		"start_retry_timeout": "10m",
		"inline": [
			"DEBIAN_FRONTEND=noninteractive sudo apt-get update",
			"DEBIAN_FRONTEND=noninteractive sudo apt-get install -y zfs",
			"lsblk",
			"sudo parted /dev/xvdf --script mklabel GPT",
			"sudo parted /dev/xvdg --script mklabel GPT",
			"sudo parted /dev/xvdh --script mklabel GPT",
			"sudo zpool create -m none data raidz xvdf xvdg xvdh",
			"sudo zpool status",
			"sudo zpool export data",
			"sudo zpool status"
		]
	}
	]
}
```

StepModifyInstance and StepStopInstance are now shared between EBS and
EBS-Volume builders - move them into the AWS common directory and rename
them to indicate that they only apply to EBS-backed builders.
2016-11-02 12:56:39 -04:00