Skip to content

Commit

Permalink
add test cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Feb 14, 2013
1 parent 20ddc21 commit 7d94b43
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions 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
6 changes: 6 additions & 0 deletions 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"
20 changes: 20 additions & 0 deletions 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"
30 changes: 30 additions & 0 deletions 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"

0 comments on commit 7d94b43

Please sign in to comment.