Commit 5ecad0c3 authored by Piotr Szlenk's avatar Piotr Szlenk

Add vagrant file provisioning

parent b13f0b8b
......@@ -68,12 +68,12 @@ Vagrant.configure("2") do |config|
vb.memory = 4096
end
k8smaster1.vm.provision "file", source: "k8s-provisioning/ip.k8s-master-l1-1.sh", destination: "$HOME/k8s-provisioning/ip.k8s-node.sh"
k8smaster1.vm.provision "file", source: "k8s-provisioning/etc.hosts.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/etc.hosts.k8s-nodes.sh"
k8smaster1.vm.provision "file", source: "k8s-provisioning/docker.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/docker.k8s-nodes.sh"
k8smaster1.vm.provision "file", source: "k8s-provisioning/init.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/init.k8s-nodes.sh"
k8smaster1.vm.provision "file", source: "k8s-provisioning/kubeadm-init.sh", destination: "$HOME/k8s-provisioning/kubeadm-init.sh"
k8smaster1.vm.provision "file", source: "k8s-provisioning/labels.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/labels.k8s-nodes.sh"
k8smaster1.vm.provision "file", source: "k8s-provisioning/ip.k8s-master-l1-1.sh", destination: "$HOME/k8s-provisioning/01_ip.k8s-node.sh"
k8smaster1.vm.provision "file", source: "k8s-provisioning/etc.hosts.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/02_etc.hosts.k8s-nodes.sh"
k8smaster1.vm.provision "file", source: "k8s-provisioning/docker.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/03_docker.k8s-nodes.sh"
k8smaster1.vm.provision "file", source: "k8s-provisioning/init.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/04_init.k8s-nodes.sh"
k8smaster1.vm.provision "file", source: "k8s-provisioning/kubeadm-init.sh", destination: "$HOME/k8s-provisioning/05_kubeadm-init.sh"
k8smaster1.vm.provision "file", source: "k8s-provisioning/labels.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/06_labels.k8s-nodes.sh"
k8smaster1.vm.provision "file", source: "calico/", destination: "$HOME/calico"
end
......@@ -86,10 +86,10 @@ Vagrant.configure("2") do |config|
vb.cpus = 1
vb.memory = 1024
end
k8snode1.vm.provision "file", source: "k8s-provisioning/ip.k8s-node-l1-1.sh", destination: "$HOME/k8s-provisioning/ip.k8s-node.sh"
k8snode1.vm.provision "file", source: "k8s-provisioning/etc.hosts.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/etc.hosts.k8s-nodes.sh"
k8snode1.vm.provision "file", source: "k8s-provisioning/docker.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/docker.k8s-nodes.sh"
k8snode1.vm.provision "file", source: "k8s-provisioning/init.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/init.k8s-nodes.sh"
k8snode1.vm.provision "file", source: "k8s-provisioning/ip.k8s-node-l1-1.sh", destination: "$HOME/k8s-provisioning/01_ip.k8s-node.sh"
k8snode1.vm.provision "file", source: "k8s-provisioning/etc.hosts.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/02_etc.hosts.k8s-nodes.sh"
k8snode1.vm.provision "file", source: "k8s-provisioning/docker.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/03_docker.k8s-nodes.sh"
k8snode1.vm.provision "file", source: "k8s-provisioning/init.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/04_init.k8s-nodes.sh"
end
config.vm.define("k8s-node-l1-2") do |k8snode2|
......@@ -101,10 +101,10 @@ Vagrant.configure("2") do |config|
vb.cpus = 1
vb.memory = 1024
end
k8snode2.vm.provision "file", source: "k8s-provisioning/ip.k8s-node-l1-2.sh", destination: "$HOME/k8s-provisioning/ip.k8s-node.sh"
k8snode2.vm.provision "file", source: "k8s-provisioning/etc.hosts.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/etc.hosts.k8s-nodes.sh"
k8snode2.vm.provision "file", source: "k8s-provisioning/docker.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/docker.k8s-nodes.sh"
k8snode2.vm.provision "file", source: "k8s-provisioning/init.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/init.k8s-nodes.sh"
k8snode2.vm.provision "file", source: "k8s-provisioning/ip.k8s-node-l1-2.sh", destination: "$HOME/k8s-provisioning/01_ip.k8s-node.sh"
k8snode2.vm.provision "file", source: "k8s-provisioning/etc.hosts.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/02_etc.hosts.k8s-nodes.sh"
k8snode2.vm.provision "file", source: "k8s-provisioning/docker.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/03_docker.k8s-nodes.sh"
k8snode2.vm.provision "file", source: "k8s-provisioning/init.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/04_init.k8s-nodes.sh"
end
config.vm.define("k8s-node-l2-1") do |k8snode3|
......@@ -116,10 +116,10 @@ Vagrant.configure("2") do |config|
vb.cpus = 1
vb.memory = 1024
end
k8snode3.vm.provision "file", source: "k8s-provisioning/ip.k8s-node-l2-1.sh", destination: "$HOME/k8s-provisioning/ip.k8s-node.sh"
k8snode3.vm.provision "file", source: "k8s-provisioning/etc.hosts.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/etc.hosts.k8s-nodes.sh"
k8snode3.vm.provision "file", source: "k8s-provisioning/docker.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/docker.k8s-nodes.sh"
k8snode3.vm.provision "file", source: "k8s-provisioning/init.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/init.k8s-nodes.sh"
k8snode3.vm.provision "file", source: "k8s-provisioning/ip.k8s-node-l2-1.sh", destination: "$HOME/k8s-provisioning/01_ip.k8s-node.sh"
k8snode3.vm.provision "file", source: "k8s-provisioning/etc.hosts.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/02_etc.hosts.k8s-nodes.sh"
k8snode3.vm.provision "file", source: "k8s-provisioning/docker.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/03_docker.k8s-nodes.sh"
k8snode3.vm.provision "file", source: "k8s-provisioning/init.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/04_init.k8s-nodes.sh"
end
config.vm.define("k8s-node-l2-2") do |k8snode4|
......@@ -131,10 +131,10 @@ Vagrant.configure("2") do |config|
vb.cpus = 1
vb.memory = 1024
end
k8snode4.vm.provision "file", source: "k8s-provisioning/ip.k8s-node-l2-2.sh", destination: "$HOME/k8s-provisioning/ip.k8s-node.sh"
k8snode4.vm.provision "file", source: "k8s-provisioning/etc.hosts.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/etc.hosts.k8s-nodes.sh"
k8snode4.vm.provision "file", source: "k8s-provisioning/docker.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/docker.k8s-nodes.sh"
k8snode4.vm.provision "file", source: "k8s-provisioning/init.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/init.k8s-nodes.sh"
k8snode4.vm.provision "file", source: "k8s-provisioning/ip.k8s-node-l2-2.sh", destination: "$HOME/k8s-provisioning/01_ip.k8s-node.sh"
k8snode4.vm.provision "file", source: "k8s-provisioning/etc.hosts.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/02_etc.hosts.k8s-nodes.sh"
k8snode4.vm.provision "file", source: "k8s-provisioning/docker.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/03_docker.k8s-nodes.sh"
k8snode4.vm.provision "file", source: "k8s-provisioning/init.k8s-nodes.sh", destination: "$HOME/k8s-provisioning/04_init.k8s-nodes.sh"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment