forked from uwej711/cookbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
154 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Description | ||
=========== | ||
|
||
Installs and configures Apache Ant & Ivy | ||
|
||
Requirements | ||
============ | ||
|
||
Platform: | ||
|
||
* Debian, Ubuntu, CentOS, Red Hat, Fedora | ||
|
||
The following Opscode cookbooks are dependencies: | ||
|
||
* java | ||
* jpackage | ||
|
||
Attributes | ||
========== | ||
|
||
Usage | ||
===== | ||
|
||
Simply include the recipe where you want Apache Ant & Ivy installed. | ||
|
||
TODO | ||
==== | ||
|
||
* plugin support | ||
* global config template - /etc/ant/ant.conf | ||
|
||
License and Author | ||
================== | ||
|
||
Author:: Seth Chisamore (<[email protected]>) | ||
|
||
Copyright 2010, 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. | ||
|
||
|
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,50 @@ | ||
{ | ||
"providing": { | ||
}, | ||
"maintainer": "Opscode, Inc.", | ||
"replacing": { | ||
}, | ||
"description": "Installs/Configures ant", | ||
"maintainer_email": "[email protected]", | ||
"groupings": { | ||
}, | ||
"attributes": { | ||
}, | ||
"recommendations": { | ||
}, | ||
"dependencies": { | ||
"java": [ | ||
|
||
], | ||
"jpackage": [ | ||
|
||
] | ||
}, | ||
"suggestions": { | ||
}, | ||
"long_description": "Description\n===========\n\nInstalls and configures Apache Ant & Ivy\n\nRequirements\n============\n\nPlatform: \n\n* Debian, Ubuntu, CentOS, Red Hat, Fedora\n\nThe following Opscode cookbooks are dependencies:\n\n* java\n* jpackage\n\nAttributes\n==========\n\nUsage\n=====\n\nSimply include the recipe where you want Apache Ant & Ivy installed.\n\nTODO\n====\n\n* plugin support\n* global config template - /etc/ant/ant.conf\n\nLicense and Author\n==================\n\nAuthor:: Seth Chisamore (<[email protected]>)\n\nCopyright 2010, Opscode, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\n", | ||
"platforms": { | ||
"debian": [ | ||
|
||
], | ||
"fedora": [ | ||
|
||
], | ||
"centos": [ | ||
|
||
], | ||
"ubuntu": [ | ||
|
||
], | ||
"redhat": [ | ||
|
||
] | ||
}, | ||
"name": "ant", | ||
"version": "0.0.1", | ||
"conflicting": { | ||
}, | ||
"license": "Apache 2.0", | ||
"recipes": { | ||
} | ||
} |
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,12 @@ | ||
maintainer "Opscode, Inc." | ||
maintainer_email "[email protected]" | ||
license "Apache 2.0" | ||
description "Installs/Configures ant" | ||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
version "0.0.1" | ||
%w{ java jpackage }.each do |cb| | ||
depends cb | ||
end | ||
%w{ debian ubuntu centos redhat fedora }.each do |os| | ||
supports os | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# Cookbook Name:: ant | ||
# Recipe:: default | ||
# | ||
# Copyright 2010, 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 "java" | ||
|
||
case node.platform | ||
when "centos","redhat","fedora" | ||
include_recipe "jpackage" | ||
end | ||
|
||
ant_pkgs = value_for_platform( | ||
["debian","ubuntu",] => { | ||
"default" => ["ant1.8","ant-contrib","ivy"] | ||
}, | ||
["centos","redhat","fedora" ] => { | ||
"default" => ["ant","ant-contrib","ivy"] | ||
}, | ||
"default" => ["ant1.8","ant-contrib","ivy"] | ||
) | ||
|
||
ant_pkgs.each do |pkg| | ||
package pkg do | ||
action :install | ||
end | ||
end |