main: enable AWS backend

This commit is contained in:
Mitchell Hashimoto
2015-03-20 19:32:18 +01:00
parent 3456d9276c
commit ac8570c809
3 changed files with 15 additions and 1 deletions

View File

@@ -9,12 +9,15 @@ import (
"github.com/hashicorp/vault/command/server"
"github.com/hashicorp/vault/helper/flag-slice"
vaulthttp "github.com/hashicorp/vault/http"
"github.com/hashicorp/vault/logical"
"github.com/hashicorp/vault/physical"
"github.com/hashicorp/vault/vault"
)
// ServerCommand is a Command that starts the Vault server.
type ServerCommand struct {
LogicalBackends map[string]logical.Factory
Meta
}
@@ -63,7 +66,8 @@ func (c *ServerCommand) Run(args []string) int {
// Initialize the core
core, err := vault.NewCore(&vault.CoreConfig{
Physical: backend,
Physical: backend,
LogicalBackends: c.LogicalBackends,
})
// Initialize the listeners