From bd4f2ae5b600b96279cf146215a379aa18f9a27f Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 5 Jun 2015 18:18:28 +0300 Subject: [PATCH] README.md: Use simple syntax for code blocks Signed-off-by: Alan Orth --- README.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ceb9527..eac5602 100644 --- a/README.md +++ b/README.md @@ -18,23 +18,19 @@ web01 ### Use Once you've satisfied the the above assumptions, you can execute: - ansible-playbook web.yml -i hosts -K + $ ansible-playbook web.yml -i hosts -K ### Testing in a VM (KVM) A simple way to test locally in a virtual machine using libvirt + KVM: -```console -sudo virt-install -n web01 -r 1024 --vcpus 2 -l http://ubuntu.mirror.ac.ke/ubuntu/dists/trusty/main/installer-amd64/ --os-type=linux --os-variant=ubuntusaucy --disk /home/aorth/software/vms/web01.qcow2,device=disk,bus=virtio,format=qcow2,size=40 --vnc --cpuset=1,2 -x "auto=true priority=critical url=http://blah.com/~aorth/preseed/public/ubuntu-14.04.cfg" -``` + $ sudo virt-install -n web01 -r 1024 --vcpus 2 -l http://ubuntu.mirror.ac.ke/ubuntu/dists/trusty/main/installer-amd64/ --os-type=linux --os-variant=ubuntusaucy --disk /home/aorth/software/vms/web01.qcow2,device=disk,bus=virtio,format=qcow2,size=40 --vnc --cpuset=1,2 -x "auto=true priority=critical url=http://blah.com/~aorth/preseed/public/ubuntu-14.04.cfg" This boots from a network Ubuntu mirror, then uses a preseed to automate the OS installation. ### Testing in Vagrant Not as simple as on GNU/Linux with KVM, but still easy: -```console -vagrant up -``` + $ vagrant up A new VirtualBox VM will come up with the IP 192.168.33.10 (according to the included `Vagrantfile`).