Commit Graph

12 Commits

Author SHA1 Message Date
Martin Atkins d706130a51 consul_key_prefix resource
This new resource is an alternative to consul_keys that manages all keys
under a given prefix, rather than arbitrary single keys across the entire
store.

The key advantage of this resource over consul_keys is that it is able to
detect and delete keys that are added outside of Terraform, whereas
consul_keys is only able to detect changes to keys it is explicitly
managing.
2016-04-02 20:37:11 -07:00
Martin Atkins 2e33f5311c Treat each consul key as having its own lifecycle
Previously this resource managed the set of keys as a whole rather than
the individual keys, and so it was unable to recognize when a particular
managed key is removed and delete just that one key from Consul.

Here this is addressed by recognizing that each key actually has its own
lifecycle, and detecting when individual keys are added and removed
without replacing the entire consul_keys instance.

Additionally this restores the behavior of updating the "value" attribute
on read, but restricts it only to blocks that already had a value so as
to avoid the quirkiness seen previously when we updated blocks that were
intended to be read-only. Updating the value is important now, because we
rely on this to detect and repair discrepancies between values stored in
Consul and values given in the configuration.

This change produces a change in the handling of the "delete" attribute.
Before it was considered only when the entire consul_keys resource was
deleted, but now it is considered also when a particular key block is
removed from within a resource.
2016-03-10 07:52:43 -08:00
Josh Bleecher Snyder 30d34908b7 providers/consul: add scheme argument
This enables connecting to consul over https
without having to set the envvar CONSUL_HTTP_SSL.
2015-05-06 16:12:32 -07:00
Emil Hessman 28d39cd0bc website: address spelling mistakes, casing and links 2015-01-03 19:31:53 +01:00
Seth Vargo 073a0f76c5 Add meta descriptions to all pages 2014-10-21 23:21:56 -04:00
Armon Dadgar 269c5be738 provider/Consul: Support Token. Fixes #378 2014-10-13 11:42:40 -07:00
borgified 9667d1fde2 Otherwsie -> Otherwise 2014-07-28 22:50:20 -07:00
Armon Dadgar 8ae47b5133 website: Typo fix 2014-07-28 20:21:18 -04:00
Armon Dadgar 813aaf192b website: a sentance that makes sense is nice 2014-07-28 20:17:26 -04:00
Fwiffo 47d352fcd2 added "."
also not sure if "Consul provider" should be "Consul Provider" and
not sure what to do with the last sentence:
The provider optionally must can be configured with (something?)
to change default behavior.
2014-07-28 17:04:06 -07:00
Armon Dadgar 4c739423a4 website: copy 2014-07-28 10:49:51 -04:00
Armon Dadgar 615d724aaa website: Document consul provider 2014-07-26 20:42:25 -04:00