Closed chasewilson closed 2 years ago
Hi @chasewilson,
Thanks for the question. There are a couple possible options:
You can use the AWS configuration to run VMs there. Ansible will work well from a Mac, so your Mac can be the control machine and you can pretty much just follow the AWS instructions as-is.
If you want to isolate the environment you use for this, you can start by installing pyenv
from Homebrew. Note that none of the Ansible automation embeds any AWS credential information, so the easiest thing is to use aws configure
from the AWS CLI to provide your credentials.
I don't have an ARM-based Mac so I can't test this one, but according to this article you can install Multipass using Homebrew and then use that to kick off an ARM-based Ubuntu VM image.
The Vagrant configuration is really only doing a couple things:
It would be a bit of a faff, but it should be possible to use multipass
to generate whatever virtual machines are needed for each chapter. You can run Ansible on the Mac with this configuration as well. This page describes how to either grab the SSH keys that multipass
uses, or inject a public key, so Ansible can use key-based authentication to the Ubuntu virtual machines. You would probably want to create an Ansible inventory file that tells Ansible what machines are available and how to connect to them; you could then run Ansible directly using the playbook.yaml
file.
There are a couple things to note here:
192.168.65
to match the machines you end up creating. I probably wasn't as careful as I should have been in making this easy. If you go this route, and want to collaborate on improvements to the automation so it works better in this kind of scenario, please reach out with your findings.
VirtualBox doesn't work well for M1 Macs and set up instructions don't seem to be geared for Mac? Any guidance for this set up?
Thanks in advance!