How to connect to Vault server

0 votes

I wanted to give a try to vault, so I configured VAULT_ADDR as:

$ echo $VAULT_ADDR 

http://127.0.0.1:8200

then I started vault in dev mode (vault server -dev) and everything was ok, I was able to connect to the server.

Then I wrote a really simple config file:

$ cat vault.config 

backend "inmem"

listener "tcp" {

  address = "127.0.0.1:8200"

  tls_disable = 1

}

disable_mlock = true

and I restarted the server with vault server -config=vault.config, but then when I connect to the server, I get:

$ vault status

Error checking seal status: Get http://127.0.0.1:8200/v1/sys/seal-status: dial tcp 127.0.0.1:8200: getsockopt: connection refused

Is there something wrong in my config file?

Jul 12, 2018 in DevOps Tools by Nilesh
• 6,880 points
499 views

1 answer to this question.

0 votes

You need to configure the back end like this:

backend "inmem" {}

otherwise there is a problem parsing the listener clause.

answered Jul 12, 2018 by Kalgi
• 2,620 points

Related Questions In DevOps Tools

0 votes
1 answer

How to deploy Liberty packaged server automatic delivery

Here is a concept regarding your query. It ...READ MORE

answered Jul 11, 2018 in DevOps Tools by Atul
• 10,240 points
46 views
0 votes
1 answer
0 votes
3 answers
0 votes
1 answer

How to deploy kafka cluster on cloud?

You can run kafka in both ways ...READ MORE

answered Jun 14, 2018 in DevOps Tools by DareDev
• 6,810 points
59 views
0 votes
1 answer
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
209 views
0 votes
1 answer
0 votes
1 answer

How to bootstrap droplets using Terraform?

Using passwords on instances is an absolute ...READ MORE

answered Jul 12, 2018 in DevOps Tools by Kalgi
• 2,620 points
36 views