Get an Instack environment prepared for you while you head out for lunch.
-
Clone this repo to your workstation. Inlunch talks to hosts remotely using ssh.
sudo yum -y install git ansible git clone https://github.com/rdo-management/inlunch cd inlunch
This is deploying instack-virt-setup on the target host. You'll need a
reasonably powerful target host, and since instack-virt-setup is doing
moderately invasive operations on the host, you'll probably not want
to deploy it on your workstation. (You'll still run
./instack-virt.sh
from your workstation, just make sure that the
hosts
file points to a different machine.)
-
Create an answer file to suit your needs, either by copying and amending the example one, or getting a ready one from a friend.
cp answers.yml.example answers.yml # edit it manually
-
Deploy!
INLUNCH_FQDN=my-lab-machine.example.org ./instack-virt.sh
-
Later, you can clean up your environment before re-deploying.
INLUNCH_FQDN=my-lab-machine.example.org ./instack-virt-destroy.sh
-
After running
instack-virt.sh
, you can ssh to the host machine on port 2200 (e.g.ssh -p 2200 stack@my_instack_host
) to reach the undercloud VM directly. You can ssh asroot
user too, but most of the time you'll want to work with the undercloud asstack
user. -
HTTP is forwarded from undercloud similarly as ssh. Pointing your browser to the host machine will let you access undercloud dashboard transparently.
-
The script listens to
INLUNCH_ANSWERS
andINLUNCH_HOSTS
environment variables, allowing you to customize answer/hosts file location. If you provideINLUNCH_FQDN
variable, the scripts will use that host and you don't need to create a hosts file manually. E.g.:INLUNCH_ANSWERS=my_answers.yml INLUNCH_FQDN=my_machine.example.org ./instack-virt.sh