Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add test cookbook

  • Loading branch information...
commit 7d94b43180f531338fa1d95f88711ae06122ae41 1 parent 20ddc21
@jtimberman jtimberman authored
View
1  test/kitchen/cookbooks/passenger_apache2_test/README.md
@@ -0,0 +1 @@
+This cookbook is used with test-kitchen to test the parent, passenger_apache2 cookbok
View
6 test/kitchen/cookbooks/passenger_apache2_test/metadata.rb
@@ -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"
View
20 test/kitchen/cookbooks/passenger_apache2_test/recipes/default.rb
@@ -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"
View
30 test/kitchen/cookbooks/passenger_apache2_test/recipes/package.rb
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.