github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/website/source/docs/providers/consul/r/catalog_entry.html.markdown (about) 1 --- 2 layout: "consul" 3 page_title: "Consul: consul_catalog_entry" 4 sidebar_current: "docs-consul-resource-catalog-entry" 5 description: |- 6 Provides access to Catalog data in Consul. This can be used to define a node or a service. Currently, defining health checks is not supported. 7 --- 8 9 # consul\_catalog\_entry 10 11 Provides access to Catalog data in Consul. This can be used to define a node or a service. Currently, defining health checks is not supported. 12 13 ## Example Usage 14 15 ``` 16 resource "consul_catalog_entry" "app" { 17 address = "192.168.10.10" 18 node = "foobar" 19 service = { 20 address = "127.0.0.1" 21 id = "redis1" 22 name = "redis" 23 port = 8000 24 tags = ["master", "v1"] 25 } 26 } 27 ``` 28 29 ## Argument Reference 30 31 The following arguments are supported: 32 33 * `address` - (Required) The address of the node being added to 34 or referenced in the catalog. 35 36 * `node` - (Required) The name of the node being added to or 37 referenced in the catalog. 38 39 * `service` - (Optional) A service to optionally associated with 40 the node. Supported values documented below. 41 42 The `service` block supports the following: 43 44 * `address` - (Optional) The address of the service. Defaults to the 45 node address. 46 * `id` - (Optional) The ID of the service. Defaults to the `name`. 47 * `name` - (Required) The name of the service 48 * `port` - (Optional) The port of the service. 49 * `tags` - (Optional) A list of values that are opaque to Consul, 50 but can be used to distinguish between services or nodes. 51 52 53 ## Attributes Reference 54 55 The following attributes are exported: 56 57 * `address` - The address of the service. 58 * `node` - The id of the service, defaults to the value of `name`.