consul: The Cog Consul Command Bundle
consul bundle adds two new commands: read and write.
read- Show values associated with a key.
`read <key>` `read` is a GET call to the Consul API. It will return the value stored.
write- Write values associated with a key.
`write <key> <value>` `write` is a PUT call to the Consul API. It won't return anything.
list- List all keys associated with an endpoint.
`list <endpoint>` `list` is a GET call to the Consul API. It will return an array of keys.
- The consul bundle uses the v1 Consul API.
Consul uses env vars to configure it. Both commands require
CONSUL_MASTER_TOKEN to be set. These are the
domain name for your consul account and the api token for write privledges respectively. You can find an example of how to set these configurations in the
git clone email@example.com:kickstarter/cog-consul-oss.git cogctl bundle install config.yaml
To build the Docker image, simply run:
$ docker build .