Commit Graph

24 Commits

Author SHA1 Message Date
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