Merge branch 'master' into mongodb-secret-backend
This commit is contained in:
commit
561e67ade8
|
@ -33,6 +33,7 @@ IMPROVEMENTS:
|
||||||
[GH-1567]
|
[GH-1567]
|
||||||
* credential/aws-ec2: Added a new constraint, 'bound_account_id' to the role
|
* credential/aws-ec2: Added a new constraint, 'bound_account_id' to the role
|
||||||
[GH-1523]
|
[GH-1523]
|
||||||
|
* physical/etcd: Support `ETCD_ADDR` env var for specifying addresses [GH-1576]
|
||||||
* secret/aws: Listing of roles is supported now [GH-1546]
|
* secret/aws: Listing of roles is supported now [GH-1546]
|
||||||
* secret/mssql,mysql,postgresql: Reading of connection settings is supported
|
* secret/mssql,mysql,postgresql: Reading of connection settings is supported
|
||||||
in all the sql backends [GH-1515]
|
in all the sql backends [GH-1515]
|
||||||
|
|
|
@ -89,6 +89,10 @@ func newEtcdBackend(conf map[string]string, logger *log.Logger) (Backend, error)
|
||||||
if address, ok := conf["address"]; ok {
|
if address, ok := conf["address"]; ok {
|
||||||
machines = address
|
machines = address
|
||||||
}
|
}
|
||||||
|
machinesEnv := os.Getenv("ETCD_ADDR")
|
||||||
|
if machinesEnv != "" {
|
||||||
|
machines = machinesEnv
|
||||||
|
}
|
||||||
machinesParsed := strings.Split(machines, EtcdMachineDelimiter)
|
machinesParsed := strings.Split(machines, EtcdMachineDelimiter)
|
||||||
|
|
||||||
// Verify that the machines are valid URLs
|
// Verify that the machines are valid URLs
|
||||||
|
|
|
@ -46,9 +46,10 @@ func TestEtcdBackend(t *testing.T) {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
// Generate new etcd backend. The etcd address is read from ETCD_ADDR. No
|
||||||
|
// need to provide it explicitly.
|
||||||
logger := log.New(os.Stderr, "", log.LstdFlags)
|
logger := log.New(os.Stderr, "", log.LstdFlags)
|
||||||
b, err := NewBackend("etcd", logger, map[string]string{
|
b, err := NewBackend("etcd", logger, map[string]string{
|
||||||
"address": addr,
|
|
||||||
"path": randPath,
|
"path": randPath,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -331,7 +331,8 @@ For etcd, the following options are supported:
|
||||||
|
|
||||||
* `address` (optional) - The address(es) of the etcd instance(s) to talk to.
|
* `address` (optional) - The address(es) of the etcd instance(s) to talk to.
|
||||||
Can be comma separated list (protocol://host:port) of many etcd instances.
|
Can be comma separated list (protocol://host:port) of many etcd instances.
|
||||||
Defaults to "http://localhost:2379" if not specified.
|
Defaults to "http://localhost:2379" if not specified. May also be specified
|
||||||
|
via the ETCD_ADDR environment variable.
|
||||||
|
|
||||||
* `sync` (optional) - Should we synchronize the list of available etcd
|
* `sync` (optional) - Should we synchronize the list of available etcd
|
||||||
servers on startup? This is a **string** value to allow for auto-sync to
|
servers on startup? This is a **string** value to allow for auto-sync to
|
||||||
|
|
Loading…
Reference in a new issue