This repository has been archived by the owner on Dec 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Vagrantfile
65 lines (60 loc) · 1.83 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- mode: ruby -*-
# vi: set ft=ruby :
IMAGE_NAME = "bento/ubuntu-18.04"
N = 1
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 2
end
config.vm.define "k8s-master" do |master|
master.vm.box = IMAGE_NAME
config.vm.synced_folder "etc/", "/sync/etc"
master.vm.network "private_network", ip: "192.168.60.10"
master.vm.hostname = "k8s-master"
master.vm.provision "common",
type:"shell",
preserve_order: true,
path: "install-common.sh",
privileged: false
master.vm.provision "master-setup",
type:"shell",
preserve_order: true,
path: "install-master.sh",
privileged: false
master.vm.provision "wlm-operator-master",
type:"shell",
preserve_order: true,
path: "install-wlm-operator-master.sh",
privileged: false
end
(1..N).each do |i|
config.vm.define "node-#{i}" do |node|
node.vm.box = IMAGE_NAME
config.vm.synced_folder "etc/", "/sync/etc"
node.vm.network "private_network", ip: "192.168.60.#{i + 10}"
node.vm.hostname = "node-#{i}"
node.vm.provision "common",
type:"shell",
preserve_order: true,
path: "install-common.sh",
privileged: false
node.vm.provision "slave-setup",
type:"shell",
preserve_order: true,
path: "install-node.sh",
privileged: false
node.vm.provision "slurm",
type:"shell",
preserve_order: true,
path: "install-slurm.sh",
privileged: false
node.vm.provision "wlm-operator",
type:"shell",
preserve_order: true,
path: "install-wlm-operator.sh",
privileged: false
end
end
end