-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
48 lines (40 loc) · 1.93 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
#!/bin/bash
# Copyright 2017 MSO4SC - [email protected]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.network "private_network", ip: "192.168.56.10"
# config.vm.network "forwarded_port", guest: 8000, host: 8000
config.vm.synced_folder "../../croupier-resources", "/home/vagrant/resources"
config.vm.provider "virtualbox" do |vb|
# Not display the VirtualBox GUI when booting the machine
vb.gui = false
vb.cpus = 2
# Customize the amount of memory on the VM:
vb.memory = "4096"
vb.customize ["modifyvm", :id, "--vram", "12"]
# Set the timesync threshold to 1 second, instead of the default 20 minutes.
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 1000]
end
config.vm.provision "file", source: "./check-ssh-keys.sh", destination: "/home/vagrant/check-ssh-keys.sh"
config.vm.provision "file", source: "./bootstrap-manager.sh", destination: "/home/vagrant/bootstrap-manager.sh"
config.vm.provision "shell", path: "./centos-basic-deps.sh"
config.vm.provision "shell", path: "./centos-python2.sh"
config.vm.provision "shell", path: "./centos-cloudify-cli.sh"
config.vm.provision "shell", path: "./vagrant-set-permissions.sh"
#HACK TO AVOID ttyname failed: Inappropiate ioctl for device
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
end