empress
empress copied to clipboard
Setup Vagrant file for testing/developing INBOX stuff on google
Place testing IMAP server (the one we're migrating from) IP / password info in private/credentials.yml and retrieve them from there.
There's a few ways to load these kinds of credentials.
- Load the credentials in vagrant, and pass them to ansible
-
In the top-level playbooks, load secrets using
vars_files - Separate the secrets needed by vagrant and by ansible, and use ansible's vault feature for secrets needed only by ansible.
I should have been clearer about what I need help with:
- Using the
private/credentials.ymlfile in conjunction with Vagrant and Ansible to test migration from existing test IMAP server. - Getting the machine provisioned and running the first place
- Then "re-doing" just the migration part as I make changes (without re-creating and destroying the machine)
- Using the
private/credentials.ymlfile in conjunction with Vagrant and Ansible to test migration from existing test IMAP server.
Modify test.yml so it runs the mail migration steps when the necessary credentials are supplied, and skips them when they aren't.
- Getting the machine provisioned and running the first place
Depends on the exact problems you encounter in the process.
- Then "re-doing" just the migration part as I make changes (without re-creating and destroying the machine)
vagrant provision will re-run ansible without destroying and recreating the VM.