79 Commits

Author SHA1 Message Date
James Rasell
ee9e2e0fa1 dev: make cni, consul, dev, docker, and vault scripts Lima compat. (#16689) 2023-03-28 16:21:14 +01:00
James Rasell
5816edcf85 dev: modify Go install to support arch64 and non-vagrant machines. (#16651) 2023-03-28 14:18:48 +01:00
James Rasell
c071791211 dev: account for non-vagrant machines on Linux config priv. (#16657) 2023-03-27 17:13:18 +01:00
Tim Gross
504e93966b tools: update virtualbox networking configuration (#11561)
As of VirtualBox 6.1.28, host-only networks are restricted to
`192.168.56.0/21` by default, so spinning up the Vagrant boxes with
secondary networks fail with an error `E_ACCESSDENIED`.

Update the IP configuration of the Vagrant boxes to fall within the
allowed range so that we don't need to ask developers from the
community to make VirtualBox configuration updates outside of their
normal Vagrant use.
2021-11-24 10:45:58 -05:00
James Rasell
6c7cedf59b vagrantfile: expose Nomad and Consul APIs to local machine. 2021-10-27 12:15:37 +02:00
Kris Hicks
e5be40b4b0 proto: Switch to using buf (#9308)
This replaces all usage of `protoc` with `buf`. See `tools/buf/README.md` for more.
2020-11-17 07:01:48 -08:00
Mahmood Ali
a6a96c47e4 only set args.Eval after all servers upgrade
We set the Eval field on job (de-)registration only after all servers
get upgraded, to avoid dealing with duplicate evals.
2020-07-15 11:10:57 -04:00
Mahmood Ali
e265e4c7b2 Remove rkt as a built-in driver
Rkt has been archived and is no longer an active project:
* https://github.com/rkt/rkt
* https://github.com/rkt/rkt/issues/4024

The rkt driver will continue to live as an external plugin.
2020-02-26 22:16:41 -05:00
Mahmood Ali
c0f42dca76 vagrant: disable audio interference
Avoid Vagrant/virtualbox interferring with host audio when the VM boots.
2020-02-03 11:26:41 -05:00
Robert James Hernandez
2a933cc9fc Bumping freebsd vagrant to 11.3-STABLE (#6500) 2019-11-06 08:58:34 -05:00
Tim Gross
15f9fea2c3 dev: expose Consul port 8500 in linux-ui Vagrantfile (#6292) 2019-09-11 14:53:30 -04:00
Mahmood Ali
8f68f5c13b 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
b40b0b1ae6 add CNI plugins to Vagrant install 2019-09-05 14:20:17 -04:00
Mahmood Ali
d5d6477c87 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
20a16348fe 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
c22facf3a5 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
0ce5a020c6 renamed vagrant script to accurately reflect non-privileged requirement 2018-10-05 10:07:05 -04:00
Chris Baker
dcf5c83405 vagrant: modified UI provisioning script to run as non-privileged 2018-10-04 19:06:35 -04:00
Alex Dadgar
fc43f8b13c Remove old protoc installer 2018-08-01 13:51:45 -07:00
Alex Dadgar
ea814c45e0 Add protoc to project 2018-08-01 13:50:08 -07:00
Chelsea Holland Komlo
cd1b453110 bootstrap vagrant development environment with protoc 2018-07-31 15:26:57 -04:00
Alex Dadgar
a9d0937e88 Seperate ui vagrant 2018-06-11 16:07:06 -07:00
Peter Dave Hello
dfc28f4813 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
83315e0a16 fixing box timeout issue waiting for interfaces 2018-02-14 21:30:11 -08:00
Michael Schurter
2a42210b68 Fix whitespace 2017-11-01 11:14:25 -07:00
Alex Dadgar
ddc2efa4ac sync 2017-09-19 10:08:23 -05:00
Michael Schurter
7e3d975b71 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
9ec82bc545 build: Install Go in Vagrant from official release 2017-09-08 19:46:07 -05:00
James Nugent
f8ff0463b0 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
5506431924 Update Vagrantfile 2017-09-03 18:03:39 -07:00
Alex Dadgar
66195d2be1 Update to Go 1.9 2017-09-01 16:42:09 -07:00
Armon Dadgar
46e65475d7 Fix Golang update in Vagrant provisioner 2017-08-23 19:55:39 -07:00
Michael Schurter
b5f687df1d Bump Go to 1.8.3 in Vagrantfile 2017-06-05 10:23:36 -07:00
Michael Schurter
234d734745 go-winio now requires cgo which requires mingw 2017-05-03 17:09:12 -07:00
Michael Schurter
f428b659cf Use Go 1.8.1 in Vagrant 2017-04-25 09:24:53 -07:00
Michael Schurter
efc4108a9e Fix Go 1.8 in Vagrantfile 2017-02-23 13:27:18 -08:00
Alex Dadgar
f812cbc0c6 Bump go 2017-02-17 10:22:30 -08:00
Michael Schurter
5bb805cc5e 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
0d3d712da7 Fix vagrant on vbox 2017-01-31 13:36:48 -08:00
Alex Dadgar
8e2b0a8d26 Fix vagrant ssh 2017-01-31 11:01:47 -08:00
Alex Dadgar
7609cadf4d Change box 2017-01-27 16:23:43 -08:00
Michael Schurter
cb5e23d7b4 Fix vagrant provision with a bunch of guards 2017-01-27 16:08:21 -08:00
Michael Schurter
917c48a8e5 Bump rkt version; simplify script 2017-01-27 16:08:21 -08:00
Michael Schurter
afbf63152b 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
d84660a047 Split out massive list of cross compile deps+cmds 2017-01-27 16:08:21 -08:00
Michael Schurter
b9da18efc8 Install crosscompile dep to build arm in Vagrant 2017-01-27 16:08:21 -08:00
Michael Schurter
f849e4309d Put the right hostname in /etc/hosts 2017-01-12 16:57:09 -08:00
Michael Schurter
dc3a013bec 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
024a0d3fad Updated version of Go 2016-12-06 15:15:52 -08:00
root
4102eba574 Release v0.5.0-rc2 2016-11-10 19:08:15 +00:00