From deb8971c84bd24bbf92325614473c41514bcbebe Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Sat, 10 Jan 2015 21:36:17 -0500 Subject: [PATCH] vagrant setup --- ch04/Vagrantfile | 2 +- ch04/ansible.cfg | 3 +++ ch04/inventory | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 ch04/ansible.cfg create mode 100644 ch04/inventory diff --git a/ch04/Vagrantfile b/ch04/Vagrantfile index a67f1b3..c6934bd 100644 --- a/ch04/Vagrantfile +++ b/ch04/Vagrantfile @@ -24,7 +24,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # Create a private network, which allows host-only access to the machine # using a specific IP. - # config.vm.network "private_network", ip: "192.168.33.10" + config.vm.network "private_network", ip: "192.168.4.10" # Create a public network, which generally matched to bridged network. # Bridged networks make the machine appear as another physical device on diff --git a/ch04/ansible.cfg b/ch04/ansible.cfg new file mode 100644 index 0000000..2648141 --- /dev/null +++ b/ch04/ansible.cfg @@ -0,0 +1,3 @@ +[defaults] +hostfile = inventory +private_key_file = /Users/lorinhochstein/.vagrant.d/insecure_private_key diff --git a/ch04/inventory b/ch04/inventory new file mode 100644 index 0000000..f30eb9d --- /dev/null +++ b/ch04/inventory @@ -0,0 +1 @@ +vagrant ansible_ssh_host=192.168.4.10 ansible_ssh_user=vagrant -- 2.44.0