Fixed behaviour of 'handle_postinstall', where empty commands where being executed due to interference between the pre postinstall script code and the standard postinstall code.
prevent Address already in use error for multiple starts on same port
templates: Fix Debian 7.0 i386 template to use rc1 i386 release

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
templates: Use cat to append or write multiline string to a file

The grub2 config patching fails and an empty file is written as echo <<EOF is
used. Using cat fixes the issue. Tested with vbox by creating veewee based
systemvm template for CloudStack [1]

[1] http://jenkins.cloudstack.org/job/build-systemvm-master

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
Add CentOS 6.4 minimal templates.

Based on the 6.3 x64_86 minimal template with a couple minor changes:

- Install chef via the new omnibus installer (so the ruby definitions
are no longer explicitly needed).
- Update the ks.cfg "%packages" to match the defaults from a standard
CentOS 6.4 minimal install.
Merge pull request #588 from GUI/master

Add CentOS 6.4 minimal templates
Merge pull request #584 from acaire/disable_allow_for_http_request_threading

prevent Address already in use error for multiple starts on same port
Merge pull request #585 from bhaisaab/master

Debian templates for i386 and amd64 fixes using rc1 and grub2 cfg patching fix
Add rbenv-gemsets to gitignore
Merge pull request #589 from eshamow/add_rbenv_gemsets_to_gitignore

Add rbenv-gemsets to gitignore
templates: For Debian 7.0 rc1-amd64 select console keymap 'us'

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
Merge pull request #590 from bhaisaab/master

For amd64 Debian 7.0 rc1 template, fix console keymap as 'us'
Fixed Debian netboot disc location
Modified CentOS 5.8 netboot to use vault for stage2 image
Merge pull request #593 from eshamow/fix_centos58_netinstall

Modified CentOS 5.8 netboot to use vault for stage2 image
Merge pull request #594 from eshamow/fix_debian606_template

Fixed Debian netboot disc location
Minor pedantry: Location of windows Key in autounattend.xml

- add a link to the location of the windows key for the 180 day trial license
- users should override this definition in their own templates - except if using the trial version
- reordered the userdata section for all to alphabetical primarily so it is possible to compare
unattended files more easily
'#' is not a valid comment in windows batch files
Merge pull request #595 from bdellegrazie/windows-key-fix

Windows key fix
Update ip.rb to use vmrun guestVar to get guest IP

Current code can only retrieve NAT or host-only IPs by polling nat/dhcp settings.
By using vmrun's guestVar command instead it's possible to retrieve IPs in all networking setups.