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
• 7,060 points
3,344 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,680 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
880 views
0 votes
1 answer

How to connect log file as an input in Logstash?

Hi@akhtar, You can use the file plugin to ...READ MORE

answered Jun 17, 2020 in DevOps Tools by MD
• 95,460 points
1,831 views
0 votes
1 answer

How to use Azure DevOps server (TFS) Predefined Variable in My Ansible Playbook?

Simply add your variables to the azure-pipelines ...READ MORE

answered Feb 9, 2022 in DevOps Tools by Bhavitha
• 1,000 points
1,560 views
0 votes
1 answer

How to Replicate the Artifacts between two Jfrog Artifactories by using CURL or jfrog rt (Rest API)

Yes and no, It's a bit complex ...READ MORE

answered Mar 27, 2018 in DevOps Tools by Atul
• 10,240 points
1,702 views
+1 vote
1 answer
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 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,680 points
713 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP