Skip to content
Snippets Groups Projects
Commit 5d05d677 authored by Nikolaus Krismer's avatar Nikolaus Krismer
Browse files

improved vagrant compatibility (more boxes are supported by now - even

base boxed from vagrantbox.es)
update to centos 6.5 as default vagrant box
parent 63886656
No related branches found
No related tags found
No related merge requests found
......@@ -5,15 +5,31 @@
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Enable vagrant-cachier plugin
if VagrantPlugins.const_defined?(:Cachier)
config.cache.enable :yum
end
# Information about the box itself (name and url)
# config.vm.box = "fedora19-x86_64"
# config.vm.box_url = "http://www.krismer.de/files/VM/fedora19-x86_64.box"
# config.vm.box = "centos64-x86_64"
# config.vm.box_url = "http://www.krismer.de/files/VM/centos64-x86_64.box"
# config.vm.box = "centos65-x86_64"
# config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box"
# config.vm.box = "vagrant-centos-65-i386-minimal"
# config.vm.box_url = "http://files.brianbirkinbine.com/vagrant-centos-65-i386-minimal.box"
config.vm.box = "vagrant-centos-65-x86_64-minimal"
config.vm.box_url = "http://files.brianbirkinbine.com/vagrant-centos-65-x86_64-minimal.box"
# Setup of shared folders
config.vm.synced_folder "etc/vagrant/conf", "/setup/conf"
config.vm.synced_folder "etc/vagrant/img", "/setup/img"
# Setup environment on startup (done using a shell script)
config.vm.provision "shell", path: "etc/vagrant/bootstrap.sh", args: ["niko", "secretPhdPassword#2014!"]
config.vm.box = "centos64-x86_64"
config.vm.box_url = "http://www.krismer.de/files/VM/centos64-x86_64.box"
# Network configuration
config.vm.network :forwarded_port, guest: 8080, host: 8080, auto_correct: true, id: "tomcat"
config.vm.network :forwarded_port, guest: 7474, host: 7474, auto_correct: true, id: "neo4j"
config.vm.network :forwarded_port, guest: 5432, host: 5432, auto_correct: true, id: "postgresql"
......
......@@ -10,6 +10,18 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.cache.enable :yum
end
# Information about the box itself (name and url)
# config.vm.box = "fedora19-x86_64"
# config.vm.box_url = "http://www.krismer.de/files/VM/fedora19-x86_64.box"
# config.vm.box = "centos64-x86_64"
# config.vm.box_url = "http://www.krismer.de/files/VM/centos64-x86_64.box"
# config.vm.box = "centos65-x86_64"
# config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box"
# config.vm.box = "vagrant-centos-65-i386-minimal"
# config.vm.box_url = "http://files.brianbirkinbine.com/vagrant-centos-65-i386-minimal.box"
config.vm.box = "vagrant-centos-65-x86_64-minimal"
config.vm.box_url = "http://files.brianbirkinbine.com/vagrant-centos-65-x86_64-minimal.box"
# Setup of shared folders
config.vm.synced_folder "vagrant/conf", "/setup/conf"
config.vm.synced_folder "vagrant/img", "/setup/img"
......@@ -17,12 +29,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Setup environment on startup (done using a shell script)
config.vm.provision "shell", path: "bootstrap.sh"
# Information about the box itself (name and url)
# config.vm.box = "fedora19-x86_64"
# config.vm.box_url = "http://www.krismer.de/files/VM/fedora19-x86_64.box"
config.vm.box = "centos64-x86_64"
config.vm.box_url = "http://www.krismer.de/files/VM/centos64-x86_64.box"
# Network configuration
config.vm.network :forwarded_port, guest: 8080, host: 8080, auto_correct: true, id: "tomcat"
config.vm.network :forwarded_port, guest: 7474, host: 7474, auto_correct: true, id: "neo4j"
......
......@@ -251,6 +251,9 @@ mkdir -p $DOWNLOAD_DIR
echo "Configuring timezone"
cp /usr/share/zoneinfo/Europe/Vienna /etc/localtime > setup_timezone.log 2>&1
echo "Installing utils (gcc, git, ...) with yum repository version"
yum -y install gcc gcc-c++ git iptables-services nano nmap tar unzip wget > ins$
#echo "Installing krismer repository"
#fn_download_newer $DOWNLOAD_DIR/krismer.repo $NEXUS_REPO
#cp $DOWNLOAD_DIR/krismer.repo /etc/yum.repos.d > install_krismer_repo.log 2>&1
......@@ -272,9 +275,6 @@ if $INSTALL_POSTGRES; then
yum -y localinstall $DOWNLOAD_DIR/epel-repo.rpm > install_epel_repo.log 2>&1
fi
echo "Installing utils (gcc, git, ...) with yum repository version"
yum -y install gcc gcc-c++ git iptables-services tar unzip wget > install_utils.log 2>&1
echo "Stopping iptables and SELinux"
service iptables stop > stop_iptables.log 2>&1
if [ $(getenforce) == "Enforcing" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment