(maint) formatting

This removes trailing whitespaces in install_utils.rb
(QENG-1037) Install from git should accept depth

When installing from larger repositories, being able to specify depth can cut
the time of git checkout in half. This becomes especially helpful when you are
checking out multiple repositories.
Due to the older git on some of the templates, this provides the older
--branch name --depth 1 commands, which means when using depth, one should
ensure the rev passed is a branch and not a single commit. Alternatively one
can add depth_branch => 'name' to repository and have that used instead of rev.
(QENG-967) Disable iptables on el hosts bringup.

Also fixes bug in `disable_iptables` where per-array-element was invoking wrong
method. Looks like `disable_iptables` was originally copied from
`copy_ssh_to_root`

Also adds rspec for Beaker::Hypervisor.configure

Signed-off-by: Wayne <wayne@puppetlabs.com>
(QENG-1018) default dev_builds_url in Beaker needs to be updated

- update to builds.delivery.puppetlabs.net
Adding a utility method for adding host entries

As much as this is a infrastructure-smell in the linux world, adding
hosts entries is still all to common in the windows world. This method
allows host entries to be configured to meet that need.

It can also be used when developing with vagrant to make sure that the
master and agent vms can see each other properly.
Enable natresolver and natdnsproxy for vagrant.

There are cases where tests run will fail when trying to download
from the outside world due to dns issues. In order to resolve this
I configured the natdnsproxy1 and natdnshostresolver1 vagrant settings
(GH-425) Sleep after killing processes

This avoids a race condition in which the killed processes haven't
exited by the time we try and unmount the root fs and the call to
container.delete errors.
(QENG-989) install_puppet_from_gem fails on Solaris

Trying to install puppet from gems would fail on both Solaris 10 and
11. Solaris 10 now has pkgutil and gem symlinked (ln -s) to /usr/bin.
Both Solaris versions have puppet-related gems symlinked to /usr/bin
after installation. This is to avoid clobbering the PATH.
(gh-426) Add prebuild packages to Dockerfile

Without this patch every time the specs run, prebuilt packages are
installed to the new docker image. Even when preserving the image.
To increase the speed of the test suite we install those packages when
creating the Docker image. The `HostPrebuiltSteps` checks whether those
are installed and does not do anything directly starting to execute the
specs inside the image.
(MAINT) Add --debug option to `apply_manifest_on` helper

Before every 'puppet apply' command is executed with --verbose.
Now you can pass `debug: true`, which executes 'puppet apply' with the
--debug flag.
Add Enterprise Linux (el)
(QENG-1033) combine two conditionals into a single statement
(QENG-1186) Fix Beaker::DSL:Helpers.puppet_{user,group}

Looks like the contents of these methods were mixed upwhen originally written.
Luckily the puppet user is usually the same as the puppet group.

Signed-off-by: Wayne <wayne@puppetlabs.com>
(QENG-797) Enhance Beaker to look for x64 installers for Windows

- add ability to install 64 bit pe builds (available for pe 3.4)
- add is_x86_64? method to host, convenience method for determining arch
  of host
(QENG-1026) Add support for x64 PE windows to Beaker

- default to installing 64 bit builds on 64 bit windows
- support install_32 host option, true = install 32 bit no matter the
  arch, false/unset = install 64 bit on 64 bit, otherwise 32 bit
(QENG-1033) additional_pkgs should be a module level variable
(QENG-1033) Reset additional_pkgs in a way supported by all Ruby versions
(QENG-1129) support win64 open source builds

- add ability to install 64 bit windows builds
- supported when puppet version is 3.7+ or pe is 3.4+, and install_32 is not set for
  host or globally
- correctly update path post pe/puppet installation
Merge pull request #436 from anodelman/win-fix

(QENG-797) Enhance Beaker to look for x64 installers for Windows
Merge pull request #425 from jtopper/avoid_docker_clean_race

(GH-425) Sleep briefly after killing processes - Docker