packer-cn/website/source/docs/builders/null.html.md

38 lines
1.0 KiB
Markdown
Raw Normal View History

---
2015-07-22 22:31:00 -04:00
description: |
The `null` Packer builder is not really a builder, it just sets up an SSH
connection and runs the provisioners. It can be used to debug provisioners
without incurring high wait times. It does not create any kind of image or
artifact.
layout: docs
page_title: Null Builder
...
# Null Builder
Type: `null`
2015-07-22 22:31:00 -04:00
The `null` Packer builder is not really a builder, it just sets up an SSH
connection and runs the provisioners. It can be used to debug provisioners
without incurring high wait times. It does not create any kind of image or
artifact.
## Basic Example
2015-07-22 22:31:00 -04:00
Below is a fully functioning example. It doesn't do anything useful, since no
provisioners are defined, but it will connect to the specified host via ssh.
2015-07-22 22:31:00 -04:00
``` {.javascript}
{
"type": "null",
"ssh_host": "127.0.0.1",
"ssh_username": "foo",
"ssh_password": "bar"
}
```
## Configuration Reference
The null builder has no configuration parameters other than the
[communicator](/docs/templates/communicator.html) settings.