Skip to content
Snippets Groups Projects
Commit 1bcf28ec authored by Eike Cochu's avatar Eike Cochu
Browse files

added gitignore for vagrant vm

added vagrantfile and bootstrapping script
parent dc7ae870
Branches
Tags u5
No related merge requests found
.vagrant/
......@@ -449,11 +449,15 @@
},
"expanded_folders":
[
"/home/eike/Repositories/fu/ss15/ma/impl"
"/home/eike/Repositories/fu/ss15/ma/impl",
"/home/eike/Repositories/fu/ss15/ma/impl/vm",
"/home/eike/Repositories/fu/ss15/ma/impl/vm/config"
],
"file_history":
[
"/home/eike/Repositories/fu/ss15/ma/impl/vm/Vagrantfile",
"/home/eike/Repositories/fu/ss15/ma/impl/vm/bootstrap.sh",
"/home/eike/Repositories/fu/ss15/ma/impl/vm/env.sh",
"/home/eike/Repositories/fu/ws1415/ntdb/Vagrantfile",
"/home/eike/Repositories/fu/ws1415/ntdb/puppet/manifests/default.pp",
"/home/eike/Repositories/fu/ss15/ma/impl/vm/manifests/default.pp",
......
Vagrant.configure(2) do |config|
config.vm.box = 'ubuntu/trusty64'
config.vm.box_check_update = true
config.vm.provider "virtualbox" do |v|
v.memory = 8192
v.cpus = 2
end
config.vm.define "master" do |master|
master.vm.hostname = 'cma-master'
master.vm.network :private_network, ip: '192.168.10.10'
master.vm.network :forwarded_port, guest: 27017, host: 27017
master.vm.provision :shell, path: 'bootstrap.sh'
end
end
#!/bin/sh
# upgrade system
apt-get update
apt-get upgrade -y
apt-get install git scala -y
# install & start mongodb
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list
apt-get update
apt-get install -y mongodb-org
cp /vagrant/config/master-mongod.conf /etc/mongod.conf
service mongod restart
# install spark
wget ftp://mirror.netcologne.de/apache.org/spark/spark-1.5.2/spark-1.5.2-bin-hadoop2.6.tgz
tar zxf spark-1.5.2-bin-hadoop2.6.tgz
rm spark-1.5.2-bin-hadoop2.6.tgz
mv spark-1.5.2-bin-hadoop2.6 spark
echo "source /vagrant/env.sh" >> /home/vagrant/.bashrc
# disable firewall
ufw disable
\ No newline at end of file
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# network interfaces
net:
port: 27017
#processManagement:
#security:
#operationProfiling:
#replication:
#sharding:
## Enterprise-Only Options:
#auditLog:
#snmp:
#!/bin/sh
export PATH=$PATH:$HOME/spark/bin
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment