forked from agstephens/slurm-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
55 lines (49 loc) · 1.97 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This guide is optimized for Vagrant 1.7 and above.
Vagrant.require_version ">= 1.7.0"
Vagrant.configure("2") do |config|
#######################################
### slurm nodes ######################
#######################################
# Increased memory (default: 512) to resolve conda envs in jaspy (21/06/2019)
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--cpus", 2]
end
# Disable the new default behavior introduced in Vagrant 1.7, to
# ensure that all Vagrant machines will use the same SSH key pair.
# See https://github.com/mitchellh/vagrant/issues/5005
config.ssh.insert_key = false
config.ssh.private_key_path = '~/.vagrant.d/insecure_private_key'
config.vm.define "slurmserver" do |slurmserver|
slurmserver.vm.box = "bento/centos-7"
slurmserver.vm.hostname = "slurmserver.local"
slurmserver.vm.network "private_network", ip: "192.168.50.44"
# slurmserver.vm.provision 'ansible' do |ansible|
# ansible.playbook = 'playbook-single.yml'
# ansible.verbose = "v"
# ansible.host_key_checking = false
# end
end
config.vm.define "slurmbatch1" do |slurmbatch1|
slurmbatch1.vm.box = "bento/centos-7"
slurmbatch1.vm.hostname = "slurmbatch1.local"
slurmbatch1.vm.network "private_network", ip: "192.168.50.45"
# slurmbatch1.vm.provision 'ansible' do |ansible|
# ansible.playbook = 'playbook-single.yml'
# ansible.verbose = "v"
# ansible.host_key_checking = false
# end
end
config.vm.define "slurmbatch2" do |slurmbatch2|
slurmbatch2.vm.box = "bento/centos-7"
slurmbatch2.vm.hostname = "slurmbatch2.local"
slurmbatch2.vm.network "private_network", ip: "192.168.50.46"
# slurmbatch2.vm.provision 'ansible' do |ansible|
# ansible.playbook = 'playbook-single.yml'
# ansible.verbose = "v"
# ansible.host_key_checking = false
# end
end
end