Chef-vault and Vagrant

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

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.

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