2014-03-24 06:20:32 -04:00
|
|
|
---
|
|
|
|
layout: "docs"
|
2014-08-21 20:41:35 -04:00
|
|
|
page_title: "Null Builder"
|
2014-03-24 06:20:32 -04:00
|
|
|
---
|
|
|
|
|
|
|
|
# Null Builder
|
|
|
|
|
|
|
|
Type: `null`
|
|
|
|
|
2014-09-24 13:07:57 -04:00
|
|
|
The null builder is not really a builder, it just sets up an SSH connection
|
2014-03-24 06:20:32 -04:00
|
|
|
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
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
<pre class="prettyprint">
|
|
|
|
{
|
|
|
|
"type": "null",
|
|
|
|
"host": "127.0.0.1",
|
2014-05-06 19:38:33 -04:00
|
|
|
"ssh_username": "foo",
|
|
|
|
"ssh_password": "bar"
|
2014-03-24 06:20:32 -04:00
|
|
|
}
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Configuration Reference
|
|
|
|
|
2014-09-24 13:07:57 -04:00
|
|
|
Configuration options are organized into two categories: `required` and
|
|
|
|
`optional`. Within each category, the available options are alphabetized and
|
2014-03-24 06:20:32 -04:00
|
|
|
described.
|
|
|
|
|
2014-05-04 13:47:40 -04:00
|
|
|
### Required:
|
2014-03-24 06:20:32 -04:00
|
|
|
|
|
|
|
* `host` (string) - The hostname or IP address to connect to.
|
|
|
|
|
|
|
|
* `ssh_password` (string) - The password to be used for the ssh connection.
|
|
|
|
Cannot be combined with ssh_private_key_file.
|
|
|
|
|
|
|
|
* `ssh_private_key_file` (string) - The filename of the ssh private key to be
|
|
|
|
used for the ssh connection. E.g. /home/user/.ssh/identity_rsa.
|
|
|
|
|
|
|
|
* `ssh_username` (string) - The username to be used for the ssh connection.
|
|
|
|
|
2014-05-04 13:47:40 -04:00
|
|
|
### Optional:
|
2014-03-24 06:20:32 -04:00
|
|
|
|
2014-05-04 13:47:40 -04:00
|
|
|
* `port` (integer) - ssh port to connect to, defaults to 22.
|
2014-03-24 06:20:32 -04:00
|
|
|
|