-
-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GOMAXPROCS picks number of CPUs using sysconfig - Also updated Serverspec to 2.0 #52
Merged
Merged
Changes from 8 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
122e6e5
serverspec2.0 added and consul_ui test fixed
goncalopereira ed1b0d9
cleaning up .gitignore
goncalopereira 014ee8f
clean up gitignore
goncalopereira d451e81
GOMAXPROCS used through sysconfig
goncalopereira 6204a44
Best Practice - Force Chef to setup number of CPUs
goncalopereira b8da19a
Sysconfig triggers init.d template not the service
goncalopereira 0310f61
remove unused .gitignore2 file
goncalopereira 0563c53
Init environment setup
goncalopereira 9b9f536
moving cpu total variable into template instead of variables
goncalopereira 13c69d8
serverspec2.0 added and consul_ui test fixed
goncalopereira b2d3a05
GOMAXPROCS used through sysconfig
goncalopereira 44f7e36
merging upstream
goncalopereira 05db45f
Merge remote-tracking branch 'upstream/master'
goncalopereira 68e4382
fix merge
goncalopereira daf164f
merge fix again
goncalopereira 3c9b497
allow GOMAXPROCS to always use CPU Information, no default
6adbdcf
Merge remote-tracking branch 'upstream/master'
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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 @@ | ||
GOMAXPROCS=<%= @gomaxprocs %> |
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 |
---|---|---|
@@ -1,8 +1,3 @@ | ||
require 'serverspec' | ||
|
||
include SpecInfra::Helper::Exec | ||
include SpecInfra::Helper::DetectOS | ||
|
||
RSpec.configure do |c| | ||
c.path = '/usr/local/bin:/sbin:/bin:/usr/bin' | ||
end | ||
set :backend, :exec | ||
set :path, '/usr/local/bin:/bin:/sbin:/usb/sbin:$PATH' |
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,11 +1,11 @@ | ||
require 'spec_helper' | ||
|
||
describe file('/var/lib/consul/ui/index.html') do | ||
describe file('/var/lib/consul/ui/consul_ui/index.html') do | ||
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong. |
||
it { should be_file } | ||
end | ||
|
||
eth0_ip = command("/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'").stdout.strip | ||
describe command("wget -q -O- http://#{eth0_ip}:8500/ui/index.html") do | ||
it { should return_exit_status 0 } | ||
its(:stdout) { should == File.read('/var/lib/consul/ui/index.html') } | ||
describe command("wget -q -O- http://#{eth0_ip}:8500/ui/consul_ui/index.html") do | ||
its(:exit_status) { should eq 0 } | ||
its(:stdout) { should eq File.read('/var/lib/consul/ui/consul_ui/index.html') } | ||
end |
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,16 +1,3 @@ | ||
begin | ||
require 'rspec/its' | ||
rescue LoadError | ||
require 'rubygems/dependency_installer' | ||
Gem::DependencyInstaller.new.install('rspec-its') | ||
require 'rspec/its' | ||
end | ||
|
||
require 'serverspec' | ||
|
||
include SpecInfra::Helper::Exec | ||
include SpecInfra::Helper::DetectOS | ||
|
||
RSpec.configure do |c| | ||
c.path = '/usr/local/bin:/sbin:/bin:/usr/bin' | ||
end | ||
set :backend, :exec | ||
set :path, '/usr/local/bin:/bin:/sbin:/usb/sbin:$PATH' |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.