2014-06-04 13:06:31 -04:00
|
|
|
---
|
2017-06-14 21:04:16 -04:00
|
|
|
description: 'Packer uses a variety of environmental variables.'
|
2015-07-22 22:31:00 -04:00
|
|
|
layout: docs
|
2017-06-14 21:04:16 -04:00
|
|
|
page_title: 'Environment Variables - Other'
|
|
|
|
sidebar_current: 'docs-other-environment-variables'
|
2017-03-25 18:13:52 -04:00
|
|
|
---
|
2014-06-04 13:06:31 -04:00
|
|
|
|
2017-03-25 18:13:52 -04:00
|
|
|
# Environment Variables for Packer
|
2014-06-04 13:06:31 -04:00
|
|
|
|
2015-07-22 22:31:00 -04:00
|
|
|
Packer uses a variety of environmental variables. A listing and description of
|
|
|
|
each can be found below:
|
2014-06-04 13:06:31 -04:00
|
|
|
|
2017-06-14 21:04:16 -04:00
|
|
|
- `PACKER_CACHE_DIR` - The location of the packer cache.
|
2014-06-04 13:06:31 -04:00
|
|
|
|
2017-06-14 21:04:16 -04:00
|
|
|
- `PACKER_CONFIG` - The location of the core configuration file. The format of
|
2015-07-22 23:25:58 -04:00
|
|
|
the configuration file is basic JSON. See the [core configuration
|
|
|
|
page](/docs/other/core-configuration.html).
|
2014-06-04 13:06:31 -04:00
|
|
|
|
2017-06-14 21:04:16 -04:00
|
|
|
- `PACKER_LOG` - Setting this to any value other than "" (empty string) or "0" will enable the logger. See the
|
2015-07-22 23:25:58 -04:00
|
|
|
[debugging page](/docs/other/debugging.html).
|
2014-06-04 13:06:31 -04:00
|
|
|
|
2017-06-14 21:04:16 -04:00
|
|
|
- `PACKER_LOG_PATH` - The location of the log file. Note: `PACKER_LOG` must be
|
2015-07-22 23:25:58 -04:00
|
|
|
set for any logging to occur. See the [debugging
|
|
|
|
page](/docs/other/debugging.html).
|
2014-06-04 15:59:48 -04:00
|
|
|
|
2017-06-14 21:04:16 -04:00
|
|
|
- `PACKER_NO_COLOR` - Setting this to any value will disable color in
|
2015-07-22 23:25:58 -04:00
|
|
|
the terminal.
|
2014-06-04 13:06:31 -04:00
|
|
|
|
2017-06-14 21:04:16 -04:00
|
|
|
- `PACKER_PLUGIN_MAX_PORT` - The maximum port that Packer uses for
|
2015-07-22 23:25:58 -04:00
|
|
|
communication with plugins, since plugin communication happens over TCP
|
|
|
|
connections on your local host. The default is 25,000. See the [core
|
|
|
|
configuration page](/docs/other/core-configuration.html).
|
2014-06-04 13:06:31 -04:00
|
|
|
|
2017-06-14 21:04:16 -04:00
|
|
|
- `PACKER_PLUGIN_MIN_PORT` - The minimum port that Packer uses for
|
2015-07-22 23:25:58 -04:00
|
|
|
communication with plugins, since plugin communication happens over TCP
|
|
|
|
connections on your local host. The default is 10,000. See the [core
|
|
|
|
configuration page](/docs/other/core-configuration.html).
|
2015-08-19 16:01:55 -04:00
|
|
|
|
2017-06-14 21:04:16 -04:00
|
|
|
- `CHECKPOINT_DISABLE` - When Packer is invoked it sometimes calls out to
|
2015-08-19 16:01:55 -04:00
|
|
|
[checkpoint.hashicorp.com](https://checkpoint.hashicorp.com/) to look for
|
|
|
|
new versions of Packer. If you want to disable this for security or privacy
|
|
|
|
reasons, you can set this environment variable to `1`.
|
2016-12-19 10:54:54 -05:00
|
|
|
|
2017-06-14 21:04:16 -04:00
|
|
|
- `TMPDIR` (Unix) / `TMP` (Windows) - The location of the directory used for temporary files (defaults
|
2016-12-20 19:46:32 -05:00
|
|
|
to `/tmp` on Linux/Unix and `%USERPROFILE%\AppData\Local\Temp` on Windows
|
|
|
|
Vista and above). It might be necessary to customize it when working
|
|
|
|
with large files since `/tmp` is a memory-backed filesystem in some Linux
|
|
|
|
distributions in which case `/var/tmp` might be preferred.
|