2016-03-27 06:12:38 +02:00
|
|
|
---
|
|
|
|
layout: "consul"
|
|
|
|
page_title: "Consul: consul_node"
|
|
|
|
sidebar_current: "docs-consul-resource-node"
|
|
|
|
description: |-
|
|
|
|
Provides access to Node data in Consul. This can be used to define a node.
|
|
|
|
---
|
|
|
|
|
|
|
|
# consul\_node
|
|
|
|
|
2016-11-08 15:43:00 +01:00
|
|
|
Provides access to Node data in Consul. This can be used to define a
|
|
|
|
node. Currently, defining health checks is not supported.
|
2016-03-27 06:12:38 +02:00
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "consul_node" "foobar" {
|
|
|
|
address = "192.168.10.10"
|
|
|
|
name = "foobar"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
2016-11-08 15:43:00 +01:00
|
|
|
* `address` - (Required) The address of the node being added to,
|
2016-03-27 06:12:38 +02:00
|
|
|
or referenced in the catalog.
|
|
|
|
|
2016-11-08 15:43:00 +01:00
|
|
|
* `name` - (Required) The name of the node being added to, or
|
2016-03-27 06:12:38 +02:00
|
|
|
referenced in the catalog.
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
|
|
|
* `address` - The address of the service.
|
|
|
|
* `name` - The name of the service.
|