Skip to content

Commit 3c8d252

Browse files
committed
k8s contrib dependancy
1 parent 6c9c51a commit 3c8d252

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

vagrant/k8s/copy_demo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

33
# run ansible
4-
ansible-playbook -i .contiv_k8s_inventory ../../../contrib/ansible/cluster.yml --tags "contiv_demo" -e "networking=contiv contiv_fabric_mode=default"
4+
ansible-playbook -i .contiv_k8s_inventory ./contrib/ansible/cluster.yml --tags "contiv_demo" -e "networking=contiv contiv_fabric_mode=default"

vagrant/k8s/restart_cluster.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
top_dir=$(git rev-parse --show-toplevel | sed 's|/[^/]*$||')
44
# run ansible
5-
ansible-playbook -i .contiv_k8s_inventory ../../../contrib/ansible/cluster.yml --tags "contiv_restart" -e "networking=contiv contiv_fabric_mode=default contiv_bin_path=$top_dir/contiv_bin contiv_demo=True"
5+
ansible-playbook -i .contiv_k8s_inventory ./contrib/ansible/cluster.yml --tags "contiv_restart" -e "networking=contiv contiv_fabric_mode=default contiv_bin_path=$top_dir/contiv_bin contiv_demo=True"

vagrant/k8s/setup_cluster.sh

+15-2
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,28 @@ function GetContiv {
4848
fi
4949
}
5050

51+
#GetContrib fetches contrib if not present
52+
53+
function GetContrib {
54+
pushd .
55+
if [ -f $top_dir/contrib ]; then
56+
echo "netplugin-$contivVer.tar.bz2 found, not fetching."
57+
else
58+
git clone https://github.com/jojimt/contrib -b contiv
59+
fi
60+
popd
61+
}
62+
5163
# kubernetes version to use -- defaults to v1.2.3
5264
: ${k8sVer:=v1.2.3}
5365

5466
# contiv version
55-
: ${contivVer:=v0.1-05-05-2016.18-38-56.UTC}
67+
: ${contivVer:=v0.1-09-08-2016.20-56-40.UTC}
5668

5769
top_dir=$(git rev-parse --show-toplevel | sed 's|/[^/]*$||')
5870

5971
GetKubernetes
72+
GetContrib
6073

6174
k8_sanity=${CONTIV_K8}
6275
if [ "$k8_sanity" == "" ]; then
@@ -81,5 +94,5 @@ vagrant up
8194

8295
if [ "$k8_sanity" == "" ]; then
8396
# run ansible
84-
ansible-playbook -i .contiv_k8s_inventory ../../../contrib/ansible/cluster.yml --skip-tags "contiv_restart" -e "networking=contiv contiv_fabric_mode=default localBuildOutput=$top_dir/k8s-$k8sVer/kubernetes/server/bin contiv_bin_path=$top_dir/contiv_bin contiv_demo=True"
97+
ansible-playbook -i .contiv_k8s_inventory ./contrib/ansible/cluster.yml --skip-tags "contiv_restart" -e "networking=contiv contiv_fabric_mode=default localBuildOutput=$top_dir/k8s-$k8sVer/kubernetes/server/bin contiv_bin_path=$top_dir/contiv_bin contiv_demo=True"
8598
fi

0 commit comments

Comments
 (0)