Skip to content

Commit

Permalink
updated README for vault
Browse files Browse the repository at this point in the history
  • Loading branch information
odedlaz committed Mar 1, 2016
1 parent e60c2e2 commit 4abbbe9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
`confd` is a lightweight configuration management tool focused on:

* keeping local configuration files up-to-date using data stored in [etcd](https://github.com/coreos/etcd),
[consul](http://consul.io), [dynamodb](http://aws.amazon.com/dynamodb/), [redis](http://redis.io), [zookeeper](https://zookeeper.apache.org) or env vars and processing [template resources](docs/template-resources.md).
[consul](http://consul.io), [dynamodb](http://aws.amazon.com/dynamodb/), [redis](http://redis.io),
[vault](https://vaultproject.io), [zookeeper](https://zookeeper.apache.org) or env vars and processing [template resources](docs/template-resources.md).
* reloading applications to pick up new config file changes

## Community
Expand Down
15 changes: 15 additions & 0 deletions docs/quick-start-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ confd supports the following backends:

* etcd
* consul
* vault
* environment variables
* redis
* zookeeper
Expand All @@ -33,6 +34,12 @@ curl -X PUT -d 'db.example.com' http://localhost:8500/v1/kv/myapp/database/url
curl -X PUT -d 'rob' http://localhost:8500/v1/kv/myapp/database/user
```

####vault
```
vault mount -path myapp generic
vault write myapp/database url=db.example.com user=rob
```

#### environment variables

```
Expand Down Expand Up @@ -135,6 +142,14 @@ confd -onetime -backend etcd -node http://127.0.0.1:4001
confd -onetime -backend consul -node 127.0.0.1:8500
```

#### vault
```
ROOT_TOKEN=$(vault read -field id auth/token/lookup-self)
confd -onetime -backend vault -node http://127.0.0.1:8200 \
-auth-type token -auth-token $ROOT_TOKEN
```

#### dynamodb

```
Expand Down

0 comments on commit 4abbbe9

Please sign in to comment.