Skip to content

Commit

Permalink
Merge pull request elijah#32 from rayrod2030/adding-packages-for-centos
Browse files Browse the repository at this point in the history
Adding packages for centos
  • Loading branch information
Ray Rodriguez committed Mar 25, 2015
2 parents 50a6882 + d391125 commit ba7654f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ suites:
- name: init
run_list:
- recipe[prometheus::default]
provisioner:
name: chef_zero
require_chef_omnibus: 11.12.4
attributes:
prometheus:
init_style: 'init'
Expand Down
4 changes: 4 additions & 0 deletions recipes/binary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

include_recipe 'ark::default'

%w( curl tar bzip2 ).each do |pkg|
package pkg
end

dir_name = ::File.basename(node['prometheus']['dir'])
dir_path = ::File.dirname(node['prometheus']['dir'])

Expand Down
2 changes: 1 addition & 1 deletion test/integration/bluepill-binary/serverspec/binary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
end

describe 'prometheus should be exposing metrics' do
describe command("wget 'http://localhost:9090/metrics' -q -O -") do
describe command("curl 'http://localhost:9090/metrics'") do
its(:stdout) { should match(/prometheus_notifications_queue_capacity 100/) }
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/integration/default-binary/serverspec/binary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
end

describe 'prometheus should be exposing metrics' do
describe command("wget 'http://localhost:9090/metrics' -q -O -") do
describe command("curl 'http://localhost:9090/metrics'") do
its(:stdout) { should match(/prometheus_notifications_queue_capacity 100/) }
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/integration/init-binary/serverspec/binary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
end

describe 'prometheus should be exposing metrics' do
describe command("wget 'http://localhost:9090/metrics' -q -O -") do
describe command("curl 'http://localhost:9090/metrics'") do
its(:stdout) { should match(/prometheus_notifications_queue_capacity 100/) }
end
end
Expand Down

0 comments on commit ba7654f

Please sign in to comment.