surveil/contrib/Vagrantfile
aviau 0da1077d51 Vagrantfile: Add surveil bash completion
Change-Id: I1f294cdfca0fb718047911eec4eb44fabbdead73
2015-06-29 11:44:04 -04:00

31 lines
1.4 KiB
Ruby

VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos/7"
config.vm.network "public_network"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provision :shell, :inline => "yum install -y vim yum-utils"
# Disabling SELinux
config.vm.provision :shell, :inline => "echo 0 > /sys/fs/selinux/enforce"
config.vm.provision :shell, :inline => "sed -i 's/SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config"
# Install repos
config.vm.provision :shell, :inline => "yum-config-manager --add-repo http://yum.surveil.io/centos_7/"
config.vm.provision :shell, :inline => "yum install -y https://rdoproject.org/repos/rdo-release.rpm"
# Install Surveil
config.vm.provision :shell, :inline => "yum install -y surveil-full --nogpgcheck"
config.vm.provision :shell, :inline => "systemctl start mongod"
config.vm.provision :shell, :inline => "systemctl start surveil-full.target"
config.vm.provision :shell, :inline => "sleep 10"
config.vm.provision :shell, :inline => "surveil-init --influxdb"
config.vm.provision :shell, :inline => "surveil-webui-init -H localhost -U root -P root -p 8086 -g 'http://localhost:3000/grafana'"
config.vm.provision :shell, :inline => "echo 'source /etc/bash_completion.d/surveil' >> /home/vagrant/.bashrc"
# Show IP
config.vm.provision :shell, :inline => "ip addr | grep 'inet 192.168.'"
end