diff --git a/test/Vagrantfile b/test/Vagrantfile index ec72304..310e2ed 100644 --- a/test/Vagrantfile +++ b/test/Vagrantfile @@ -94,6 +94,8 @@ Vagrant.configure("2") do |config| monitor.vm.box = "centos/7" monitor.vm.hostname = 'monitor' monitor.vm.network "private_network", ip: "10.10.10.20" + monitor.vm.network "forwarded_port", guest: 3000, host: 3000 + monitor.vm.network "forwarded_port", guest: 9000, host: 9000 monitor.vm.box_check_update = false monitor.vm.provider "virtualbox" do |v| v.linked_clone = true @@ -122,4 +124,4 @@ Vagrant.configure("2") do |config| monitor.vm.provision "shell", inline: "sudo -iu postgres /opt/bin/init-primary.sh postgres:///meta" end -end \ No newline at end of file +end diff --git a/test/bin/install-consul.sh b/test/bin/install-consul.sh index caf3002..a5a8921 100755 --- a/test/bin/install-consul.sh +++ b/test/bin/install-consul.sh @@ -235,4 +235,4 @@ function main(){ # 5 get local IP failed # 6 launch consul.service failed #==============================================================# -main $@ \ No newline at end of file +main $@ diff --git a/test/bin/install-utils.sh b/test/bin/install-utils.sh index a21f0e3..ade2805 100755 --- a/test/bin/install-utils.sh +++ b/test/bin/install-utils.sh @@ -99,12 +99,13 @@ function install_utils() { lsof \ wget \ unzip $@ >/dev/null 2>&1 - + if [[ $? != 0 ]]; then echo 'error: install utils failed' return 3 fi - + # retry install + yum install -y ntp uuid readline lz4 nc libxml2 libxslt lsof wget unzip sysstat vim systemctl enable ntpd > /dev/null 2>&1 systemctl start ntpd > /dev/null 2>&1 @@ -144,4 +145,4 @@ function main(){ return $? } -main $@ \ No newline at end of file +main $@