Commit Graph

29 Commits

Author SHA1 Message Date
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
Chris Lundquist 34b6c97c21 [lxc] add bats tests 2017-09-05 15:18:07 -07:00
Billie Cleek e55c530cc6 add ansible tests for docker builder 2016-12-09 06:31:52 -08:00
Billie Cleek c1591a8efa update ansible tests to use wheezy 2016-12-09 06:31:52 -08:00
Billie Cleek f5ca0de225 provisioner/ansible: assume scp target is file
Assume the scp target is a file instead of a directory. Assuming the scp
target is a file instead of a directory allows uploading files to a node
being provisioned with the ssh communciator using sftp and with the
winrm communicator. It is fully compatible with ansible; ansible
communicators only allow for files (never directories) to be uploaded
(when the copy module is used to upload a directory, ansible walks the
directory and uploads files one at a time).

Update documentation to explain how to provision a Windows image.

Extend tests that use ssh to communicate with the node to include single
files, recursive copies, and content-only recursive copies.

Add test to verify support for the winrm communicator.

Remove the err argument from adapter.scpExec, because it was unused.

Fixes #3911
2016-11-26 14:40:39 -08:00
Billie H. Cleek f760ab2fd8 Make SCP the default for provisioner/ansible
Add a new option, `use_sftp` to the ansible provisioner. It's default
value is false; ansible provisioner will use SCP by default.

Refactor to consistently set all configure options for ansible
provisioner in the Prepare step.

Remove incorrect information about `ANSIBLE_HOST_KEY_CHECKING=False`
being set when `ansible_env_vars` is not set in the packer template.

Update BATS tests for the ansible provisioner to actually check that the
fetched directory contains the contents expected. This revealed a
problem with the all_options template that required adding a host to the
hosts list in the test playbook.
2016-09-11 23:58:31 -07:00
Billie H. Cleek da223b9539 add scp support to ansible provisioner
Handle running `scp -t` and `scp -f` exec requests in the
ansible-provisioner's SSH
server to allow Ansible to use SCP so that SFTP doesn't have to be
installed on the node.

Update the BATS tests to test the ansible provisioner.
2016-09-11 23:58:31 -07:00
Billie H. Cleek c3a57ca232 set ansible_env_vars correctly 2016-08-29 00:44:26 -07:00
Billie H. Cleek d745c579f4 add blackbox tests for ansible provisioner
Add bats tests for the ansible provisioner. The tests exercise all
options and the minimal set of options of the provisioner.

Fix the bats tests for the googlecompute builder.
2016-07-29 23:24:09 -07:00
Alfonso Acosta a59c82d7a6 Add sftp file transfer support
Adds a new config option: "ssh_file_transfer_method", which can be set to "scp"
or "sftp" (defaults to "scp")
2015-07-26 23:49:18 +00:00
Clint Shryock c875d40b2c remove bats test fixture 2015-06-12 10:41:44 -05:00
Clint Shryock 85db8abe8d remove old bats test 2015-06-12 10:40:55 -05:00
Ash Caire 361e859556 Add EBS snapshot tags 2015-03-01 10:27:30 +11:00
Stefan Scherer 8b10e70bc8 fixed packer --version 2014-12-13 19:40:39 +01:00
Evan Brown ff149df30f Use golang/oauth2, no longer require client_secrets.json, and use
Service Account when run from a GCE Instance.
2014-11-21 12:45:27 -08:00
Mitchell Hashimoto a0a0c121a4 test: high-level CLI tests that catch basic errors 2013-12-18 08:40:35 -08:00
Mitchell Hashimoto 47d47082fc test: better output if a test fails 2013-12-16 14:30:58 -08:00
Mitchell Hashimoto f99837b4b7 test: fix GCE test 2013-12-14 11:40:27 -08:00
Mitchell Hashimoto 044e7fa368 test: google compute engine acceptance tests 2013-12-14 11:27:50 -08:00
Mitchell Hashimoto a4b6a5a341 Update README 2013-12-12 13:44:16 -08:00
Mitchell Hashimoto b6ed68449a test: remove jq requirement 2013-12-12 13:18:46 -08:00
Mitchell Hashimoto 4677f38882 builder/amazon: parallelize AMI region copies [GH-495] 2013-12-12 12:24:32 -08:00
Mitchell Hashimoto 98985c2d16 test: update the test output 2013-12-12 11:29:59 -08:00
Mitchell Hashimoto ca24c66491 test: file provisioner tests pass 2013-12-12 11:25:33 -08:00
Mitchell Hashimoto 318ced9549 test: shell provisioner tests 2013-12-12 11:08:45 -08:00
Mitchell Hashimoto a7537ff3a6 test: cleaner helper file 2013-12-12 10:30:41 -08:00
Mitchell Hashimoto 1cfffaf358 test: missing a '\' 2013-12-12 10:30:41 -08:00
Mitchell Hashimoto f599e2d0ce test: minimal amazon-ebs test 2013-12-12 10:30:41 -08:00
Mitchell Hashimoto bf10af6401 test: Create the test folder 2013-12-12 10:30:41 -08:00