forked from hashicorp/consul
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'v1.0.0' into instart/master
Version 1.0.0 * tag 'v1.0.0': (455 commits) Release v1.0.0 Puts the tree in 1.0 final release mode. Fixes an XSS issue with unescaped node names. (hashicorp#3578) Adds a note about the Raft protocol not being the same as the Consul protocol. Adds a 1.0 section to the upgrade guide and cleans up the change log. Update sentinel.html.markdown.erb Update dns forwarding documentation (hashicorp#3574) Adds a brief wait and poll period to update check status after a timeout. (hashicorp#3573) Cleans up some drift between the OSS and Enterprise trees. Clarify the docs around script check timeout behavior Updates the change log. Kill check processes after the timeout is reached (hashicorp#3567) Updates the change log. retry locks on network errors (hashicorp#3553) Fix example code formatting in godoc config: remove redundant code config: fix check for segment.port <= 0 and add test Adds check to make sure port is given so we avoid a nil bind address. Removes obsolete segment stub. agent: add option to discard health output (hashicorp#3562) ...
- Loading branch information
Showing
982 changed files
with
123,771 additions
and
13,573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
/pkg | ||
Thumbs.db | ||
bin/ | ||
consul | ||
changelog.tmp | ||
exit-code | ||
ui/.bundle | ||
ui/.sass-cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
language: go | ||
|
||
go: | ||
- 1.8.3 | ||
- 1.x | ||
|
||
branches: | ||
only: | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
# | ||
|
||
LINUX_BASE_BOX = "bento/ubuntu-16.04" | ||
|
||
Vagrant.configure(2) do |config| | ||
config.vm.define "linux", autostart: true, primary: true do |vmCfg| | ||
vmCfg.vm.box = LINUX_BASE_BOX | ||
vmCfg.vm.hostname = "linux" | ||
vmCfg = configureProviders vmCfg, | ||
cpus: suggestedCPUCores() | ||
|
||
vmCfg = configureLinuxProvisioners(vmCfg) | ||
|
||
vmCfg.vm.synced_folder '.', | ||
'/opt/gopath/src/github.com/hashicorp/consul' | ||
|
||
vmCfg.vm.network "forwarded_port", guest: 8500, host: 8500, auto_correct: true | ||
end | ||
end | ||
|
||
def configureLinuxProvisioners(vmCfg) | ||
vmCfg.vm.provision "shell", | ||
privileged: true, | ||
inline: 'rm -f /home/vagrant/linux.iso' | ||
|
||
vmCfg.vm.provision "shell", | ||
privileged: true, | ||
path: './scripts/vagrant-linux-priv-go.sh' | ||
|
||
return vmCfg | ||
end | ||
|
||
def configureProviders(vmCfg, cpus: "2", memory: "2048") | ||
vmCfg.vm.provider "virtualbox" do |v| | ||
v.memory = memory | ||
v.cpus = cpus | ||
end | ||
|
||
["vmware_fusion", "vmware_workstation"].each do |p| | ||
vmCfg.vm.provider p do |v| | ||
v.enable_vmrun_ip_lookup = false | ||
v.vmx["memsize"] = memory | ||
v.vmx["numvcpus"] = cpus | ||
end | ||
end | ||
|
||
vmCfg.vm.provider "virtualbox" do |v| | ||
v.memory = memory | ||
v.cpus = cpus | ||
end | ||
|
||
return vmCfg | ||
end | ||
|
||
def suggestedCPUCores() | ||
case RbConfig::CONFIG['host_os'] | ||
when /darwin/ | ||
Integer(`sysctl -n hw.ncpu`) / 2 | ||
when /linux/ | ||
Integer(`cat /proc/cpuinfo | grep processor | wc -l`) / 2 | ||
else | ||
2 | ||
end | ||
end |
Oops, something went wrong.