github.com/rhenning/terraform@v0.8.0-beta2/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
    12  node or a service. Currently, defining health checks is not supported.
    13  
    14  ## Example Usage
    15  
    16  ```
    17  resource "consul_catalog_entry" "app" {
    18      address = "192.168.10.10"
    19      node = "foobar"
    20      service = {
    21          address = "127.0.0.1"
    22          id = "redis1"
    23          name = "redis"
    24          port = 8000
    25          tags = ["master", "v1"]
    26      }
    27  }
    28  ```
    29  
    30  ## Argument Reference
    31  
    32  The following arguments are supported:
    33  
    34  * `address` - (Required) The address of the node being added to,
    35    or referenced in the catalog.
    36  
    37  * `node` - (Required) The name of the node being added to, or
    38    referenced in the catalog.
    39  
    40  * `service` - (Optional) A service to optionally associated with
    41    the node. Supported values are documented below.
    42  
    43  The `service` block supports the following:
    44  
    45  * `address` - (Optional) The address of the service. Defaults to the
    46    node address.
    47  * `id` - (Optional) The ID of the service. Defaults to the `name`.
    48  * `name` - (Required) The name of the service
    49  * `port` - (Optional) The port of the service.
    50  * `tags` - (Optional) A list of values that are opaque to Consul,
    51    but can be used to distinguish between services or nodes.
    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`.