Permalink
Browse files

Copy of opscode cookbooks

  • Loading branch information...
1 parent 35df416 commit 7b947b6cbd3511f2f0f381487bf774fc4a5ebc00 @revans committed Feb 11, 2011
Showing 1,108 changed files with 27,746 additions and 25,714 deletions.
View
BIN .DS_Store
Binary file not shown.
View
@@ -0,0 +1,18 @@
+Chef Project home pages:
+
+* Wiki: http://wiki.opscode.com/display/chef
+* Product page: http://www.opscode.com/chef
+
+Opscode Cookbook Source code repository:
+
+* http://github.com/opscode/cookbooks
+
+Opscode Open Source Ticket Tracking System:
+
+* http://tickets.opscode.com
+
+Cookbooks (this repository) use the COOK project.
+
+How to contribute to Chef:
+
+* http://wiki.opscode.com/display/chef/How+to+Contribute
View
15 NOTICE
@@ -9,7 +9,20 @@ Contributors and Copyright holders:
* Copyright 2008-2009, Opscode <legal@opscode.com>
* Copyright 2008-2009, Adam Jacob <adam@opscode.com>
* Copyright 2008-2009, Joshua Timberman <joshua@opscode.com>
+ * Copyright 2009-2010, Barry Steinglass <barry@opscode.com>
* Copyright 2009, Joe Williams <joe@joetify.com>
* Copyright 2009, Joshua Sierles <joshua@37signals.com>
* Copyright 2009, Matthew Kent <mkent@magoazul.com>
-
+ * Copyright 2010, Benjamin Black <b@b3k.us>
+ * Copyright 2009, Peter Crossley <peterc@xley.com>
+ * Copyright 2010, Basho Technologies, Inc.
+ * Copyright 2009, 37signals
+ * Copyright 2010, FindsYou Limited
+ * Copyright 2009, Daniel DeLeo
+ * Copyright 2009, Scott M. Likens
+ * Copyright 2009, David Abdemoulaie
+ * Copyright 2009, AJ Christensen
+ * Copyright 2009, Sean Cribbs
+ * Copyright 2009, Michael Hale
+ * Copyright 2009, Edmund Haselwanter
+
View
26 README
@@ -0,0 +1,26 @@
+Opscode Public Cookbooks for Chef
+
+This repository is Opscode's published, public cookbooks for Chef. This repository is considered "in development." Released versions of our cookbooks are posted on the Opscode Cookbook Community Site.
+
+For information on how to contribute, see CONTRIBUTING.
+
+Opscode cookbooks are distributed under the Apache 2 Software License. See LICENSE.
+
+= LINKS:
+
+Source:
+
+* http://github.com/opscode/cookbooks
+
+Tickets/Issues (COOK project):
+
+* http://tickets.opscode.com/
+
+Chef Documentation:
+
+* http://wiki.opscode.com/display/chef/Home/
+* http://help.opscode.com
+
+Opscode Cookbook Community Site:
+
+* http://cookbooks.opscode.com/
View
@@ -1,6 +1,7 @@
require 'rubygems'
require 'chef'
require 'json'
+TOPDIR = File.expand_path(File.join(File.dirname(__FILE__), ".."))
TOPDIR = File.expand_path(File.join(File.dirname(__FILE__), ".."))
@@ -17,5 +17,5 @@
# limitations under the License.
#
-set_unless[:activemq][:mirror] = "http://mirrors.ibiblio.org/pub/mirrors"
-set_unless[:activemq][:version] = "5.3.0"
+default[:activemq][:mirror] = "http://mirrors.ibiblio.org/pub/mirrors"
+default[:activemq][:version] = "5.3.2"
View
@@ -1,51 +1,42 @@
{
- "dependencies": {
- "java": [
-
- ],
- "runit": [
-
- ]
- },
- "maintainer_email": "cookbooks@opscode.com",
- "conflicting": {
-
- },
- "description": "Installs activemq and sets it up as a runit service",
- "recipes": {
- "activemq": ""
- },
- "providing": {
- "activemq": [
-
- ]
- },
- "platforms": {
- "ubuntu": [
-
- ],
- "debian": [
-
- ]
- },
- "version": "0.2.0",
- "name": "activemq",
- "replacing": {
-
- },
- "groupings": {
-
- },
- "long_description": "= DESCRIPTION:\n\nInstalls activemq and sets up a runit service.\n\n= REQUIREMENTS:\n\nTested on Ubuntu 9.04.\n\nOpscode cookbooks:\n\n* java\n* runit\n\n= ATTRIBUTES:\n\n* activemq[:mirror] - download URL up to the apache/activemq/apache-activemq directory.\n* activemq[:version] - version to install.\n\n= USAGE:\n\nInclude the default recipe on systems where you want to run activemq. At this time the cookbook doesn't use any custom configuration for activemq.\n\n= LICENSE AND AUTHOR:\n\nAuthor:: Joshua Timberman (<joshua@opscode.com>)\n\nCopyright:: 2009, 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",
- "attributes": {
-
- },
- "recommendations": {
-
- },
- "license": "Apache 2.0",
- "maintainer": "Opscode, Inc.",
- "suggestions": {
-
+ "providing": {
+ },
+ "attributes": {
+ },
+ "replacing": {
+ },
+ "dependencies": {
+ "runit": [
+
+ ],
+ "java": [
+
+ ]
+ },
+ "groupings": {
+ },
+ "recommendations": {
+ },
+ "platforms": {
+ "debian": [
+
+ ],
+ "ubuntu": [
+
+ ]
+ },
+ "license": "Apache 2.0",
+ "version": "0.3.3",
+ "maintainer": "Opscode, Inc.",
+ "suggestions": {
+ },
+ "recipes": {
+ "activemq": "Installs ActiveMQ from source and sets it up as a runit service"
+ },
+ "maintainer_email": "cookbooks@opscode.com",
+ "name": "activemq",
+ "conflicting": {
+ },
+ "description": "Installs activemq and sets it up as a runit service",
+ "long_description": "= DESCRIPTION:\n\nInstalls activemq and sets up a runit service.\n\n= REQUIREMENTS:\n\nTested on Ubuntu 9.04.\n\nOpscode cookbooks:\n\n* java\n* runit\n\n= ATTRIBUTES:\n\n* activemq[:mirror] - download URL up to the apache/activemq/apache-activemq directory.\n* activemq[:version] - version to install.\n\n= USAGE:\n\nInclude the default recipe on systems where you want to run activemq. At this time the cookbook doesn't use any custom configuration for activemq.\n\n= LICENSE AND AUTHOR:\n\nAuthor:: Joshua Timberman (<joshua@opscode.com>)\n\nCopyright:: 2009, 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"
}
-}
View
@@ -3,7 +3,9 @@
license "Apache 2.0"
description "Installs activemq and sets it up as a runit service"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
-version "0.2"
+version "0.3.3"
+
+recipe "activemq", "Installs ActiveMQ from source and sets it up as a runit service"
%w{ubuntu debian}.each do |os|
supports os
@@ -18,11 +18,12 @@
#
include_recipe "java"
+include_recipe "runit"
version = node[:activemq][:version]
mirror = node[:activemq][:mirror]
-unless File.exists?("/opt/apache-activemq-#{version}/bin/activemq")
+unless ::File.exists?("/opt/apache-activemq-#{version}/bin/activemq")
remote_file "/tmp/apache-activemq-#{version}-bin.tar.gz" do
source "#{mirror}/apache/activemq/apache-activemq/#{version}/apache-activemq-#{version}-bin.tar.gz"
mode "0644"
@@ -1,3 +1,3 @@
#!/bin/sh
exec 2>&1
-exec /opt/apache-activemq-<%= @node[:activemq][:version] %>/bin/activemq
+exec /opt/apache-activemq-<%= node[:activemq][:version] %>/bin/activemq
View
@@ -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 (<schisamo@opscode.com>)
+
+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.
+
+
View
@@ -0,0 +1,51 @@
+{
+ "name": "ant",
+ "description": "Installs/Configures ant",
+ "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 (<schisamo@opscode.com>)\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",
+ "maintainer": "Opscode, Inc.",
+ "maintainer_email": "cookbooks@opscode.com",
+ "license": "Apache 2.0",
+ "platforms": {
+ "debian": [
+
+ ],
+ "ubuntu": [
+
+ ],
+ "centos": [
+
+ ],
+ "redhat": [
+
+ ],
+ "fedora": [
+
+ ]
+ },
+ "dependencies": {
+ "java": [
+
+ ],
+ "jpackage": [
+
+ ]
+ },
+ "recommendations": {
+ },
+ "suggestions": {
+ },
+ "conflicting": {
+ },
+ "providing": {
+ },
+ "replacing": {
+ },
+ "attributes": {
+ },
+ "groupings": {
+ },
+ "recipes": {
+ "ant::default": "Installs and configures Ant"
+ },
+ "version": "0.10.1"
+}
View
@@ -0,0 +1,14 @@
+maintainer "Opscode, Inc."
+maintainer_email "cookbooks@opscode.com"
+license "Apache 2.0"
+description "Installs/Configures ant"
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version "0.10.1"
+%w{ java jpackage }.each do |cb|
+ depends cb
+end
+%w{ debian ubuntu centos redhat fedora }.each do |os|
+ supports os
+end
+
+recipe "ant::default", "Installs and configures Ant"
View
@@ -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" => ["ant","ant-contrib","ivy"]
+ },
+ ["centos","redhat","fedora" ] => {
+ "default" => ["ant","ant-contrib","ivy"]
+ },
+ "default" => ["ant","ant-contrib","ivy"]
+)
+
+ant_pkgs.each do |pkg|
+ package pkg do
+ action :install
+ end
+end
Oops, something went wrong.

0 comments on commit 7b947b6

Please sign in to comment.