Commit Graph

42 Commits

Author SHA1 Message Date
Wilken Rivera c7ba5c9a14
Fix line ending issues for test files (#10096) 2020-10-14 11:03:43 +02:00
Artis3n 9a2908d1d9 Use the galaxy playbook in the galaxy packer file 2020-09-05 18:15:42 -04:00
Artis3n 41a8a96821 Added acceptance test for Galaxy Collection install 2020-09-05 16:48:20 -04:00
Adam Dobrawy cc62fc9ebb builder/hyperone: Add tests for HCL syntax 2020-05-19 01:21:00 +02:00
Adam Dobrawy e1160cc955 test: Generalize README to avoid AWS 2019-12-03 14:57:41 +01:00
Adam Dobrawy 3b091e6046 builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
Daniel Kimsey 3b64620234 SSH tunneling support
Support for both local and remote TCP port tunneling. Includes updated
docs and tests.

Does not implement dynamic port forwarding (SSH's built-in SOCKS)
(uncertain difficulty) nor unix socket (potentially easy).
2019-09-18 11:09:41 -07:00
Marques Johansson 99987c2d56 Add Linode Images builder
Packer Builder for [Linode Images](https://www.linode.com/docs/platform/disk-images/linode-images/)

Adds the following builder:

  * `linode`

Based on https://github.com/linode/packer-builder-linode (MPL/2)
(formerly maintained by @dradtke).  Includes website docs and tests.

Relates to #174, #3131
2019-04-15 20:40:59 -04:00
Adam Dobrawy 61772d715d Add chroot in bats tests 2019-02-10 05:15:22 +01:00
Miłosz Smółka 34beaaabe4 Move checking aws cli to separate function 2019-02-07 09:30:47 +01:00
Miłosz Smółka 1ee4517370 Update source_image names in tests 2019-02-07 09:22:30 +01:00
Miłosz Smółka 7947e52089 Add basic HyperOne end-to-end tests 2019-01-21 19:20:59 +01:00
Josh Soref b68168807a Miscellaneous doc improvements
backticks, spaces, commas

In general, a list of items should have a space after each comma.
While there are editorial styles that suggest commas inside quotations,
they're horrible advice when the backticks are describing specific
character for a user to enter.

one off indent filters section

singular

backticks...

word wrap long lines...

spelling: macOS

contributing: clarify closing case
contributing: link to changelog
contributing: point to git remote...
contributing: split commands from descriptions
contributing: grammar
spelling: github
grammar: comma after etc.
spelling: macOS
grammar: i.e.
alicloud: use relative link
alicloud: use backticks
alicloud: bits
alicloud: such as
grammar: comma after etc.
avoid linking periods
grammar: period
amazon-chroot: IOPS
amazon-chroot: use backticks
amazon-chroot: link to section
amazon-chroot: whether-or-not; period
amazon-ebs: period
amazon-ebs: use relative link
amazon-ebs: use backticks
amazon-ebs: comma
amazon-ebs: bold
amazon-ebssurrogate: comma after etc.
amazon-ebssurrogate: this builder
amazon-instance: this builder
amazon-ebssurrogate: set this
amazon-ebssurrogate: whether-or-not
amazon-ebssurrogate: period
amazon-ebssurrogate: bold section reference
amazon-ebssurrogate: backticks...
amazon-ebssurrogate: commas around e.g.
spelling: precedence
spelling: i.e.
amazon-ebssurrogate: backticks...
2018-10-18 19:09:49 -04: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
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