[pdal-commits] [PDAL/PDAL] 1c0bb7: Customize Vagrantfile with environment variables

GitHub noreply at github.com
Wed Apr 16 10:20:54 PDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/PDAL/PDAL
  Commit: 1c0bb7f17909a79300bfd3634f0b607d65b07af5
      https://github.com/PDAL/PDAL/commit/1c0bb7f17909a79300bfd3634f0b607d65b07af5
  Author: Pete Gadomski <pete.gadomski at gmail.com>
  Date:   2014-04-16 (Wed, 16 Apr 2014)

  Changed paths:
    M Vagrantfile

  Log Message:
  -----------
  Customize Vagrantfile with environment variables

This patch adds the ability for some `PDAL_VAGRANT_` prefixed
environment variables to customize the behavior of PDAL's Vagrantfile.
The general policy is to provide a 'switch' environment variable that
enables or disables a given behavior when the environment variable is
set to *any* value. For example, the variable
`PDAL_VAGRANT_DISABLE_NFS`, predictably, disables nfs mounting. A few
special cases actually use the value of the environment variable for
customization, usually some sort of integer value (e.g.
`PDAL_VAGRANT_VIRTUALBOX_MEMORY`).

This patch adds the following environment variables:

- `PDAL_VAGRANT_PORT_80_FORWARD`: set or disable forwarding from guest
  port 80. If an integer value, set the host port. If non-integer or
  zero, disable port forwarding for guest port 80.
- `PDAL_VAGRANT_VIRTUALBOX_MEMORY`: set or disable a custom memory value
  for a VirtualBox vm.
- `PDAL_VAGRANT_VIRTUALBOX_CPUS`: set or disable a custom cpu value for
  a VirtualBox vm.
- `PDAL_VAGRANT_VIRTUALBOX_IOAPIC`: set VirtualBox ioapic value.
- `PDAL_VAGRANT_VIRTUALBOX_ENABLE_GUI`: set to any value to turn on the
  VirtualBox gui.
- `PDAL_VAGRANT_PRIVATE_NETWORK_IP`: set or diable a private network IP
  for the vm.
- `PDAL_VAGRANT_DIABLE_NFS`: disable nfs mounting

The following values were added previously in
35b355f39b5d88801eeb80dfe038df05ed6c72fb, and are included here for
completeness:

- `PDAL_VAGRANT_SSH_FORWARD_AGENT`: enable ssh agent forwarding.

This patch closes #311.


  Commit: 54a6b08b730768088257d149dbae43403b3bdf79
      https://github.com/PDAL/PDAL/commit/54a6b08b730768088257d149dbae43403b3bdf79
  Author: Howard Butler <howard at hobu.co>
  Date:   2014-04-16 (Wed, 16 Apr 2014)

  Changed paths:
    M Vagrantfile

  Log Message:
  -----------
  Merge pull request #313 from PDAL/issues/311-configure-vagrant-with-envvars

Customize Vagrantfile with environment variables


Compare: https://github.com/PDAL/PDAL/compare/9f07d65dfb21...54a6b08b7307


More information about the pdal-commits mailing list