From b74e19cd1ff873c3c8d111bcf14403ca5f91829c Mon Sep 17 00:00:00 2001 From: Andrew Kroh Date: Thu, 25 Jul 2019 09:07:05 -0400 Subject: [PATCH] Vagrantfile updates (#13065) - Make Powershell script mostly idempotent. - Add win2016 and win2019 boxes. - Update to centos-6.10 and fedora29. - Make changes for consistency (variable names, spacing). - Remove defaults that were specified for syned_folder. --- Vagrantfile | 294 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 170 insertions(+), 124 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 183888b1fd0..68792c791a6 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,20 +1,21 @@ ### Documentation -# This is a Vagrantfile for Beats development. # -# Boxes +# This is a Vagrantfile for Beats development and testing. These are unofficial +# environments to help developers test things in different environments. +# +# Notes # ===== # -# win2012 -# ------- -# This box is used as a Windows development and testing environment for Beats. +# win2012, win2016, win2019 +# ------------------------- +# +# To login install Microsoft Remote Desktop Client (available in Mac App Store). +# Then run 'vagrant rdp' and login as user/pass vagrant/vagrant. Or you can +# manually configure your RDP client to connect to the mapped 3389 port as shown +# by 'vagrant port win2019'. # -# Usage and Features: -# - Two users exist: Administrator and Vagrant. Both have the password: vagrant -# - Use 'vagrant ssh' to open a Windows command prompt. -# - Use 'vagrant rdp' to open a Windows Remote Desktop session. Mac users must -# install the Microsoft Remote Desktop Client from the App Store. -# - There is a desktop shortcut labeled "Beats Shell" that opens a command prompt -# to C:\Gopath\src\github.com\elastic\beats where the code is mounted. +# The provisioning currently does no install libpcap sources or a pcap driver +# (like npcap) so Packetbeat will not build/run without some manually setup. # # solaris # ------------------- @@ -25,38 +26,93 @@ # - Use gmake instead of make. # - Folder syncing doesn't work well. Consider copying the files into the box or # cloning the project inside the box. +### +# Read the branch's Go version from the .go-version file. GO_VERSION = File.read(File.join(File.dirname(__FILE__), ".go-version")).strip # Provisioning for Windows PowerShell $winPsProvision = <