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.
|
|
|
|
---
|
|
|
|
|
2017-04-10 18:19:36 +02:00
|
|
|
# consul_node
|
2016-03-27 06:12:38 +02:00
|
|
|
|
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
|
|
|
|
|
2017-04-10 18:19:36 +02:00
|
|
|
```hcl
|
2016-03-27 06:12:38 +02:00
|
|
|
resource "consul_node" "foobar" {
|
2017-02-18 23:48:50 +01:00
|
|
|
address = "192.168.10.10"
|
|
|
|
name = "foobar"
|
2016-03-27 06:12:38 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## 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.
|