Information Technology Reference
In-Depth Information
Now that the sandbox environment has been created with an IP address accessible from our
host, try it out in your web browser using the address
http://192.168.33.7
.
You should see the
template file we just created, as in
Figure 7-2
. Success criteria met!
Figure 7-2. Your apache site on 192.168.33.7
If you get an error, check the following:
1. Make sure you created the file
apache/templates/default/index.html.erb
and it has the
correct content.
2. Run
kitchen login
, then run
curl localhost
to make sure that Chef run com-
pleted properly and the web server is working
within the virtual machine
.
3. Scrutinize the
kitchen converge
output to make sure there was no error when
vag-
rant
configured the
private_network
address when it set up the virtual network ad-
apters on the virtual machine.
4. There is no possibility that another machine on the local network has the same IP ad-
dress. If so, modify the
.kitchen.yml
and recreate the virtual machine.