2014-06-04 13:06:31 -04:00
|
|
|
---
|
|
|
|
layout: "docs"
|
2014-08-21 20:41:35 -04:00
|
|
|
page_title: "Environmental Variables for Packer"
|
2014-10-20 16:47:30 -04:00
|
|
|
description: |-
|
|
|
|
Packer uses a variety of environmental variables.
|
2014-06-04 13:06:31 -04:00
|
|
|
---
|
|
|
|
|
|
|
|
# Environmental Variables for Packer
|
|
|
|
|
|
|
|
Packer uses a variety of environmental variables. A listing and description of each can be found below:
|
|
|
|
|
2014-09-03 23:12:10 -04:00
|
|
|
* `PACKER_CACHE_DIR` - The location of the packer cache.
|
2014-06-04 13:06:31 -04:00
|
|
|
|
2014-09-03 23:12:10 -04:00
|
|
|
* `PACKER_CONFIG` - The location of the core configuration file. The format
|
|
|
|
of the configuration file is basic JSON.
|
2014-09-26 09:28:24 -04:00
|
|
|
See the [core configuration page](/docs/other/core-configuration.html).
|
2014-06-04 13:06:31 -04:00
|
|
|
|
2014-09-03 23:12:10 -04:00
|
|
|
* `PACKER_LOG` - Setting this to any value will enable the logger.
|
2014-09-26 09:28:24 -04:00
|
|
|
See the [debugging page](/docs/other/debugging.html).
|
2014-06-04 13:06:31 -04:00
|
|
|
|
2014-09-03 23:12:10 -04:00
|
|
|
* `PACKER_LOG_PATH` - The location of the log file. Note: `PACKER_LOG` must
|
2014-09-26 09:28:24 -04:00
|
|
|
be set for any logging to occur. See the [debugging page](/docs/other/debugging.html).
|
2014-06-04 15:59:48 -04:00
|
|
|
|
2014-09-03 23:12:10 -04:00
|
|
|
* `PACKER_NO_COLOR` - Setting this to any value will disable color in the terminal.
|
2014-06-04 13:06:31 -04:00
|
|
|
|
2014-09-03 23:12:10 -04:00
|
|
|
* `PACKER_PLUGIN_MAX_PORT` - The maximum port that Packer uses for
|
|
|
|
communication with plugins, since plugin communication happens over
|
|
|
|
TCP connections on your local host. The default is 25,000.
|
2014-09-26 09:28:24 -04:00
|
|
|
See the [core configuration page](/docs/other/core-configuration.html).
|
2014-06-04 13:06:31 -04:00
|
|
|
|
2014-09-03 23:12:10 -04:00
|
|
|
* `PACKER_PLUGIN_MIN_PORT` - The minimum port that Packer uses for
|
|
|
|
communication with plugins, since plugin communication happens
|
|
|
|
over TCP connections on your local host. The default is 10,000.
|
2014-09-26 09:28:24 -04:00
|
|
|
See the [core configuration page](/docs/other/core-configuration.html).
|