Merge branch 'master' of github.com:hashicorp/terraform
This commit is contained in:
commit
4d7a172fa6
|
@ -3,13 +3,13 @@ layout: "consul"
|
|||
page_title: "Consul: consul_catalog_entry"
|
||||
sidebar_current: "docs-consul-resource-catalog-entry"
|
||||
description: |-
|
||||
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.
|
||||
Registers a node or service with the Consul Catalog. Currently, defining health checks is not supported.
|
||||
---
|
||||
|
||||
# consul\_catalog\_entry
|
||||
|
||||
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.
|
||||
Registers a node or service with the [Consul Catalog](https://www.consul.io/docs/agent/http/catalog.html#catalog_register).
|
||||
Currently, defining health checks is not supported.
|
||||
|
||||
## Example Usage
|
||||
|
||||
|
@ -41,6 +41,11 @@ The following arguments are supported:
|
|||
* `service` - (Optional) A service to optionally associated with
|
||||
the node. Supported values are documented below.
|
||||
|
||||
* `datacenter` - (Optional) The datacenter to use. This overrides the
|
||||
datacenter in the provider setup and the agent's default datacenter.
|
||||
|
||||
* `token` - (Optional) ACL token.
|
||||
|
||||
The `service` block supports the following:
|
||||
|
||||
* `address` - (Optional) The address of the service. Defaults to the
|
||||
|
|
|
@ -129,13 +129,23 @@ The `client_auth` configuration block accepts the following arguments:
|
|||
```
|
||||
provider "vault" {
|
||||
# It is strongly recommended to configure this provider through the
|
||||
# environment variables described below, so that each user can have
|
||||
# environment variables described above, so that each user can have
|
||||
# separate credentials set in the environment.
|
||||
address = "https://vault.example.net:8200"
|
||||
#
|
||||
# This will default to using $VAULT_ADDR
|
||||
# But can be set explicitly
|
||||
# address = "https://vault.example.net:8200"
|
||||
}
|
||||
|
||||
data "vault_generic_secret" "example" {
|
||||
resource "vault_generic_secret" "example" {
|
||||
path = "secret/foo"
|
||||
|
||||
data_json = <<EOT
|
||||
{
|
||||
"foo": "bar",
|
||||
"pizza": "cheese"
|
||||
}
|
||||
EOT
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue