Skip to content

Commit

Permalink
Merge pull request #434 from visioncritical/083-version
Browse files Browse the repository at this point in the history
Update default version to 0.8.3
  • Loading branch information
legal90 authored May 30, 2017
2 parents ed78312 + 2509027 commit 2b528fa
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 13 deletions.
3 changes: 1 addition & 2 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
default['consul']['config']['ports'] = {
'dns' => 8600,
'http' => 8500,
'rpc' => 8400,
'serf_lan' => 8301,
'serf_wan' => 8302,
'server' => 8300,
Expand All @@ -32,7 +31,7 @@

default['consul']['service']['config_dir'] = join_path config_prefix_path, 'conf.d'

default['consul']['version'] = '0.7.5'
default['consul']['version'] = '0.8.3'

# Windows only
default['consul']['service']['nssm_params'] = {
Expand Down
4 changes: 3 additions & 1 deletion libraries/consul_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ class ConsulConfig < Chef::Resource
attribute(:data_dir, kind_of: String)
attribute(:datacenter, kind_of: String)
attribute(:disable_anonymous_signature, equal_to: [true, false], default: false)
attribute(:disable_remote_exec, equal_to: [true, false], default: false)
attribute(:disable_host_node_id, equal_to: [true, false], default: false)
attribute(:disable_remote_exec, equal_to: [true, false], default: true)
attribute(:disable_update_check, equal_to: [true, false], default: false)
attribute(:dns_config, kind_of: [Hash, Mash])
attribute(:domain, kind_of: String)
Expand Down Expand Up @@ -141,6 +142,7 @@ def to_json
data_dir
datacenter
disable_anonymous_signature
disable_host_node_id
disable_remote_exec
disable_update_check
dns_config
Expand Down
16 changes: 16 additions & 0 deletions libraries/consul_installation_binary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ def self.binary_checksum(node, resource)
when '0.7.4' then 'a66cd4efdff376e7fd5c22d2710d7ef6734562c46df80a05e3144222965d9a97'
when '0.7.5' then '60c1685bfbefe55d0ac67f37d4bc88752a204609221d0cc4425452f1ffc2e42b'
when '0.8.1' then 'd4d4e865e760df499a3ea884fa73ff5fc11a42ce23108c5ce0eb0eb80dafcb75'
when '0.8.2' then '63de23c7de3b9b48592353f8427ad40a9dd28da51a66c9f3759f5fdfd6aad136'
when '0.8.3' then '97102020bd3638e98d65633d0e51d425168de17a53f12d566585663a2a19905f'
end
when 'darwin-i386'
case resource.version
Expand All @@ -120,6 +122,8 @@ def self.binary_checksum(node, resource)
when '0.7.4' then '7638e80c9db050ef8d63bad3baa338985da1a1bd4657f3b2fc4222d105c673a3'
when '0.7.5' then '9ff8798a94bab99fb2387afae5bc0fc2844a304675abbceb9315292019a8f582'
when '0.8.1' then '7e07930dd7085db838feabc8cdf0a9e6668eddc1b7db6496192a966a9548e447'
when '0.8.2' then '43de9c5f42e548ca821e2a786988ca5f98b506ae8c26e3e3d3159935f775809c'
when '0.8.3' then '6a088c90282c1aa45f727357631c377dd1370169d2baa79f317256caf3fd5230'
end
when 'solaris-amd64'
case resource.version
Expand All @@ -133,6 +137,8 @@ def self.binary_checksum(node, resource)
when '0.7.4' then '0300ffa4d1007b00bca37112cf934d3e281afdc300ce336735bbf3a33ebcfc19'
when '0.7.5' then 'aa3705a958d0403e2ddacaa75c1d3ede5f290b0ef3a60e6e24976f2d8f32d840'
when '0.8.1' then '67862913dae4dd968e7219aec2122d6e7a20dd42537e137c648d0a53f17c4c9e'
when '0.8.2' then '393f11abaa19c39b122049c3d8672d672c23ec6916a11234470aa5002c8cd4f7'
when '0.8.3' then '22a5b2eb89f6492a54e42fafee958f862baa6962d52d45974c77f62951b4ba0e'
end
when 'windows-amd64'
case resource.version
Expand All @@ -148,6 +154,8 @@ def self.binary_checksum(node, resource)
when '0.7.4' then 'c2e071ebae166d4cfdf894966b2966026cf9175d394001704f68bcbccaa8e446'
when '0.7.5' then '6cc64b1bb949f926d403e0436d02bf740844cf268076cf6d3d345361c1aa5293'
when '0.8.1' then 'ea5475b9421dc93383480c622936203eb1b457ff6c96a11e10d65f1aaa061bff'
when '0.8.2' then 'e3def6d26c26937a5c33327ff2884322aa12bdd29235335d877864e05a12fb52'
when '0.8.3' then '9fea45cbe7e55bb94b3d7fb4c8f0527ba36c79029eb1369ace0d45d9546d158a'
end
when 'windows-i386'
case resource.version
Expand All @@ -166,6 +174,8 @@ def self.binary_checksum(node, resource)
when '0.7.4' then 'ede957f736758a40fb8e3e33eb423a71226db46085fe1507d880a0ce393e9658'
when '0.7.5' then '7ea88aa53026cb14bab6a68d5b64c43515ea39552594ae399978fc13bcd74707'
when '0.8.1' then '175b63438846fbf800394d00cba1f966c16e967c3ebbf99cf8f3df8fa14ca84f'
when '0.8.2' then '98d840c42e255e1d6011e601bcb1a86b0133e381ce836b4d97e92d9d3c882c8b'
when '0.8.3' then 'c9a6f92b34eab0ceec854830af4c906339737c0df0f4875c03da9ac7031fe56e'
end
when 'linux-amd64'
case resource.version
Expand All @@ -184,6 +194,8 @@ def self.binary_checksum(node, resource)
when '0.7.4' then '23a61773bee9b29198cc1f8fe2e62c320f82f95006ff70840c15c1e58eead73b'
when '0.7.5' then '40ce7175535551882ecdff21fdd276cef6eaab96be8a8260e0599fadb6f1f5b8'
when '0.8.1' then '74cdd7ad458aa63192222ad2bd14178fc3596d4fd64d12a80520d4e6f93eaf34'
when '0.8.2' then '6409336d15baea0b9f60abfcf7c28f7db264ba83499aa8e7f608fb0e273514d9'
when '0.8.3' then 'f894383eee730fcb2c5936748cc019d83b220321efd0e790dae9a3266f5d443a'
end
when 'linux-i386'
case resource.version
Expand All @@ -202,6 +214,8 @@ def self.binary_checksum(node, resource)
when '0.7.4' then '7fe40af0825b2c6ab6c7e4e3e7d68471cccbd54f9a1513ad622b832cfda5fa07'
when '0.7.5' then '8abf0189776ecc5c8746e12021b6cfe6d96e0b4689ce4a4948b7e3faa07f3025'
when '0.8.1' then '76b4a6a39a3299ceb9228bc5e37a6b8a968dc2635a9d72030a047ccff0388886'
when '0.8.2' then 'f60237e24e4f03d8f7fd8a4e31cb246c701c41beb7cb7d1735320a5aa0b331c8'
when '0.8.3' then 'f4c6cdf82de7aacbac1590d46f755ddb4861894cc78753a9b29ef351abaa748c'
end
when 'linux-arm'
case resource.version
Expand All @@ -217,6 +231,8 @@ def self.binary_checksum(node, resource)
when '0.7.4' then 'bfd9cbef9c7c9f2128704940323d1727d8edbbd595c8d82aba923e04f04b266d'
when '0.7.5' then 'df4bc38eff4305632d29c5650fbb7e7ff97b8ef12a964fd8ee5f691849c51711'
when '0.8.1' then '552aa077ffbe6a52bf38d8feca5803a813a7a3986e4cb6efda61dad4480642c1'
when '0.8.2' then '02b63410a8c46bab0713615c126eb1530945ebfac3340bcb748d12cb1ab6db8c'
when '0.8.3' then 'a650c9a973fb34c23328f717a6bd5fe6bc22ac3b9e15013649c720d87dce90d4'
end
end
end
Expand Down
3 changes: 0 additions & 3 deletions templates/default/upstart.service.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,3 @@ pre-stop script
fi
end script
<%- end -%>
post-start script
while ! <%= @options[:executable] %> info ; do sleep 1; done
end script
4 changes: 2 additions & 2 deletions test/integration/client/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
it { should be_running }
end

[8400, 8500, 8600].each do |p|
[8500, 8600].each do |p|
describe port(p) do
it { should be_listening }
end
end

describe command("#{consul_executable} members -detailed") do
describe command("#{consul_executable} members -detailed -token=doublesecret") do
its(:exit_status) { should eq 0 }
its(:stdout) { should include 'alive' }
its(:stdout) { should include 'role=node' }
Expand Down
4 changes: 2 additions & 2 deletions test/integration/default/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
it { should be_running }
end

[8300, 8400, 8500, 8600].each do |p|
[8300, 8500, 8600].each do |p|
describe port(p) do
it { should be_listening }
end
end

describe command("#{consul_executable} members -detailed") do
describe command("#{consul_executable} members -detailed -token=doublesecret") do
its(:exit_status) { should eq 0 }
its(:stdout) { should include 'alive' }
its(:stdout) { should include 'role=consul' }
Expand Down
2 changes: 1 addition & 1 deletion test/integration/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
def consul_version
'0.7.5'
'0.8.3'
end
4 changes: 2 additions & 2 deletions test/spec/libraries/consul_service_windows_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
allow(shellout).to receive(:stderr)
allow(shellout).to receive(:run_command)
allow(shellout).to receive(:exitstatus)
allow(shellout).to receive(:stdout).and_return("Consul v0.7.5\nConsul Protocol: 3 (Understands back to: 1)\n")
allow(shellout).to receive(:stdout).and_return("Consul v0.8.3\nConsul Protocol: 3 (Understands back to: 1)\n")

# Stub admin_user method since we are testing a Windows host via Linux
# Fixed in https://github.com/poise/poise/commit/2f42850c82e295af279d060155bcd5c7ebb31d6a but not released yet
Expand All @@ -35,7 +35,7 @@

it do
expect(chef_run).to install_nssm('consul').with(
program: 'C:\Program Files\consul\0.7.5\consul.exe',
program: 'C:\Program Files\consul\0.8.3\consul.exe',
args: 'agent -config-file="""C:\Program Files\consul\consul.json""" -config-dir="""C:\Program Files\consul\conf.d"""'
)
end
Expand Down

0 comments on commit 2b528fa

Please sign in to comment.