ch02 initial libvirt changes libvirt
authorMike Cambria <michael.cambria@one.verizon.com>
Thu, 5 Oct 2017 19:25:38 +0000 (15:25 -0400)
committerMike Cambria <michael.cambria@one.verizon.com>
Thu, 5 Oct 2017 19:25:38 +0000 (15:25 -0400)
ch02/playbooks/Vagrantfile
ch02/playbooks/ansible.cfg
ch02/playbooks/hosts

index ec7e77b..dc1efb0 100644 (file)
@@ -1,7 +1,12 @@
+
+ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
+
 VAGRANTFILE_API_VERSION = "2"
 
 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
-  config.vm.box = "ubuntu/trusty64"
+  #config.vm.box = "ubuntu/trusty64"
+  config.vm.box = "yk0/ubuntu-xenial"
+  config.vm.network "forwarded_port", guest: 22, host: 2233
   config.vm.network "forwarded_port", guest: 80, host: 8080
   config.vm.network "forwarded_port", guest: 443, host: 8443
 end
index d2899e1..4debd25 100644 (file)
@@ -1,5 +1,6 @@
 [defaults]
 inventory = hosts
 remote_user = vagrant
-private_key_file = .vagrant/machines/default/virtualbox/private_key
+#private_key_file = .vagrant/machines/default/virtualbox/private_key
+private_key_file = .vagrant/machines/default/libvirt/private_key
 host_key_checking = False
index 1f1cdb7..551a090 100644 (file)
@@ -1,2 +1,3 @@
 [webservers]
-testserver ansible_host=127.0.0.1 ansible_port=2222
+#testserver ansible_host=127.0.0.1 ansible_port=2222
+testserver ansible_host=127.0.0.1 ansible_port=2233