aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/k8s
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2019-06-27 17:38:53 +0200
committerPawel Wieczorek <p.wieczorek2@samsung.com>2019-07-08 12:29:52 +0200
commit7b2c82bc52e7d56c99690fa260ea0b692b0ea59a (patch)
tree9da4ec9268c47adc9b5ec6b73a88863bd91299c7 /test/security/k8s
parentea8bc1a719a36c89e7eae42080b1835e5ef0c28d (diff)
k8s: Add Rancher CLI to test environment
Issue-ID: SECCOM-235 Change-Id: I46e2f8d61c3a82613b665fb6d9b57431bb2a1868 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'test/security/k8s')
-rw-r--r--test/security/k8s/vagrant/Vagrantfile9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/security/k8s/vagrant/Vagrantfile b/test/security/k8s/vagrant/Vagrantfile
index 83499b7c1..c0cbb9889 100644
--- a/test/security/k8s/vagrant/Vagrantfile
+++ b/test/security/k8s/vagrant/Vagrantfile
@@ -9,6 +9,14 @@ cluster = [
{ name: 'worker', hostname: 'worker', ip: '172.17.0.101' }
]
+ranchercli = <<-SCRIPT
+wget https://releases.rancher.com/cli/v0.6.12/rancher-linux-amd64-v0.6.12.tar.gz
+tar xf rancher-linux-amd64-v0.6.12.tar.gz
+sudo mv rancher-v0.6.12/rancher /usr/local/bin/
+rmdir rancher-v0.6.12/
+rm rancher-linux-amd64-v0.6.12.tar.gz
+SCRIPT
+
Vagrant.configure('2') do |config|
cluster.each do |node|
config.vm.define node[:name] do |config|
@@ -31,6 +39,7 @@ Vagrant.configure('2') do |config|
if node[:name] == 'master'
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.provision :shell, path: "../tools/imported/openstack-rancher.sh"
+ config.vm.provision :shell, inline: ranchercli
end
if node[:name] == 'worker'