aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2019-07-15 18:10:02 +0200
committerGary Wu <gary.wu@futurewei.com>2019-07-19 21:45:34 +0000
commite377eb06714e5f53b64ae1d6f699e47bf6b13af3 (patch)
tree2fdfe45f3d7979148cf05bb13c11b97953f8af39 /test
parent611424ff732211b920402518a1a0abd23d658f03 (diff)
k8s: Replace default DNS to work in corporate networks
Default DNS addresses used in "generic/ubuntu1604" box (4.2.2.1, 4.2.2.2, 208.67.220.220) might not work properly in corporate environment. To deal with this, host machine DNS configuration can be used instead. Issue-ID: SECCOM-235 Change-Id: Ic8a5553f01989e1a2b00228fa0449a680f11d452 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'test')
-rw-r--r--test/security/k8s/vagrant/casablanca/Vagrantfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/security/k8s/vagrant/casablanca/Vagrantfile b/test/security/k8s/vagrant/casablanca/Vagrantfile
index bed8f3e9c..4898d7952 100644
--- a/test/security/k8s/vagrant/casablanca/Vagrantfile
+++ b/test/security/k8s/vagrant/casablanca/Vagrantfile
@@ -1,6 +1,8 @@
# -*- mode: ruby -*-
# -*- coding: utf-8 -*-
+host_ip = "192.168.121.1"
+
vm_memory = 2 * 1024
vm_cpus = 1
@@ -27,6 +29,7 @@ Vagrant.configure('2') do |config|
end
config.vm.network :private_network, ip: node[:ip]
+ config.vm.provision :shell, inline: "echo nameserver #{host_ip} | resolvconf -a eth0.inet"
if node[:name] == 'master'
config.vm.network "forwarded_port", guest: 8080, host: 8080