Commit Graph

5594 Commits

Author SHA1 Message Date
Ian Duffy 34b59bc051 Create a shell-local post processor
The following commits build on work from @vtolstov to create a
post processor shell-local plugin. Please see his original work
over at https://github.com/vtolstov/packer-post-processor-shell

I have modified it slightly to output information onto the packer
ui as shown in the below screenshot which executes a script that
runs env.

This plugin enables users to submit environmental variables to
external external shell script(s) to do some post processing
e.g. (Upload to somewhere, convert to different format, and so
on)

Most of the work is a merge from the provisioner shell and
shell-local scripts.

![Example run of post processor shell-local](http://i.imgur.com/kJv6j9l.png)

Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-02-01 14:11:25 +00:00
Rickard von Essen fbeacb3dc4 OpenStack: Update documentation, fixes GH-2701
Added documentation for:
 - identity_endpoint
 - user_id
 - OS_USERID
 - endpoint_type
 - ssh_keypair_name
 - user_data
 - user_data_file

Improved documentation for:
 - floating_ip
 - OS_TENANT_NAME
 - use_floating_ip

Added a DevStack exmaple and some notes about OpenStack authorization
and how to get started with a correct setup.
2016-02-01 12:36:56 +01:00
Rickard von Essen fd6282529c Remove deprecated parallels_tools_host_path and guest_os_distribution 2016-02-01 12:25:01 +01:00
Rickard von Essen 209e877d20 Amazon: Cleaned up the docs about SSH after implementing Communicator. 2016-01-31 21:05:27 +01:00
Chris Bednarski 28b045e546 Merge pull request #3127 from bhcleek/master
listen on system chosen port
2016-01-29 15:37:45 -08:00
Billie H. Cleek bf3c294326 listen on system chosen port
Change the default for LocalPort to "0", so that the listener will be a
system chosen port.
2016-01-28 22:22:12 -08:00
Chris Bednarski 314aad379a Added source_image_name for openstack to the changelog 2016-01-28 15:41:58 -08:00
Chris Bednarski 2dd8ad9449 Merge pull request #2577 from cybercom-finland/os_source_image_name
Support source_image_name in OpenStack builder
2016-01-28 15:40:13 -08:00
Chris Bednarski 3ff64d7cba Added Ansible to the changelog 2016-01-28 15:26:35 -08:00
Chris Bednarski 15f99a4aee Merge branch 'ansible-provisioner' of https://github.com/bhcleek/packer into f-ansible 2016-01-28 15:16:54 -08:00
Chris Bednarski fa4f5106a4 Added Chef Windows support to the changelog 2016-01-28 15:16:15 -08:00
Chris Bednarski 87532b1b00 Merge branch 'chef-provisioner-windows' of https://github.com/sneal/packer into f-chef-provisioner-windows 2016-01-28 14:55:17 -08:00
Chris Bednarski 1860f0a067 Merge pull request #3120 from tylert/vagrant-go-version
Use the newer go pre-built binary in vagrant as well, just like travis
2016-01-28 14:12:10 -08:00
Tyler Tidman 09f0e9ece1 Use the newer go pre-built binary in vagrant as well, just like travis 2016-01-28 07:14:47 -05:00
Chris Bednarski c1ac120828 Bump go 1.5 to 1.5.3 2016-01-27 12:47:45 -08:00
Chris Bednarski 5f7a13d474 Merge branch 'master' of https://github.com/mitchellh/packer 2016-01-27 12:47:18 -08:00
Chris Bednarski a2b1f0518c Added gosigar to the makefile so x-compile works 2016-01-26 17:11:15 -08:00
Chris Bednarski f2698b5981 Merge pull request #3113 from tylert/md-ext-rename
Rename communicator markdown file to match the rest of the website so…
2016-01-26 16:42:21 -08:00
Chris Bednarski 3ffe537963 Merge pull request #3111 from jose-cardoso/master
Added support for spaces in vSphere resource pools
2016-01-26 16:41:49 -08:00
Chris Bednarski 49c2351083 Merge pull request #3115 from ZettaIO/openstack-v3-docs
Openstack builder documentation needs v3 auth information
2016-01-26 16:41:19 -08:00
Einar Forselv c6a21ab491 Openstack builder documentation needs v3 auth information
Added some basic information about v3 authentication.
2016-01-27 01:30:17 +01:00
Tyler Tidman a1c4c6aace Rename communicator markdown file to match the rest of the website source files 2016-01-26 09:28:24 -05:00
Matt Black 33071150c1 Salt provisioner: option to set logging level on Salt highstate run 2016-01-26 13:09:15 +00:00
Matt Black 9ccf298be9 Salt provisioner: option to ignore salt highstate failures fixes #2486 2016-01-26 13:09:15 +00:00
Matt Black 5cd15b52c5 Salt provisioner: dynamic command line args passed onto salt-call fixes #2652 2016-01-26 13:09:15 +00:00
Matt Black 7cb802f8a0 Salt provisioner: improved inputs validation 2016-01-26 13:09:15 +00:00
Jose Cardoso 096b42abce Added support for spaces in vSphere resource pools 2016-01-26 09:41:30 +00:00
Chris Bednarski 4490826a17 Merge pull request #3040 from kimor79/3011
Add mount_partition option to amazon-chroot builder
2016-01-25 22:08:07 -08:00
Chris Bednarski cb5c5b4f42 Added iso_skip_cache and pre-build resource validation to changelog 2016-01-25 21:07:44 -08:00
Chris Bednarski ffb85f6ea5 Merge pull request #3096 from grubernaut/f-resource-limits
Prevalidate Hardware Specs on Linux
2016-01-25 21:06:14 -08:00
Chris Bednarski 4aa59e4999 Merge pull request #3105 from vtolstov/iso_cache
qemu: allow to use live iso without cache
2016-01-25 21:03:27 -08:00
Chris Bednarski e8503b0ff2 Merge pull request #3107 from yetanotherchris/patch-1
vsphere post-processor.go - support for spaces
2016-01-25 10:37:06 -08:00
Jake Champlin 6e8bfd3ce9 Correctly call prepare function in test 2016-01-25 12:54:15 -05:00
Jake Champlin f01578c91e Only validate vmware resources on local hosts
Disable resource validation when `remote_type` is specified
2016-01-25 12:01:56 -05:00
Chris S 195405ca5b Update post-processor.go
Added support for spaces for vm folders, datastore names etc. in the ovftool command line arguments.
2016-01-25 17:00:30 +00:00
Vasiliy Tolstov d96283e475 qemu: allow to use live iso without cache
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-01-25 10:44:42 +00:00
Seth Vargo cd4a70f846 Add structured data 2016-01-24 13:11:58 -05:00
Seth Vargo 631036caea Remove breadcrumbs (causes crash and wasn't being used) 2016-01-24 13:11:51 -05:00
Chris Bednarski a0b30dcf59 Merge pull request #3100 from msabramo/docs_user_variable_example_conditional_provisioner
docs: Add example of conditional provisioner
2016-01-23 21:43:48 -08:00
Chris Bednarski 9ec9adb3ff Merge pull request #3099 from tylert/frob-shell-doc-markup
Use monospaced-font for remote_path and start_retry_timeout string de…
2016-01-22 11:07:23 -08:00
Marc Abramowitz dec48aa9c1 Add example of conditional provisioner
to user-variable docs
2016-01-22 10:38:25 -08:00
Tyler Tidman 520e0fb7f5 Use monospaced-font for remote_path and start_retry_timeout string defaults 2016-01-22 12:46:00 -05:00
Chris Bednarski b7ba9a507d Merge pull request #3041 from msabramo/GH-3038_openstack_builder_auto_set_image_type_to_image
openstack builder: Set image_type to "image"
2016-01-21 18:39:08 -08:00
Jake Champlin eda84cb2d3 Prevalidate Hardware Specs on Linux
Prevalidates hardware resources on Linux platforms for Virtualbox and
VMware builders. This is currently only available on Linux, as enabling
for both Darwin and Windows platforms, relies on cgo bindings that would
prevent effective cross-compilation.

Packer will now fail to build and validate templates if the template is
requesting that the VM to be created would allocate more system
resources than the host system has available.

This _however_ doesn't catch parallel builds that overflow the hosts
resources, will probably still need a better error message for VM's
failing to boot in that case.

Example Outputs:

```
$ $GOPATH/bin/packer build -debug ./vmware-iso.json
Debug mode enabled. Builds will not be parallelized.
vmware-iso output will be in this color.

2 error(s) occurred:

* Unavailable Resources: RAM - Requested - 204800000MB - Available 21721MB
* Unavailable Resources: Disk - Requested - 4000000000MB - Available 76701MB
```

```
$ $GOPATH/bin/packer build -debug ./vbox-iso.json
Debug mode enabled. Builds will not be parallelized.
virtualbox-iso output will be in this color.

2 error(s) occurred:

* Unavailable Resources: RAM - Requested - 10240000MB - Available 21721MB
* Unavailable Resources: Disk - Requested - 1000000000MB - Available 76701MB
```
2016-01-21 18:19:11 -05:00
Chris Bednarski 9358e8c355 Merge branch 'hotfix/rearrange_vmx_cleanup' of https://github.com/israelshirk/packer into b-2709 2016-01-21 13:36:02 -08:00
Chris Bednarski 1a5d5acea4 Merge pull request #2737 from jen20/ebs-volume-tags
Tag EBS volumes with volume_tags in EBS builder
2016-01-21 13:29:49 -08:00
Chris Bednarski db0e098800 Merge pull request #2750 from rickard-von-essen/issue-2743
Fixes #2743: Change log messages for step_forward_ssh
2016-01-21 13:28:44 -08:00
Chris Bednarski 9dc4c0a7d1 Merge pull request #2761 from stagrlee/master
More documentation for ssh_keypair_name,  ssh_private_key_file
2016-01-21 13:27:36 -08:00
Chris Bednarski 6587926a2b Merge pull request #2848 from epowell/master
Implement a null-object communicator for 'none'
2016-01-21 12:44:36 -08:00
Chris Bednarski d6c02f5aeb Change test to use something that looks like a real region code 2016-01-21 11:29:39 -08:00