Permalink
Browse files

bump dashboard, facter and add console_auth to version checks

  • Loading branch information...
1 parent 676e588 commit e586fce14015a0130ac29eb338c29d047ac48747 @justinstoller justinstoller committed Mar 26, 2012
Showing with 19 additions and 13 deletions.
  1. +3 −2 ci/pe/pe_version
  2. +16 −11 setup/pe/04_PE-version_checks.rb
View
@@ -1,10 +1,11 @@
VERSION:
rack_ver: 1.1.3
gem_ver: 1.3.7
- facter_ver: 1.6.6
+ facter_ver: 1.6.7
puppet_ver: 2.7.12
puppet_module_ver: 0.3.4
activerecord_ver: 2.3.14
activesupport_ver: 2.3.14
ruby_augeas_ver: 4.1
- dashboard_ver: 1.2.6
+ dashboard_ver: 1.2.7
+ console_auth_ver: 1.0.5
@@ -82,19 +82,24 @@
end
-hosts.each do |host|
- next unless host['roles'].include?('dashboard')
- cmd = ''
+[
+ ['pe-puppet-dashboard', 'dashboard_ver'],
+ ['pe-console-auth', 'console_auth_ver']
+].each do |pkg|
+ hosts.each do |host|
+ next unless host['roles'].include?('dashboard')
+ cmd = ''
- if host['platform'] =~ /debian|ubuntu/
- cmd = "dpkg -l"
- else
- cmd = "rpm -q"
- end
+ if host['platform'] =~ /debian|ubuntu/
+ cmd = "dpkg -l"
+ else
+ cmd = "rpm -q"
+ end
- on host, "#{cmd} pe-puppet-dashboard" do
- assert_match(/#{version['VERSION']['dashboard_ver']}/, stdout,
- "Incorrect version of dashboard on #{host}")
+ on host, "#{cmd} #{pkg[0]}" do
+ assert_match(/#{version['VERSION'][pkg[1]]}/, stdout,
+ "Incorrect version of #{pkg[0]} on #{host}")
+ end
end
end

0 comments on commit e586fce

Please sign in to comment.