Greetings!

Please review the pull request #32: check rack version opened by (justinstoller)

Some more information about the pull request:

  • Opened: Mon Oct 03 22:48:01 UTC 2011
  • Based on: puppetlabs:master (b4f5c2fd7c1e168d942d9d3bea5c312cb2c6ffde)
  • Requested merge: justinstoller:master (85688086ed10b7f71e16ec54a070856671a76dfe)

Description:

Thanks!
The Pull Request Bot

Diff follows:

diff --git a/ci/pe/pe_version b/ci/pe/pe_version
index d53585b..64b7852 100644
--- a/ci/pe/pe_version
+++ b/ci/pe/pe_version
@@ -1,4 +1,5 @@
 VERSION:
+  rack_ver: 1.1.0
   gem_ver: 1.3.7
   facter_ver: 1.6.0
   puppet_ver: 2.7.3
diff --git a/setup/pe/03_PE-version_checks.rb b/setup/pe/03_PE-version_checks.rb
index 92204d2..de0edf1 100755
--- a/setup/pe/03_PE-version_checks.rb
+++ b/setup/pe/03_PE-version_checks.rb
@@ -35,3 +35,18 @@ hosts.each do |host|
     assert_match(/#{version['VERSION']['puppet_ver']}/, stdout, "Incorrect Puppet version detected on #{host}")
   end
 end
+
+step "Check Rack version"
+hosts.each do |host|
+  next if host['role'].include? 'agent'
+
+  if host['platform'] =~ /debian|ubuntu/
+    on(host, 'dpkg -l rack') do
+      assert_match(/#{version['VERSION']['rack_ver']}/, stdout, "Incorrect Rack version detected on #{host}")
+    end
+  else
+    on(host, 'rpm -q rack') do
+      assert_match(/#{version['VERSION']['rack_ver']}/, stdout, "Incorrect Rack version detected on #{host}")
+    end
+  end
+end

    

--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to puppet-dev@googlegroups.com.
To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to