Permalink
Browse files

add test cookbook

  • Loading branch information...
jtimberman committed Feb 14, 2013
1 parent 20ddc21 commit 7d94b43180f531338fa1d95f88711ae06122ae41
@@ -0,0 +1 @@
+This cookbook is used with test-kitchen to test the parent, passenger_apache2 cookbok
@@ -0,0 +1,6 @@
+name "passenger_apache2"
+maintainer "Opscode, Inc."
+maintainer_email "cookbooks@opscode.com"
+license "Apache 2.0"
+description "This cookbook is used with test-kitchen to test the parent, passenger_apache2 cookbok"
+version "1.0.0"
@@ -0,0 +1,20 @@
+#
+# Cookbook Name:: passenger_apache2_test
+# Recipe:: default
+#
+# Copyright 2013, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+include_recipe "passenger_apache2::default"
@@ -0,0 +1,30 @@
+#
+# Cookbook Name:: passenger_apache2_test
+# Recipe:: package
+#
+# Copyright 2013, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+node.set['passenger']['install_method'] = 'package'
+node.set['passenger']['package'].delete('version')
+
+node.set['passenger']['package']['name'] = case node['platform_family']
+ when 'debian'
+ 'libapache2-mod-passenger'
+ when 'rhel'
+ 'mod_passenger'
+ end
+
+include_recipe "passenger_apache2::default"

0 comments on commit 7d94b43

Please sign in to comment.