From: Lorin Hochstein Date: Mon, 6 Feb 2017 04:48:10 +0000 (-0800) Subject: Add vagrantfile and inventory X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=89fefca845070f12a1e602a4aff535334d332159;p=ansiblebook.git Add vagrantfile and inventory --- diff --git a/ch13/Vagrantfile b/ch13/Vagrantfile index 8347aef..9672e8a 100644 --- a/ch13/Vagrantfile +++ b/ch13/Vagrantfile @@ -3,11 +3,11 @@ Vagrant.configure("2") do |config| config.vm.define "postgres" do |postgres| - postgres.vm.box = "trusty" + postgres.vm.box = "ubuntu/trusty64" postgres.vm.network "private_network", ip: "192.168.33.9" end config.vm.define "ghost" do |ghost| - ghost.vm.box = "trusty" + ghost.vm.box = "ubuntu/trusty64" ghost.vm.network "private_network", ip: "192.168.33.10" end end diff --git a/ch13/inventory b/ch13/inventory index e69de29..367a877 100644 --- a/ch13/inventory +++ b/ch13/inventory @@ -0,0 +1,8 @@ +[all:vars] +ansible_ssh_user=vagrant + +[postgres] +192.168.33.9 ansible_ssh_private_key_file=.vagrant/machines/postgres/virtualbox/private_key + +[ghost] +192.168.33.10 ansible_ssh_private_key_file=.vagrant/machines/ghost/virtualbox/private_key