packer-cn/website/source/docs/other/environmental-variables.htm...

42 lines
1.8 KiB
Markdown
Raw Normal View History

---
2015-07-22 22:31:00 -04:00
description: 'Packer uses a variety of environmental variables.'
layout: docs
page_title: Environmental Variables for Packer
...
# Environmental Variables for Packer
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:
2015-07-22 23:25:58 -04:00
- `PACKER_CACHE_DIR` - The location of the packer cache.
2015-07-22 23:25:58 -04:00
- `PACKER_CONFIG` - The location of the core configuration file. The format of
the configuration file is basic JSON. See the [core configuration
page](/docs/other/core-configuration.html).
- `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).
2015-07-22 23:25:58 -04:00
- `PACKER_LOG_PATH` - The location of the log file. Note: `PACKER_LOG` must be
set for any logging to occur. See the [debugging
page](/docs/other/debugging.html).
2015-07-22 23:25:58 -04:00
- `PACKER_NO_COLOR` - Setting this to any value will disable color in
the terminal.
2015-07-22 23:25:58 -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. See the [core
configuration page](/docs/other/core-configuration.html).
2015-07-22 23:25:58 -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. See the [core
configuration page](/docs/other/core-configuration.html).
2015-08-19 16:01:55 -04:00
- `CHECKPOINT_DISABLE` - When Packer is invoked it sometimes calls out to
[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`.