Chef-vault and Vagrant

#1

Hi All,

I am trying to get Chef-vault working with vagrant. Vagrant Chef Provisioning Can not decrypt the vault. Every Linux system has permission to vault and vagrant is running on a Linux machine.

Once the Vagrant VM is up it can decrypt the vault. However vagrant provision fails.

Are there any special requirements to get this working ?

Thanks and Regards,
A

0 Likes

#2

I don’t know what is the correct way to set this up really.
However, I made it work by making the vagrant VMs to use unencrypted data bags and Production hosts use CHEF vault. I think there is some mismatch between the chef client name and vagrant vm hostname

So far things seem to be working.

0 Likes

#3

I ran into this same issue recently and wrote a vagrant plugin to integrate with chef-vault:

0 Likes