From d926c2a11ebc4df2ce37969b79aa70c364f2f272 Mon Sep 17 00:00:00 2001 From: Alex Leonhardt Date: Sat, 9 Apr 2016 20:17:31 +0100 Subject: [PATCH] update to use threads when getting data from sensu-api; update vagrant file for multiple local test hosts --- Vagrantfile | 122 +++++++++++++++++++++++++++++++---------------- conf/config.yaml | 12 ++++- sensugrid.py | 44 ++++++++++++++++- 3 files changed, 135 insertions(+), 43 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index c73ea10..244264e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -6,19 +6,8 @@ # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure(2) do |config| - config.vm.box = "centos65-x86_64-20140116" - config.vm.provider "virtualbox" do |vb| - vb.memory = "768" - end - config.vm.network "forwarded_port", guest: 3000, host: 3000 - config.vm.network "forwarded_port", guest: 4567, host: 4567 - #config.vm.network "forwarded_port", guest: 5000, host: 5000 - - config.vm.synced_folder ".", "/vagrant" - config.vm.synced_folder ".", "/opt/sensu-grid" - - config.vm.provision "shell", inline: <<-SHELL +config.vm.provision "shell", inline: <<-SHELL sudo yum -y install epel-release vim-enhanced sudo su -c cat >/etc/yum.repos.d/sensu.repo<