modified prod VM to have multiple ifaces and the dev vm to ignore known hosts
diff --git a/Vagrantfile b/Vagrantfile
index 8c61db6..007e7e5 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -25,8 +25,25 @@
d.vm.box = "ubuntu/trusty64"
d.vm.hostname = "prod"
d.vm.network "private_network", ip: "10.100.198.201"
+ d.vm.network "private_network", ip: "10.6.0.1", virtualbox__intnet: "cord-test-network"
d.vm.provider "virtualbox" do |v|
- v.memory = 1024
+ v.memory = 2048
+ end
+ end
+
+ config.vm.define "computenode" do |c|
+ c.vm.box = "clink15/pxe"
+ c.vm.synced_folder '.', '/vagrant', disable: true
+ c.vm.communicator = "none"
+ c.vm.hostname = "computenode"
+ c.vm.network "private_network",
+ adapter: "1",
+ type: "dhcp",
+ auto_config: false,
+ virtualbox__intnet: "cord-test-network"
+ c.vm.provider "virtualbox" do |v|
+ v.memory = 1048
+ v.gui = "true"
end
end
diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml
index 72441b6..b66f3e4 100644
--- a/ansible/roles/common/tasks/main.yml
+++ b/ansible/roles/common/tasks/main.yml
@@ -25,3 +25,16 @@
ignore_errors: yes
with_items: obsolete_services
tags: [common]
+
+- name: Ensure known_hosts file is absent
+ file:
+ path: /home/vagrant/.ssh/known_hosts
+ state: absent
+
+- name: Disable Known Host Checking
+ copy:
+ src: files/ssh_config
+ dest: /home/vagrant/.ssh/config
+ owner: vagrant
+ group: vagrant
+ mode: 0600