Commit graph

69 commits

Author SHA1 Message Date
Tim Gross c6c294aa47
dev: expose Consul port 8500 in linux-ui Vagrantfile (#6292) 2019-09-11 14:53:30 -04:00
Mahmood Ali a39f87bba8 vagrant: Export services without port mapping
By having an ip address by default, developers can access any service on
the Vagrant linux box without needing to setup port maps.
2019-09-06 14:27:26 -04:00
Tim Gross 6e987f8455 add CNI plugins to Vagrant install 2019-09-05 14:20:17 -04:00
Mahmood Ali 67b6758bed Add a Docker release scripts
Also tease out some dev and docker bits from Vagrant scripts to ease
sharing with Docker script
2019-03-17 10:37:36 -04:00
Robert James Hernandez 8d07f59740 Update vagrant box to freebsd 11.2 STABLE
Freebsd 11.1 went EOL 9/30/18:
https://lists.freebsd.org/pipermail/freebsd-announce/2018-September/001842.html

Was seeing a failure with shared object "libdl.so.1" not found which
is required for bash
2019-03-14 18:36:30 -07:00
Robert James Hernandez 0dec6fa13c Set shell to sh and networking to host dhcp
Set shell to sh which is present by default on freebsd. Also set
networking to host dhcp due to limitations with NFS sharing:
https://github.com/hashicorp/vagrant/issues/9063
2019-03-13 20:58:25 -07:00
Chris Baker bd55ff8f30 renamed vagrant script to accurately reflect non-privileged requirement 2018-10-05 10:07:05 -04:00
Chris Baker 6c480ac408 vagrant: modified UI provisioning script to run as non-privileged 2018-10-04 19:06:35 -04:00
Alex Dadgar 7f5c37de75 Remove old protoc installer 2018-08-01 13:51:45 -07:00
Alex Dadgar 95ccfd6ae1 Add protoc to project 2018-08-01 13:50:08 -07:00
Chelsea Holland Komlo 24400bca8c bootstrap vagrant development environment with protoc 2018-07-31 15:26:57 -04:00
Alex Dadgar 6c07306b61 Seperate ui vagrant 2018-06-11 16:07:06 -07:00
Peter Dave Hello 5b7a5cc73a Improve CPU core detection in Vagrantfile
Use single `grep` with `^` condition instead of `grep` + `cat` + `wc`
2018-04-16 15:11:20 +08:00
zane 299e58d35b fixing box timeout issue waiting for interfaces 2018-02-14 21:30:11 -08:00
Michael Schurter 2c107e08f1 Fix whitespace 2017-11-01 11:14:25 -07:00
Alex Dadgar e5ec915ac3 sync 2017-09-19 10:08:23 -05:00
Michael Schurter 566f2ee061 Fix permissions of $GOPATH in Vagrantfile
Technically just the true->false is needed. The `chown -R` was a first
attempt that didn't fix the bug, but it's a nice simplification.
2017-09-11 22:38:10 -07:00
James Nugent 72028fd5b3 build: Install Go in Vagrant from official release 2017-09-08 19:46:07 -05:00
James Nugent 094fa23df6 build: Rework Vagrant to support multiple OS boxes
This commit reworks the Vagrantfile for Nomad in order to support
straightforward testing on more than one operating system, whilst
retaining the ability to stand up a test cluster running Ubuntu.

The following changes are made:

- Scripts have been extracted from the Vagrantfile into their own shell
  script files, in order that editors lint them.

- All scripts have been edited to lint with no warnings or errors for
  their respective shells.

- Scripts are named according to the operating system and privilege
  level which they run. We prefer to run a whole shell script as root
  versus prefixing (essentially) every command with `sudo` or an
  equivalent.

- The Linux development box has been separated from the test cluster,
  removing some of the more gnarly (and less portable) logic. The Linux
  development box is still primary and autostarts.

- A FreeBSD target has been added. The base box works for both
  Virtualbox and VMWare Fusion.

- A target is added to the GNUmakefile to stand up a test cluster, using
  the default provider, or overriding the provider by setting the PROVIDER
  variable in make:
	- `make testcluster`
	- `make testcluster PROVIDER=vmware_fusion`

- Machines in the test cluster have Avahi configured for zeroconf
  discovery. Each machine can ping each other machine at `hostname.local`
  - for example `nomad-server02.local`, `nomad-client03.local`.
2017-09-08 19:45:38 -05:00
Alex Dadgar 53295748aa Update Vagrantfile 2017-09-03 18:03:39 -07:00
Alex Dadgar 9cef4dad18 Update to Go 1.9 2017-09-01 16:42:09 -07:00
Armon Dadgar 16a18e9db6 Fix Golang update in Vagrant provisioner 2017-08-23 19:55:39 -07:00
Michael Schurter 37b09f3901 Bump Go to 1.8.3 in Vagrantfile 2017-06-05 10:23:36 -07:00
Michael Schurter a2a8af471a go-winio now requires cgo which requires mingw 2017-05-03 17:09:12 -07:00
Michael Schurter a7e913ee78 Use Go 1.8.1 in Vagrant 2017-04-25 09:24:53 -07:00
Michael Schurter 2b22b86e61 Fix Go 1.8 in Vagrantfile 2017-02-23 13:27:18 -08:00
Alex Dadgar bbf1859794 Bump go 2017-02-17 10:22:30 -08:00
Michael Schurter f2cf2b1df1 Fix 32bit arm build
Had to use the hack from https://github.com/golang/go/issues/12443
2017-02-09 11:22:17 -08:00
Michael Schurter 2c36d3de9c Fix vagrant on vbox 2017-01-31 13:36:48 -08:00
Alex Dadgar 1fc30de78c Fix vagrant ssh 2017-01-31 11:01:47 -08:00
Alex Dadgar 2d014b1e87 Change box 2017-01-27 16:23:43 -08:00
Michael Schurter a0d792ea77 Fix vagrant provision with a bunch of guards 2017-01-27 16:08:21 -08:00
Michael Schurter d2bc719a26 Bump rkt version; simplify script 2017-01-27 16:08:21 -08:00
Michael Schurter 5cd710bd8e Upgrade vagrant/release to Ubuntu 16.04 / Go 1.7.5
Switch back to soft-float arm32 as armhf chips are backward compatible.
2017-01-27 16:08:21 -08:00
Michael Schurter 6a085080bc Split out massive list of cross compile deps+cmds 2017-01-27 16:08:21 -08:00
Michael Schurter e620336a0c Install crosscompile dep to build arm in Vagrant 2017-01-27 16:08:21 -08:00
Michael Schurter a27306ed39 Put the right hostname in /etc/hosts 2017-01-12 16:57:09 -08:00
Michael Schurter 9154f8a8ce Add local hostname resolution to Vagrantfile
Makes running agents in vagrant without using `-dev` work.
2017-01-12 11:53:24 -08:00
Diptanu Choudhury a0c011ac3e Updated version of Go 2016-12-06 15:15:52 -08:00
root 8c1bdc0342
Release v0.5.0-rc2 2016-11-10 19:08:15 +00:00
Diptanu Choudhury 9d3cdded9a Merge pull request #1699 from hashicorp/f-lxc-driver
LXC Support
2016-10-25 15:17:44 -07:00
Michael Schurter 0cd3763a10 Update rkt script and test rkt in travis 2016-10-25 09:46:49 -07:00
Diptanu Choudhury 77b146f167 Adding lxc dependencies in Vagrant 2016-10-12 17:18:58 -07:00
Diptanu Choudhury bda4d75b2e Updating go version to 1.7.1 2016-09-09 22:24:19 -07:00
Alex Dadgar 2f6f840453 install scripts 2016-08-17 16:25:38 -07:00
Alex Dadgar 3fe013695d Update vagrant 2016-08-17 16:24:30 -07:00
vagrant 89bdd77721
Release v0.4.1 2016-08-17 22:56:04 +00:00
Diptanu Choudhury f24e8f351e Updating go version in Vagrant 2016-08-16 15:33:24 -07:00
Sean Chittenden aa8d24074f
Bump the CPU count on the primary box to hw.ncpu-1 on Darwin 2016-06-14 11:27:42 -07:00
Sean Chittenden f550a59eca Update Vagrantfile to support multiple nodes. Bump Go to 1.6.2.
`vagrant up` just works and only one VM is spun-up by default, however
there are up to 5x VMs available for cluster testing. `nomad-server%02d`
and `nomad-client%02d`.
2016-05-05 11:07:02 -07:00