-
-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Java cookbook might be overkill for most users, and it is not even a requirement for the package installer. Removing this dependency removes the tight coupling between Jenkins and Java and allows users to easily install and manage their own Java, outside of this cookbook.
- Loading branch information
Showing
5 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# | ||
# Cookbook Name:: jenkins | ||
# Recipe:: java | ||
# | ||
# Author: Seth Vargo <sethvargo@getchef.com> | ||
# | ||
# Copyright 2014, Chef Software, 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. | ||
# | ||
# This is a very basic recipe for installing Java on the target system. It is | ||
# NOT included in any recipes by default. The purpose of this cookbook is to | ||
# install Jenkins, not manage a Java. For complex Java scenarios, you should | ||
# use the Java community cookbook or construct your own. | ||
# | ||
# Do NOT submit patches adding support for additional platforms | ||
# Do NOT submit patches adding support for installing Java derivatives | ||
# Do NOT submit patches adding support for installing different Java versions | ||
# | ||
# This recipe is not included by default, and you have no obligation to use it. | ||
# We are going to be incredibly opinionated about what this recipe includes, as | ||
# it is a minimum viable cookbook for installing Java. If you need a more | ||
# complex scenario, that is outside the scope of this cookbook. | ||
# | ||
|
||
case node['platform_family'] | ||
when 'debian' | ||
package 'openjdk-7-jdk' | ||
when 'rhel' | ||
package 'java-1.7.0-openjdk' | ||
else | ||
fail "`#{node['platform_family']}' is not supported!" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters