Newbie Question: Using Vault with Packer on Atlas

165 views
Skip to first unread message

Liora Milbaum

unread,
Jul 27, 2015, 10:16:07 PM7/27/15
to Vault
I would like to run packer builds in atlas. 
Where should I configure my atlas server? On my Windows 8.1 laptop?

Thanks,
Liora

Seth Vargo

unread,
Jul 28, 2015, 9:36:14 AM7/28/15
to vault...@googlegroups.com
Hi Liora,

Could you please explain a bit more what you mean? You configure the Atlas endpoint and configuration in your Packer template, but that has nothing to do with Vault. We (HashiCorp) run Vault along side Atlas and automatically encrypt secret information.

Best,
Seth

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/a11ec1a9-ed03-41b0-8dfa-52092a67a6f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Liora Milbaum

unread,
Jul 29, 2015, 12:08:09 AM7/29/15
to Vault, seth...@gmail.com
Hi Seth :-)

Could you walk me through how to set secret information in Vault and encrypt it in a Packer template run in Atlas?
The documentation is unclear for this use case.

Thanks,
Liora

Seth Vargo

unread,
Jul 29, 2015, 10:30:48 AM7/29/15
to Liora Milbaum, Vault
Hi Liora,

That's not something that is currently supported in Packer; only in Atlas. You use Packer as you normally would, but when you run `packer push`, Atlas extracts the "variables" information and securely stores it in Vault automatically.

You do not need to do anything special :).

Best,
Seth

Liora Milbaum

unread,
Jul 29, 2015, 10:33:40 AM7/29/15
to Vault, seth...@gmail.com
Do I place the variables values in the template variables section or define them in the variables section in Atlas?

Liora

Seth Vargo

unread,
Jul 29, 2015, 11:06:18 AM7/29/15
to Liora Milbaum, Vault
Hi Liora,

We usually recommend using environment variables for the variables {{env `MY_VAR`}} and then setting that in Atlas.

Best,
Seth
Reply all
Reply to author
Forward
0 new messages