Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

First pass at removing unsupported/unsupportable

Cookbooks removed in this branch are either deprecated due to
various reasons (projects no longer active or functionality has
been replaced), or because Opscode lacks the capacity to
sufficiently support and maintain them. The cookbooks will still
be available for download from the Community site or from previous
commits in this repository.
  • Loading branch information...
commit 132c68d6e5daa24d9f717f81e2915547153f6876 1 parent 4d7698e
@jtimberman jtimberman authored
Showing with 226 additions and 9,334 deletions.
  1. +0 −53 capistrano/README.md
  2. +0 −46 capistrano/definitions/cap_setup.rb
  3. +0 −51 capistrano/metadata.json
  4. +0 −9 capistrano/metadata.rb
  5. +0 −20 capistrano/recipes/default.rb
  6. +0 −44 django/README.rdoc
  7. +0 −21 django/attributes/default.rb
  8. +0 −42 django/metadata.json
  9. +0 −16 django/metadata.rb
  10. +0 −25 django/recipes/default.rb
  11. +0 −52 dynomite/README.rdoc
  12. +0 −31 dynomite/attributes/default.rb
  13. +0 −45 dynomite/metadata.json
  14. +0 −13 dynomite/metadata.rb
  15. +0 −58 dynomite/recipes/default.rb
  16. +0 −2  dynomite/templates/default/sv-dynomite-log-run.erb
  17. +0 −9 dynomite/templates/default/sv-dynomite-run.erb
  18. +0 −28 ec2/attributes/ec2_recipe_options.rb
  19. +0 −49 ec2/metadata.json
  20. +0 −15 ec2/metadata.rb
  21. +0 −19 ec2/recipes/default.rb
  22. +79 −82 gems/metadata.json
  23. +1 −2  gems/metadata.rb
  24. +0 −8 glassfish/README.rdoc
  25. +0 −82 glassfish/attributes/default.rb
  26. +0 −42 glassfish/metadata.json
  27. +0 −11 glassfish/metadata.rb
  28. +0 −73 glassfish/recipes/default.rb
  29. +0 −27 glassfish/templates/default/answer_file.erb
  30. +0 −44 glassfish/templates/default/glassfish-init.d-script.erb
  31. +35 −38 god/metadata.json
  32. +2 −4 god/metadata.rb
  33. +0 −1  god/recipes/default.rb
  34. +0 −33 instiki/README.rdoc
  35. +0 −44 instiki/databag.json
  36. +0 −42 instiki/metadata.json
  37. +0 −11 instiki/metadata.rb
  38. +0 −50 instiki/recipes/default.rb
  39. +0 −20 instiki/templates/default/instiki.conf.erb
  40. +0 −33 java_sun/README.md
  41. +0 −39 java_sun/metadata.json
  42. +0 −14 java_sun/metadata.rb
  43. +0 −24 java_sun/recipes/default.rb
  44. +0 −30 nanite/metadata.json
  45. +0 −7 nanite/metadata.rb
  46. +0 −49 nanite/recipes/chef.rb
  47. +0 −71 one-shot/README.md
  48. +0 −22 one-shot/attributes/default.rb
  49. +0 −31 one-shot/metadata.json
  50. +0 −7 one-shot/metadata.rb
  51. +0 −31 one-shot/recipes/default.rb
  52. +0 −21 one-shot/recipes/one-shot.rb
  53. +0 −21 one-shot/recipes/two-shot.rb
  54. +0 −7 one-shot/roles/one-shot.rb
  55. +0 −3  packages/attributes/default.rb
  56. +0 −9 packages/libraries/packages.rb
  57. +0 −63 packages/metadata.json
  58. +0 −22 packages/metadata.rb
  59. 0  packages/recipes/default.rb
  60. +48 −96 passenger_apache2/metadata.json
  61. +2 −17 passenger_apache2/metadata.rb
  62. +1 −9 passenger_apache2/recipes/default.rb
  63. +6 −17 passenger_apache2/recipes/mod_rails.rb
  64. +0 −8 passenger_enterprise/README.rdoc
  65. +0 −28 passenger_enterprise/attributes/default.rb
  66. +0 −44 passenger_enterprise/metadata.json
  67. +0 −16 passenger_enterprise/metadata.rb
  68. +0 −54 passenger_enterprise/recipes/apache2.rb
  69. +0 −30 passenger_enterprise/recipes/default.rb
  70. +0 −50 passenger_enterprise/recipes/nginx.rb
  71. +0 −2  passenger_enterprise/templates/default/passenger.conf.erb
  72. +0 −1  passenger_enterprise/templates/default/passenger.load.erb
  73. +0 −2  passenger_enterprise/templates/default/passenger_nginx.conf.erb
  74. +0 −1  quick_start/attributes/default.rb
  75. +0 −71 quick_start/metadata.json
  76. +0 −21 quick_start/metadata.rb
  77. +0 −24 quick_start/recipes/default.rb
  78. +0 −1  quick_start/templates/default/deep_thought.txt.erb
  79. +1 −1  rabbitmq/metadata.rb
  80. +2 −2 rabbitmq_chef/recipes/default.rb → rabbitmq/recipes/chef.rb
  81. +0 −31 rabbitmq_chef/README.rdoc
  82. +0 −48 rabbitmq_chef/metadata.json
  83. +0 −13 rabbitmq_chef/metadata.rb
  84. +0 −54 rails/README.rdoc
  85. +0 −3  rails/attributes/default.rb
  86. +0 −106 rails/metadata.json
  87. +0 −37 rails/metadata.rb
  88. +0 −31 rails/recipes/default.rb
  89. +0 −30 rails/templates/default/rails_app.conf.erb
  90. +0 −29 rails_enterprise/README.rdoc
  91. +0 −3  rails_enterprise/attributes/default.rb
  92. +0 −91 rails_enterprise/metadata.json
  93. +0 −34 rails_enterprise/metadata.rb
  94. +0 −34 rails_enterprise/recipes/default.rb
  95. +0 −58 redmine/README.rdoc
  96. +0 −36 redmine/attributes/default.rb
  97. +0 −51 redmine/metadata.json
  98. +0 −15 redmine/metadata.rb
  99. +0 −74 redmine/recipes/default.rb
  100. +0 −22 redmine/templates/default/database.yml.erb
  101. +0 −2  redmine/templates/default/port_redmine.erb
  102. +0 −19 redmine/templates/default/redmine.conf.erb
  103. +0 −142 redmine/templates/default/settings.yml.erb
  104. +0 −2  redmine/templates/default/sv-redmine-log-run.erb
  105. +0 −3  redmine/templates/default/sv-redmine-run.erb
  106. +0 −60 ruby/README.rdoc
  107. +0 −78 ruby/definitions/ruby_packages.rb
  108. +0 −42 ruby/definitions/ruby_symlinks.rb
  109. +0 −72 ruby/metadata.json
  110. +0 −23 ruby/metadata.rb
  111. +0 −20 ruby/recipes/1.8.rb
  112. +0 −20 ruby/recipes/1.9.1.rb
  113. +0 −20 ruby/recipes/1.9.rb
  114. +0 −20 ruby/recipes/default.rb
  115. +0 −20 ruby/recipes/symlinks.rb
  116. +0 −53 ruby_enterprise/README.rdoc
  117. +0 −30 ruby_enterprise/attributes/default.rb
  118. +0 −28 ruby_enterprise/definitions/ree_gem.rb
  119. +0 −45 ruby_enterprise/metadata.json
  120. +0 −13 ruby_enterprise/metadata.rb
  121. +0 −53 ruby_enterprise/recipes/default.rb
  122. +0 −30 rubygems/metadata.json
  123. +0 −9 rubygems/metadata.rb
  124. +0 −23 rubygems/recipes/default.rb
  125. +0 −32 rush/README.rdoc
  126. +0 −29 rush/metadata.json
  127. +0 −6 rush/metadata.rb
  128. +0 −20 rush/recipes/default.rb
  129. +0 −57 solr/README.rdoc
  130. +0 −23 solr/attributes/default.rb
  131. +0 −65 solr/definitions/solr_instance.rb
  132. 0  solr/files/default/authorized_keys
  133. 0  solr/files/default/id_rsa
  134. 0  solr/files/default/id_rsa.pub
  135. +0 −104 solr/metadata.json
  136. +0 −38 solr/metadata.rb
  137. +0 −36 solr/recipes/default.rb
  138. +0 −2  solr/templates/default/sv-solr-log-run.erb
  139. +0 −8 solr/templates/default/sv-solr-run.erb
  140. +40 −37 stompserver/metadata.json
  141. +4 −8 stompserver/metadata.rb
  142. +3 −12 stompserver/recipes/default.rb
  143. +0 −36 teamspeak/metadata.json
  144. +0 −8 teamspeak/metadata.rb
  145. +0 −73 teamspeak/recipes/default.rb
  146. +0 −94 teamspeak/templates/default/demo.php.erb
  147. +0 −4 teamspeak/templates/default/port_teamspeak.erb
  148. +0 −38 teamspeak/templates/default/server.ini.erb
  149. +0 −30 teamspeak/templates/default/teamspeak.conf.erb
  150. +0 −39 teamspeak3/README.md
  151. +0 −22 teamspeak3/attributes/default.rb
  152. +0 −32 teamspeak3/metadata.json
  153. +0 −8 teamspeak3/metadata.rb
  154. +0 −58 teamspeak3/recipes/default.rb
  155. +0 −2  teamspeak3/templates/default/sv-teamspeak3-log-run.erb
  156. +0 −5 teamspeak3/templates/default/sv-teamspeak3-run.erb
  157. +0 −38 tomcat6/README.rdoc
  158. +0 −62 tomcat6/attributes/default.rb
  159. +0 −2  tomcat6/definitions/tomcat_app.rb
  160. +0 −15 tomcat6/files/centos/rightscale.repo
  161. +0 −3,246 tomcat6/files/default/JVM-MANAGEMENT-MIB.mib
  162. +0 −90 tomcat6/files/default/dtomcat6
  163. +0 −73 tomcat6/files/default/logging.properties
  164. +0 −322 tomcat6/files/default/tomcat6
  165. +0 −58 tomcat6/libraries/tomcat.rb
  166. +0 −246 tomcat6/libraries/tomcat_manager.rb
  167. +0 −50 tomcat6/metadata.json
  168. +0 −17 tomcat6/metadata.rb
  169. +0 −207 tomcat6/recipes/default.rb
  170. +0 −21 tomcat6/templates/default/manager.xml.erb
  171. +0 −5 tomcat6/templates/default/tomcat-users.xml.erb
  172. +0 −55 tomcat6/templates/default/tomcat6.conf.erb
  173. +1 −7 unicorn/metadata.json
  174. +1 −3 unicorn/metadata.rb
  175. +0 −3  unicorn/recipes/default.rb
View
53 capistrano/README.md
@@ -1,53 +0,0 @@
-DESCRIPTION
-===========
-
-Installs capistrano RubyGem and provides a definition to set up directory structure to perform capistrano deployment.
-
-This cookbook is not necessary when using the Opscode application cookbook.
-
-RECIPES
-=======
-
-The default recipe merely installs the capistrano RubyGem.
-
-DEFINITIONS
-===========
-
-cap_setup
----------
-
-The `cap_setup` definition will create the deployment directory structure for deploying applications with capistrano. For example to use the definition:
-
- cap_setup "my_app" do
- path "/srv/my_app"
- owner "nobody"
- group "nogroup"
- appowner "nobody"
- end
-
-This will create the following directory structure:
-
- /srv/my_app
- /srv/my_app/releases
- /srv/my_app/shared
- /srv/my_app/shared/log
- /srv/my_app/shared/system
-
-LICENSE AND AUTHOR
-==================
-
-Author:: Joshua Timberman (<joshua@opscode.com>)
-
-Copyright 2009, 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
46 capistrano/definitions/cap_setup.rb
@@ -1,46 +0,0 @@
-#
-# Cookbook Name:: capistrano
-# Definition:: cap_setup
-#
-# Copyright 2009, 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.
-#
-
-define :cap_setup, :path => nil, :owner => "root", :group => "root", :appowner => "nobody" do
- include_recipe "capistrano"
-
- directory params[:path] do
- owner params[:owner]
- group params[:group]
- mode 0755
- end
-
- # after chef-174 fixed, change mode to 2775
- %w{ releases shared }.each do |dir|
- directory "#{params[:path]}/#{dir}" do
- owner params[:owner]
- group params[:group]
- mode 0775
- end
- end
-
- %w{ log system }.each do |dir|
- directory "#{params[:path]}/shared/#{dir}" do
- owner params[:appowner]
- group params[:group]
- mode 0775
- end
- end
-
-end
View
51 capistrano/metadata.json
@@ -1,51 +0,0 @@
-{
- "recommendations": {
- },
- "attributes": {
- },
- "maintainer": "Opscode, Inc.",
- "suggestions": {
- },
- "dependencies": {
- },
- "maintainer_email": "cookbooks@opscode.com",
- "conflicting": {
- },
- "platforms": {
- "openbsd": [
-
- ],
- "debian": [
-
- ],
- "fedora": [
-
- ],
- "centos": [
-
- ],
- "freebsd": [
-
- ],
- "ubuntu": [
-
- ],
- "redhat": [
-
- ]
- },
- "license": "Apache 2.0",
- "version": "0.7.1",
- "providing": {
- },
- "recipes": {
- "capistrano": "Installs Capistrano gem"
- },
- "replacing": {
- },
- "name": "capistrano",
- "description": "Installs Capistrano gem and provides a define to set up deployment for an application",
- "groupings": {
- },
- "long_description": ""
- }
View
9 capistrano/metadata.rb
@@ -1,9 +0,0 @@
-maintainer "Opscode, Inc."
-maintainer_email "cookbooks@opscode.com"
-license "Apache 2.0"
-description "Installs Capistrano gem and provides a define to set up deployment for an application"
-version "0.7.1"
-recipe "capistrano", "Installs Capistrano gem"
-%w{ ubuntu debian redhat centos fedora freebsd openbsd }.each do |os|
- supports os
-end
View
20 capistrano/recipes/default.rb
@@ -1,20 +0,0 @@
-#
-# Cookbook Name:: capistrano
-# Recipe:: default
-#
-# Copyright 2009, 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.
-#
-
-gem_package "capistrano"
View
44 django/README.rdoc
@@ -1,44 +0,0 @@
-= DESCRIPTION:
-
-Installs Python Django package and sets up Apache2 to serve a django application.
-
-= REQUIREMENTS:
-
-Opscode cookbooks, http://github.com/opscode/cookbooks/tree/master:
-
-* python
-* apache2
-
-= ATTRIBUTES:
-
-node[:django][:web_server] - set whether to use mod_python or mod_wsgi. Defaults to mod_wsgi because that is the recommended web server strategy to use by the Django creator.
-
-= USAGE:
-
-Create the django application using the Apache2 cookbook's web_app define. Normally this would be done in a site-cookbook.
-
- web_app "mysite" do
- docroot "/srv/mysite"
- template "mysite.conf.erb"
- end
-
-Create the template, 'mysite.conf.erb' within the site-cookbook. Make sure the django settings are correct. The web_app define copies the template over and enables it as an apache2 site.
-
-The Opscode "application" cookbook is going to grow the ability to deploy a Django application from a source repository. This cookbook will be used to get the Django and Apache software installed and ready.
-
-= LICENSE & AUTHOR:
-
-Author:: Joshua Timberman (<joshua@opscode.com>)
-Copyright:: 2009, 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
21 django/attributes/default.rb
@@ -1,21 +0,0 @@
-#
-# Cookbook Name:: django
-# Recipe:: default
-# Author:: Joshua Timberman (<joshua@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.
-#
-
-default[:django][:web_server] = "mod_wsgi"
View
42 django/metadata.json
@@ -1,42 +0,0 @@
-{
- "suggestions": {
- },
- "attributes": {
- },
- "maintainer_email": "cookbooks@opscode.com",
- "conflicting": {
- },
- "dependencies": {
- "python": [
-
- ],
- "apache2": [
-
- ]
- },
- "recipes": {
- "django": "Installs django and apache2 with mod_python"
- },
- "providing": {
- },
- "platforms": {
- "debian": [
-
- ],
- "ubuntu": [
-
- ]
- },
- "license": "Apache 2.0",
- "version": "0.8.0",
- "replacing": {
- },
- "groupings": {
- },
- "name": "django",
- "recommendations": {
- },
- "description": "Installs DJango",
- "maintainer": "Opscode, Inc.",
- "long_description": "= DESCRIPTION:\n\nInstalls Python Django package and sets up Apache2 to serve a django application.\n\n= REQUIREMENTS:\n\nOpscode cookbooks, http://github.com/opscode/cookbooks/tree/master:\n\n* python\n* apache2\n\n= ATTRIBUTES:\n\nnode[:django][:web_server] - set whether to use mod_python or mod_wsgi. Defaults to mod_wsgi because that is the recommended web server strategy to use by the Django creator.\n\n= USAGE:\n\nCreate the django application using the Apache2 cookbook's web_app define. Normally this would be done in a site-cookbook.\n\n web_app \"mysite\" do\n docroot \"/srv/mysite\"\n template \"mysite.conf.erb\"\n end\n\nCreate the template, 'mysite.conf.erb' within the site-cookbook. Make sure the django settings are correct. The web_app define copies the template over and enables it as an apache2 site.\n\nThe Opscode \"application\" cookbook is going to grow the ability to deploy a Django application from a source repository. This cookbook will be used to get the Django and Apache software installed and ready.\n\n= LICENSE & AUTHOR:\n\nAuthor:: Joshua Timberman (<joshua@opscode.com>)\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
16 django/metadata.rb
@@ -1,16 +0,0 @@
-maintainer "Opscode, Inc."
-maintainer_email "cookbooks@opscode.com"
-license "Apache 2.0"
-description "Installs DJango"
-long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
-version "0.8.0"
-
-recipe "django", "Installs django and apache2 with mod_python"
-
-%w{ ubuntu debian }.each do |os|
- supports os
-end
-
-%w{ apache2 python}.each do |cb|
- depends cb
-end
View
25 django/recipes/default.rb
@@ -1,25 +0,0 @@
-#
-# Cookbook Name:: django
-# Recipe:: default
-#
-# Copyright 2009, 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 "apache2"
-include_recipe "apache2::#{node[:django][:web_server]}"
-include_recipe "python"
-
-package "python-django" do
- action :install
-end
View
52 dynomite/README.rdoc
@@ -1,52 +0,0 @@
-= DESCRIPTION:
-
-Installs and configures dynomite.
-
-= REQUIREMENTS:
-
-== Platform:
-
-Ubuntu, mainly because of dependencies on Ubuntu specific installation methods in dependencies (thrift and boost).
-
-== Cookbooks:
-
-Opscode/cookbooks:
-
-* thrift
-** boost
-* ruby
-* git
-* erlang
-* runit
-
-= ATTRIBUTES:
-
-* dynomite[:master] - whether this node is a master cluster node.
-* dynomite[:cluster_name] - name of the dynomite cluster.
-* dynomite[:data_dir] - location of the data.
-* dynomite[:num_nodes] - number of nodes in the cluster.
-* dynomite[:node_name] - name of this node.
-* dynomite[:ascii_port] - port for ASCII protocol.
-* dynomite[:thrift_port] - port for Thrift protocol.
-* dynomite[:web_port] - port for web (HTTP).
-
-= USAGE:
-
-Nothing fancy. Include the recipe, or add to a run_list like any other recipe. This cookbook relies on the ruby-dynomite client, which manages dynomite processes. The cookbook will set up dynomite as a runit service.
-
-= LICENSE and AUTHOR:
-
-Author:: Joshua Timberman (<joshua@opscode.com>)
-Copyright:: 2009, 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
31 dynomite/attributes/default.rb
@@ -1,31 +0,0 @@
-#
-# Cookbook Name:: dynomite
-# attributes:: dynomite
-#
-# Copyright 2009, 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.
-#
-
-default[:dynomite][:master] = false
-default[:dynomite][:cluster_name] = "dynomite"
-default[:dynomite][:data_dir] = "/var/db/dynomite"
-default[:dynomite][:num_nodes] = 1
-default[:dynomite][:node_name] = hostname
-default[:dynomite][:ascii_port] = 11221
-default[:dynomite][:thrift_port] = 11222
-default[:dynomite][:web_port] = 1180
-
-master_node = search(:node, "dynomite_master:true", "fqdn").first
-
-default[:dynomite][:join_node] = master_node
View
45 dynomite/metadata.json
@@ -1,45 +0,0 @@
-{
- "providing": {
- },
- "attributes": {
- },
- "replacing": {
- },
- "dependencies": {
- "runit": [
-
- ],
- "git": [
-
- ],
- "ruby": [
-
- ],
- "erlang": [
-
- ]
- },
- "groupings": {
- },
- "recommendations": {
- },
- "platforms": {
- "ubuntu": [
-
- ]
- },
- "license": "Apache 2.0",
- "version": "0.2.2",
- "maintainer": "Opscode, Inc.",
- "suggestions": {
- },
- "recipes": {
- "dynomite": "Installs and configures dynomite"
- },
- "maintainer_email": "cookbooks@opscode.com",
- "name": "dynomite",
- "conflicting": {
- },
- "description": "Installs/Configures dynomite",
- "long_description": "= DESCRIPTION:\n\nInstalls and configures dynomite.\n\n= REQUIREMENTS:\n\n== Platform:\n\nUbuntu, mainly because of dependencies on Ubuntu specific installation methods in dependencies (thrift and boost).\n\n== Cookbooks:\n\nOpscode/cookbooks:\n\n* thrift\n** boost\n* ruby\n* git\n* erlang\n* runit\n\n= ATTRIBUTES: \n\n* dynomite[:master] - whether this node is a master cluster node.\n* dynomite[:cluster_name] - name of the dynomite cluster.\n* dynomite[:data_dir] - location of the data.\n* dynomite[:num_nodes] - number of nodes in the cluster.\n* dynomite[:node_name] - name of this node.\n* dynomite[:ascii_port] - port for ASCII protocol.\n* dynomite[:thrift_port] - port for Thrift protocol.\n* dynomite[:web_port] - port for web (HTTP).\n\n= USAGE:\n\nNothing fancy. Include the recipe, or add to a run_list like any other recipe. This cookbook relies on the ruby-dynomite client, which manages dynomite processes. The cookbook will set up dynomite as a runit service.\n\n= LICENSE and AUTHOR:\n\nAuthor:: Joshua Timberman (<joshua@opscode.com>)\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
13 dynomite/metadata.rb
@@ -1,13 +0,0 @@
-maintainer "Opscode, Inc."
-maintainer_email "cookbooks@opscode.com"
-license "Apache 2.0"
-description "Installs/Configures dynomite"
-long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
-version "0.2.2"
-
-recipe "dynomite", "Installs and configures dynomite"
-supports "ubuntu"
-
-%w{ ruby git erlang runit }.each do |cb|
- depends cb
-end
View
58 dynomite/recipes/default.rb
@@ -1,58 +0,0 @@
-#
-# Cookbook Name:: dynomite
-# Recipe:: default
-#
-# Copyright 2009, 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 "ruby"
-include_recipe "git"
-include_recipe "erlang"
-
-gem_package "rake"
-gem_package "open4"
-
-bash "install_dynomite" do
- user "root"
- cwd "/tmp"
- code <<-EOH
- git clone git://github.com/cliffmoon/dynomite.git
- cd dynomite
- git submodule init
- git submodule update
- rake clean
- rake build_tarball
- (cd /usr/local && tar zxf /tmp/dynomite/build/dynomite.tar.tgz)
- EOH
- not_if { FileTest.exists?("/usr/local/dynomite/bin/dynomite") }
-end
-
-gem_package "dynomite" do
- source "http://gems.opscode.com"
-end
-
-directory node[:dynomite][:data_dir] do
- recursive true
- owner "root"
- group "root"
- mode "0644"
-end
-
-directory "/var/log/dynomite" do
- owner "root"
- group "root"
- mode "0644"
-end
-
-runit_service "dynomite"
View
2  dynomite/templates/default/sv-dynomite-log-run.erb
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec svlogd -tt ./main
View
9 dynomite/templates/default/sv-dynomite-run.erb
@@ -1,9 +0,0 @@
-#!/bin/sh
-exec 2>&1
-exec /usr/bin/env HOME="/tmp" dynoctl \
- -n <%= node[:dynomite][:num_nodes] %> \
- -d <%= node[:dynomite][:data_dir] %> \
- -o <%= node[:dynomite][:node_name] %> \
- -a <%= node[:dynomite][:ascii_port] %> \
- -t <%= node[:dynomite][:thrift_port] %> \
- -h <%= node[:dynomite][:web_port] %>
View
28 ec2/attributes/ec2_recipe_options.rb
@@ -1,28 +0,0 @@
-#
-# Cookbook Name:: ec2
-# Attribute File:: ec2_recipe_options.rb
-#
-# Copyright 2008-2009, 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.
-#
-
-set_unless[:ec2opts][:lvm][:use_ephemeral] = true
-set_unless[:ec2opts][:lvm][:ephemeral_mountpoint] = "/mnt"
-set_unless[:ec2opts][:lvm][:ephemeral_volume_group] = "ephemeral"
-set_unless[:ec2opts][:lvm][:ephemeral_logical_volume] = "store"
-set_unless[:ec2opts][:lvm][:ephemeral_devices] = {
- "m1.small" => [ "/dev/sda2" ],
- "m1.large" => [ "/dev/sdb", "/dev/sdc" ],
- "m1.xlarge" => [ "/dev/sdb", "/dev/sdc", "/dev/sdd", "/dev/sde" ],
-}
View
49 ec2/metadata.json
@@ -1,49 +0,0 @@
-{
- "recommendations": {
- },
- "attributes": {
- "ec2_metadata": {
- "required": "optional",
- "calculated": false,
- "choice": [
-
- ],
- "type": "string",
- "recipes": [
-
- ],
- "description": "Retrieve EC2 instance metadata",
- "display_name": "EC2 Metadata"
- }
- },
- "maintainer": "Opscode, Inc.",
- "suggestions": {
- },
- "dependencies": {
- },
- "maintainer_email": "cookbooks@opscode.com",
- "conflicting": {
- },
- "platforms": {
- "debian": [
-
- ],
- "ubuntu": [
-
- ]
- },
- "license": "Apache 2.0",
- "version": "0.9.0",
- "providing": {
- },
- "recipes": {
- "default": "Default ec2 recipe does not configure anything."
- },
- "replacing": {
- },
- "name": "ec2",
- "description": "Manage EC2 metadata as attributes",
- "groupings": {
- },
- "long_description": ""
- }
View
15 ec2/metadata.rb
@@ -1,15 +0,0 @@
-maintainer "Opscode, Inc."
-maintainer_email "cookbooks@opscode.com"
-license "Apache 2.0"
-description "Manage EC2 metadata as attributes"
-version "0.9"
-
-%w{ ubuntu debian}.each do |os|
- supports os
-end
-
-recipe "default", "Default ec2 recipe does not configure anything."
-
-attribute "ec2_metadata",
- :display_name => "EC2 Metadata",
- :description => "Retrieve EC2 instance metadata"
View
19 ec2/recipes/default.rb
@@ -1,19 +0,0 @@
-#
-# Cookbook Name:: ec2
-# Recipe:: default
-#
-# Copyright 2008-2009, 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
161 gems/metadata.json
@@ -1,102 +1,99 @@
{
- "providing": {
- },
- "attributes": {
- "gem_server/virtual_host_alias": {
- "required": "optional",
- "calculated": false,
- "choice": [
-
- ],
- "default": "gems",
- "type": "array",
- "recipes": [
+ "name": "gems",
+ "description": "Sets up a local gem server repository or mirror",
+ "long_description": "= DESCRIPTION:\n\nSets up a local gem server repository.\n\n= REQUIREMENTS:\n\n== Platform:\n\nTested on Ubuntu 8.10 and 9.04.\n\n== Cookbooks:\n\nOpscode cookbooks, http://github.com/opscode/cookbooks/tree/master\n\n* apache2\n\n= ATTRIBUTES: \n\n* gem_server[:virtual_host_name] - ServerName for Apache vhost. Default 'gems.domain'.\n* gem_server[:virtual_host_alias] - ServerAlias(es) for Apache vhost. Default 'gems'.\n* gem_server[:directory] - Filesystem location for the repository, default is /srv/gems.\n\n= USAGE:\n\nCreate files/default/packages, and copy gems to that directory.\n\nSpecify the gem source on clients via the command line, for example:\n\n sudo gem source -a http://gems\n sudo gem install rails --source http://gems\n\nOr use the source with gem_package resources in your chef recipes.\n\n gem_package \"rails\" do\n source \"http://gems\"\n end\n\nUse the gems::mirror recipe to mirror RubyForge. This will take a long time because the repository is 28k+ gems and over 5.5G. It will also override the remote_directory resource to not notify gem generate_index, and instead handle that in the cron job that does the rsync.\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.",
+ "maintainer": "Opscode, Inc.",
+ "maintainer_email": "cookbooks@opscode.com",
+ "license": "Apache 2.0",
+ "platforms": {
+ "ubuntu": [
- ],
- "description": "Array of Apache ServerAlias'es",
- "display_name": "Gem Server Virtual Host Aliases"
- },
- "gem_server/virtual_host_name": {
- "required": "optional",
- "calculated": false,
- "choice": [
+ ],
+ "debian": [
- ],
- "default": "gems.domain",
- "type": "string",
- "recipes": [
+ ]
+ },
+ "dependencies": {
+ "apache2": [
- ],
- "description": "Apache ServerName for the virtual host",
- "display_name": "Gem Server Virtual Hostname"
- },
- "gem_server/directory": {
- "required": "optional",
- "calculated": false,
- "choice": [
+ ],
+ "rsync": [
- ],
- "default": "/srv/gems",
- "type": "string",
- "recipes": [
+ ]
+ },
+ "recommendations": {
+ },
+ "suggestions": {
+ },
+ "conflicting": {
+ },
+ "providing": {
+ },
+ "replacing": {
+ },
+ "attributes": {
+ "gem_server": {
+ "display_name": "Gem Server",
+ "description": "Hash of Gem Server attributes",
+ "type": "hash",
+ "choice": [
- ],
- "description": "Filesystem location of where the gems repository is served from",
- "display_name": "Gem Server Directory"
- },
- "gem_server": {
- "required": "optional",
- "calculated": false,
- "choice": [
-
- ],
- "type": "hash",
- "recipes": [
+ ],
+ "calculated": false,
+ "required": "optional",
+ "recipes": [
- ],
- "description": "Hash of Gem Server attributes",
- "display_name": "Gem Server"
- }
- },
- "replacing": {
+ ]
},
- "dependencies": {
- "rsync": [
+ "gem_server/virtual_host_name": {
+ "display_name": "Gem Server Virtual Hostname",
+ "description": "Apache ServerName for the virtual host",
+ "default": "gems.domain",
+ "choice": [
],
- "apache2": [
+ "calculated": false,
+ "type": "string",
+ "required": "optional",
+ "recipes": [
]
},
- "groupings": {
- },
- "recommendations": {
- },
- "platforms": {
- "debian": [
+ "gem_server/virtual_host_alias": {
+ "display_name": "Gem Server Virtual Host Aliases",
+ "description": "Array of Apache ServerAlias'es",
+ "type": "array",
+ "default": "gems",
+ "choice": [
],
- "ubuntu": [
+ "calculated": false,
+ "required": "optional",
+ "recipes": [
]
},
- "license": "Apache 2.0",
- "version": "0.8.3",
- "maintainer": "Opscode, Inc.",
- "suggestions": {
- "ruby": [
+ "gem_server/directory": {
+ "display_name": "Gem Server Directory",
+ "description": "Filesystem location of where the gems repository is served from",
+ "default": "/srv/gems",
+ "choice": [
+
+ ],
+ "calculated": false,
+ "type": "string",
+ "required": "optional",
+ "recipes": [
]
- },
- "recipes": {
- "gems::mirror": "Crons an rsync of rubyforge",
- "gems": "Empty, use one of the other recipes",
- "gems::server": "Sets up a local gem server repository"
- },
- "maintainer_email": "cookbooks@opscode.com",
- "name": "gems",
- "conflicting": {
- },
- "description": "Sets up a local gem server repository or mirror",
- "long_description": "= DESCRIPTION:\n\nSets up a local gem server repository.\n\n= REQUIREMENTS:\n\n== Platform:\n\nTested on Ubuntu 8.10 and 9.04.\n\n== Cookbooks:\n\nOpscode cookbooks, http://github.com/opscode/cookbooks/tree/master\n\n* apache2\n\n= ATTRIBUTES: \n\n* gem_server[:virtual_host_name] - ServerName for Apache vhost. Default 'gems.domain'.\n* gem_server[:virtual_host_alias] - ServerAlias(es) for Apache vhost. Default 'gems'.\n* gem_server[:directory] - Filesystem location for the repository, default is /srv/gems.\n\n= USAGE:\n\nCreate files/default/packages, and copy gems to that directory.\n\nSpecify the gem source on clients via the command line, for example:\n\n sudo gem source -a http://gems\n sudo gem install rails --source http://gems\n\nOr use the source with gem_package resources in your chef recipes.\n\n gem_package \"rails\" do\n source \"http://gems\"\n end\n\nUse the gems::mirror recipe to mirror RubyForge. This will take a long time because the repository is 28k+ gems and over 5.5G. It will also override the remote_directory resource to not notify gem generate_index, and instead handle that in the cron job that does the rsync.\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."
- }
+ }
+ },
+ "groupings": {
+ },
+ "recipes": {
+ "gems": "Empty, use one of the other recipes",
+ "gems::server": "Sets up a local gem server repository",
+ "gems::mirror": "Crons an rsync of rubyforge"
+ },
+ "version": "1.0.0"
+}
View
3  gems/metadata.rb
@@ -3,13 +3,12 @@
license "Apache 2.0"
description "Sets up a local gem server repository or mirror"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
-version "0.8.3"
+version "1.0.0"
recipe "gems", "Empty, use one of the other recipes"
recipe "gems::server", "Sets up a local gem server repository"
recipe "gems::mirror", "Crons an rsync of rubyforge"
depends "apache2"
depends "rsync"
-suggests "ruby" # :-)
%w{ ubuntu debian }.each do |os|
supports os
View
8 glassfish/README.rdoc
@@ -1,8 +0,0 @@
-= DESCRIPTION:
-
-= REQUIREMENTS:
-
-= ATTRIBUTES:
-
-= USAGE:
-
View
82 glassfish/attributes/default.rb
@@ -1,82 +0,0 @@
-#
-# Cookbook Name:: glassfish
-# Attribute File:: glassfish
-#
-# Copyright 2009, 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.
-#
-#openInstaller Dry Run Answer File. This File can be used as input to the openInstaller engine using the -a option.
-
-# unis system user
-default[:glassfish][:systemuser]="glassfish"
-#unix system group
-default[:glassfish][:systemgroup]="glassfish"
-# fetch_url
-default[:glassfish][:fetch_url]="http://download.java.net/glassfish/v3-prelude/promoted/glassfish-v3-prelude-b28f-unix.sh"
-#InstallHome.directory.INSTALL_HOME=
-default[:glassfish][:INSTALL_HOME]="/opt/glassfishv3-prelude"
-#License.license.ACCEPT_LICENSE=0
-default[:glassfish][:ACCEPT_LICENSE]="0"
-#RegistrationOptions.regoptions.CREATE_NEWACCT=CREATE_NEWACCT
-default[:glassfish][:CREATE_NEWACCT]="CREATE_NEWACCT"
-#RegistrationOptions.regoptions.DUMMY_PROP=
-default[:glassfish][:DUMMY_PROP]=""
-#RegistrationOptions.regoptions.SKIP_REGISTRATION=SKIP_REGISTRATION
-default[:glassfish][:SKIP_REGISTRATION]="SKIP_REGISTRATION"
-#RegistrationOptions.regoptions.USERNAME=
-default[:glassfish][:USERNAME]=""
-#RegistrationOptions.regoptions.USERPASSWORD=
-default[:glassfish][:USERPASSWORD]=""
-#RegistrationOptions.regoptions.USE_EXISTINGACCT=USE_EXISTINGACCT
-default[:glassfish][:USE_EXISTINGACCT]="USE_EXISTINGACCT"
-#SOAccountCreation.accountinfo.COMPANYNAME=
-default[:glassfish][:COMPANYNAME]=""
-#SOAccountCreation.accountinfo.COUNTRY=
-default[:glassfish][:COUNTRY]=""
-#SOAccountCreation.accountinfo.COUNTRY_DROP_DOWN=
-default[:glassfish][:COUNTRY_DROP_DOWN]=""
-#SOAccountCreation.accountinfo.EMAIL=
-default[:glassfish][:EMAIL]=""
-#SOAccountCreation.accountinfo.FIRSTNAME=
-default[:glassfish][:FIRSTNAME]=""
-#SOAccountCreation.accountinfo.LASTNAME=
-default[:glassfish][:LASTNAME]=""
-#SOAccountCreation.accountinfo.PASSWORD=
-default[:glassfish][:PASSWORD]=""
-#SOAccountCreation.accountinfo.REENTERPASSWORD=
-default[:glassfish][:REENTERPASSWORD]=""
-#glassfish.Administration.ADMIN_PASSWORD=adminadmin
-default[:glassfish][:ADMIN_PASSWORD]="adminadmin"
-#glassfish.Administration.ADMIN_PORT=4848
-default[:glassfish][:ADMIN_PORT]="4848"
-#glassfish.Administration.ADMIN_USER=admin
-default[:glassfish][:ADMIN_USER]="admin"
-#glassfish.Administration.ANONYMOUS=ANONYMOUS
-default[:glassfish][:ANONYMOUS]="ANONYMOUS"
-#glassfish.Administration.LOGIN_MODE=true
-default[:glassfish][:LOGIN_MODE]="true"
-#glassfish.Administration.HTTP_PORT=8080
-default[:glassfish][:HTTP_PORT]="8081"
-# Can be set to anonymous or non_anonymous, to require administrator to log in with user name and password.
-# glassfish.Administration.NON_ANONYMOUS=NON_ANONYMOUS
-default[:glassfish][:NON_ANONYMOUS]="NON_ANONYMOUS"
-#updatetool.Configuration.ALLOW_UPDATE_CHECK=true
-default[:glassfish][:ALLOW_UPDATE_CHECK]="false"
-#updatetool.Configuration.BOOTSTRAP_UPDATETOOL=true
-default[:glassfish][:BOOTSTRAP_UPDATETOOL]="false"
-#updatetool.Configuration.PROXY_HOST=
-default[:glassfish][:PROXY_HOST]= ""
-#updatetool.Configuration.PROXY_PORT=
-default[:glassfish][:PROXY_PORT]= ""
-
View
42 glassfish/metadata.json
@@ -1,42 +0,0 @@
-{
- "providing": {
- },
- "attributes": {
- },
- "replacing": {
- },
- "dependencies": {
- },
- "groupings": {
- },
- "recommendations": {
- },
- "platforms": {
- "debian": [
-
- ],
- "centos": [
-
- ],
- "ubuntu": [
-
- ],
- "redhat": [
-
- ]
- },
- "license": "Apache 2.0",
- "version": "0.3.1",
- "maintainer": "Opscode, Inc.",
- "suggestions": {
- },
- "recipes": {
- "glassfish": "Main Glassfish configuration"
- },
- "maintainer_email": "cookbooks@opscode.com",
- "name": "glassfish",
- "conflicting": {
- },
- "description": "Installs/Configures Glassfish",
- "long_description": "= DESCRIPTION:\n\n= REQUIREMENTS:\n\n= ATTRIBUTES: \n\n= USAGE:\n\n"
- }
View
11 glassfish/metadata.rb
@@ -1,11 +0,0 @@
-maintainer "Opscode, Inc."
-maintainer_email "cookbooks@opscode.com"
-license "Apache 2.0"
-description "Installs/Configures Glassfish"
-long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
-version "0.3.1"
-recipe "glassfish", "Main Glassfish configuration"
-
-%w{redhat centos debian ubuntu}.each do |os|
- supports os
-end
View
73 glassfish/recipes/default.rb
@@ -1,73 +0,0 @@
-#
-# Cookbook Name:: glassfish
-# Recipe:: default
-#
-# Copyright 2009, 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.
-#
-
-
-group node[:glassfish][:systemgroup] do
-end
-
-user node[:glassfish][:systemuser] do
- comment "SUN Glassfish"
- gid node[:glassfish][:systemgroup]
- home node[:glassfish][:INSTALL_HOME]
- shell "/bin/sh"
-end
-
-remote_file "/tmp/glassfish.sh" do
- owner node[:glassfish][:systemuser]
- source node[:glassfish][:fetch_url]
- mode "0744"
- checksum "6d4a20f14de"
-end
-
-answer_file = "/tmp/v3-prelude-answer"
-
-template answer_file do
- owner node[:glassfish][:systemuser]
- source "answer_file.erb"
-end
-
-directory node[:glassfish][:INSTALL_HOME] do
- owner node[:glassfish][:systemuser]
- group node[:glassfish][:systemgroup]
- mode "0755"
- action :create
- recursive true
-end
-
-execute "install-glassfish" do
- command "/tmp/glassfish.sh -a #{answer_file} -s"
- creates ::File.join(node[:glassfish][:INSTALL_HOME],"uninstall.sh")
- user node[:glassfish][:systemuser]
- action :run
-end
-
-file answer_file do
- action :delete
-end
-
-template "/etc/init.d/glassfish" do
- source "glassfish-init.d-script.erb"
- mode "0755"
-end
-
-service "glassfish" do
- supports :start => true, :restart => true, :stop => true
- action [ :enable, :start ]
-end
-
View
27 glassfish/templates/default/answer_file.erb
@@ -1,27 +0,0 @@
-InstallHome.directory.INSTALL_HOME=<%= node[:glassfish][:INSTALL_HOME] %>
-License.license.ACCEPT_LICENSE=<%= node[:glassfish][:ACCEPT_LICENSE] %>
-RegistrationOptions.regoptions.CREATE_NEWACCT=<%= node[:glassfish][:CREATE_NEWACCT] %>
-RegistrationOptions.regoptions.DUMMY_PROP=<%= node[:glassfish][:DUMMY_PROP] %>
-RegistrationOptions.regoptions.SKIP_REGISTRATION=<%= node[:glassfish][:SKIP_REGISTRATION] %>
-RegistrationOptions.regoptions.USERNAME=<%= node[:glassfish][:USERNAME] %>
-RegistrationOptions.regoptions.USERPASSWORD=<%= node[:glassfish][:USERPASSWORD] %>
-RegistrationOptions.regoptions.USE_EXISTINGACCT=<%= node[:glassfish][:USE_EXISTINGACCT] %>
-SOAccountCreation.accountinfo.COMPANYNAME=<%= node[:glassfish][:COMPANYNAME] %>
-SOAccountCreation.accountinfo.COUNTRY=<%= node[:glassfish][:COUNTRY] %>
-SOAccountCreation.accountinfo.COUNTRY_DROP_DOWN=<%= node[:glassfish][:COUNTRY_DROP_DOWN] %>
-SOAccountCreation.accountinfo.EMAIL=<%= node[:glassfish][:EMAIL] %>
-SOAccountCreation.accountinfo.FIRSTNAME=<%= node[:glassfish][:FIRSTNAME] %>
-SOAccountCreation.accountinfo.LASTNAME=<%= node[:glassfish][:LASTNAME] %>
-SOAccountCreation.accountinfo.PASSWORD=<%= node[:glassfish][:PASSWORD] %>
-SOAccountCreation.accountinfo.REENTERPASSWORD=<%= node[:glassfish][:REENTERPASSWORD] %>
-glassfish.Administration.ADMIN_PASSWORD=<%= node[:glassfish][:ADMIN_PASSWORD] %>
-glassfish.Administration.ADMIN_PORT=<%= node[:glassfish][:ADMIN_PORT] %>
-glassfish.Administration.ADMIN_USER=<%= node[:glassfish][:ADMIN_USER] %>
-glassfish.Administration.ANONYMOUS=<%= node[:glassfish][:ANONYMOUS] %>
-glassfish.Administration.LOGIN_MODE=<%= node[:glassfish][:LOGIN_MODE] %>
-glassfish.Administration.HTTP_PORT=<%= node[:glassfish][:HTTP_PORT] %>
-glassfish.Administration.NON_ANONYMOUS=<%= node[:glassfish][:NON_ANONYMOUS] %>
-updatetool.Configuration.ALLOW_UPDATE_CHECK=<%= node[:glassfish][:ALLOW_UPDATE_CHECK] %>
-updatetool.Configuration.BOOTSTRAP_UPDATETOOL=<%= node[:glassfish][:BOOTSTRAP_UPDATETOOL] %>
-updatetool.Configuration.PROXY_HOST=<%= node[:glassfish][:PROXY_HOST] %>
-updatetool.Configuration.PROXY_PORT=<%= node[:glassfish][:PROXY_PORT] %>
View
44 glassfish/templates/default/glassfish-init.d-script.erb
@@ -1,44 +0,0 @@
-#!/bin/bash
-#
-# glassfish: Startup script for Glassfish Application Server.
-#
-# chkconfig: 3 80 05
-# description: Startup script for domain1 of Glassfish Application Server.
-
-GLASSFISH_HOME=<%= File.join(node[:glassfish][:INSTALL_HOME],"glassfish") %>
-export GLASSFISH_HOME
-
-GLASSFISH_OWNER=<%= node[:glassfish][:systemuser] %> ;
-export GLASSFISH_OWNER
-
-start() {
- echo -n "Starting Glassfish: "
- echo "Starting Glassfish at `date`" >> $GLASSFISH_HOME/domains/domain1/logs/startup.log
- su $GLASSFISH_OWNER -c "$GLASSFISH_HOME/bin/asadmin start-domain domain1" >> $GLASSFISH_HOME/domains/domain1/logs/startup.log
- sleep 2
- echo "done"
-}
-
-stop() {
- echo -n "Stopping Glassfish: "
- echo "Stopping Glassfish at `date`" >> $GLASSFISH_HOME/domains/domain1/logs/startup.log
- su $GLASSFISH_OWNER -c "$GLASSFISH_HOME/bin/asadmin stop-domain domain1" >> $GLASSFISH_HOME/domains/domain1/logs/startup.log
- echo "done"
-}
-
-# See how we were called.
-case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- restart)
- stop
- start
- ;;
- *)
- echo $"Usage: glassfish {start|stop|restart}"
- exit
-esac
View
73 god/metadata.json
@@ -1,42 +1,39 @@
{
- "recommendations": {
- },
- "attributes": {
- },
- "maintainer": "Opscode, Inc.",
- "suggestions": {
- },
- "dependencies": {
- "runit": [
+ "name": "god",
+ "description": "Installs and configures god and provides a define for monitoring",
+ "long_description": "= DESCRIPTION:\n\nInstalls god gem, sets up modular configuration directory and provides a define to monitor processes.\n\n= REQUIREMENTS:\n\n== Platform and Application Environment:\n\nTested on Ubuntu 8.10. May work on other platforms, esp Ubuntu/Debian. Sample configuration file uses mongrel_runit for managing mongrels via runit. \n\n== Cookbooks:\n\nOpscode cookbooks, http://github.com/opscode/cookbooks/tree/master:\n\n* ruby\n* runit\n\nOpscode does not yet have a mongrel_runit cookbook.\n\n= ATTRIBUTES: \n\nNo attributes are used.\n\n= USAGE:\n\nThis recipe is designed to be used through the god_monitor define. Create a god configuration file in your application's cookbook and then call god_monitor:\n\n god_monitor \"myproj\" do\n config \"myproj.god.erb\"\n end\n\nA sample mongrel.god.erb is provided, though it assumes mongrel_runit is used. This can be used as a baseline for customization.\n\n= LICENSE and AUTHOR:\n \nAuthor:: Joshua Timberman (<joshua@opscode.com>)\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",
+ "maintainer": "Opscode, Inc.",
+ "maintainer_email": "cookbooks@opscode.com",
+ "license": "Apache 2.0",
+ "platforms": {
+ "debian": [
- ],
- "ruby": [
+ ],
+ "ubuntu": [
- ]
- },
- "maintainer_email": "cookbooks@opscode.com",
- "conflicting": {
- },
- "platforms": {
- "debian": [
+ ]
+ },
+ "dependencies": {
+ "runit": [
- ],
- "ubuntu": [
-
- ]
- },
- "license": "Apache 2.0",
- "version": "0.7.1",
- "providing": {
- },
- "recipes": {
- "god": "Installs god and starts it as a runit service"
- },
- "replacing": {
- },
- "name": "god",
- "description": "Installs and configures god and provides a define for monitoring",
- "groupings": {
- },
- "long_description": "= DESCRIPTION:\n\nInstalls god gem, sets up modular configuration directory and provides a define to monitor processes.\n\n= REQUIREMENTS:\n\n== Platform and Application Environment:\n\nTested on Ubuntu 8.10. May work on other platforms, esp Ubuntu/Debian. Sample configuration file uses mongrel_runit for managing mongrels via runit. \n\n== Cookbooks:\n\nOpscode cookbooks, http://github.com/opscode/cookbooks/tree/master:\n\n* ruby\n* runit\n\nOpscode does not yet have a mongrel_runit cookbook.\n\n= ATTRIBUTES: \n\nNo attributes are used.\n\n= USAGE:\n\nThis recipe is designed to be used through the god_monitor define. Create a god configuration file in your application's cookbook and then call god_monitor:\n\n god_monitor \"myproj\" do\n config \"myproj.god.erb\"\n end\n\nA sample mongrel.god.erb is provided, though it assumes mongrel_runit is used. This can be used as a baseline for customization.\n\n= LICENSE and AUTHOR:\n \nAuthor:: Joshua Timberman (<joshua@opscode.com>)\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"
- }
+ ]
+ },
+ "recommendations": {
+ },
+ "suggestions": {
+ },
+ "conflicting": {
+ },
+ "providing": {
+ },
+ "replacing": {
+ },
+ "attributes": {
+ },
+ "groupings": {
+ },
+ "recipes": {
+ "god": "Installs god and starts it as a runit service"
+ },
+ "version": "1.0.0"
+}
View
6 god/metadata.rb
@@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs and configures god and provides a define for monitoring"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
-version "0.7.1"
+version "1.0.0"
recipe "god", "Installs god and starts it as a runit service"
@@ -11,6 +11,4 @@
supports os
end
-%w{ ruby runit }.each do |cb|
- depends cb
-end
+depends "runit"
View
1  god/recipes/default.rb
@@ -17,7 +17,6 @@
# limitations under the License.
#
-include_recipe "ruby"
include_recipe "runit"
gem_package "god" do
View
33 instiki/README.rdoc
@@ -1,33 +0,0 @@
-= DESCRIPTION:
-
-Installs instiki, a Ruby on Rails wiki server under passenger+Apache2.
-
-= REQUIREMENTS:
-
-Opscode cookbooks:
-
-* apache2
-* passenger_apache2
-* sqlite
-* rails
-
-= USAGE:
-
-Simply apply the 'instiki' recipe. This installs version 0.17 in /srv/instiki/instiki-0.17. A later version of this cookbook might support setting the version and a different installation path, but for now these are hardcoded.
-
-= LICENSE and AUTHOR:
-
-Author:: Joshua Timberman <joshua@opscode.com>
-
-Copyright 2009, 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
View
44 instiki/databag.json
@@ -1,44 +0,0 @@
-{
- "id": "instiki",
- "server_roles": [
- "instiki"
- ],
- "type": {
- "instiki": [
- "rails",
- "passenger_apache2"
- ]
- },
- "database_master_role": [
- "instiki"
- ],
- "repository": "git://github.com/parasew/instiki.git",
- "deploy_to": "/srv/instiki",
- "owner": "nobody",
- "group": "nogroup",
- "revision": {
- "production": "0.18.1"
- },
- "force": {
- "production": false
- },
- "databases": {
- "production": {
- "adapter": "sqlite3",
- "timeout": 5000,
- "database": "db/production.db.sqlite3"
- }
- },
- "migrate": {
- "production": false
- },
- "gems": {
- "sqlite3-ruby": "",
- "rails": "2.3.2"
- },
- "packages": {
- "git-core": "",
- "sqlite3": "",
- "libsqlite3-dev": ""
- }
-}
View
42 instiki/metadata.json
@@ -1,42 +0,0 @@
-{
- "name": "instiki",
- "description": "Installs instiki, a Ruby on Rails wiki server under passenger+Apache2.",
- "long_description": "= DESCRIPTION:\n\nInstalls instiki, a Ruby on Rails wiki server under passenger+Apache2.\n\n= REQUIREMENTS:\n\nOpscode cookbooks:\n\n* apache2\n* passenger_apache2\n* sqlite\n* rails\n\n= USAGE:\n\nSimply apply the 'instiki' recipe. This installs version 0.17 in /srv/instiki/instiki-0.17. A later version of this cookbook might support setting the version and a different installation path, but for now these are hardcoded.\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\n",
- "maintainer": "Opscode",
- "maintainer_email": "cookbooks@opscode.com",
- "license": "Apache 2.0",
- "platforms": {
- },
- "dependencies": {
- "apache2": [
-
- ],
- "passenger_apache2": [
-
- ],
- "sqlite": [
-
- ],
- "rails": [
-
- ]
- },
- "recommendations": {
- },
- "suggestions": {
- },
- "conflicting": {
- },
- "providing": {
- },
- "replacing": {
- },
- "attributes": {
- },
- "groupings": {
- },
- "recipes": {
- "instiki": "Installs instiki and sets up an apache vhost under passenger."
- },
- "version": "0.2.1"
-}
View
11 instiki/metadata.rb
@@ -1,11 +0,0 @@
-maintainer "Opscode"
-maintainer_email "cookbooks@opscode.com"
-license "Apache 2.0"
-description "Installs instiki, a Ruby on Rails wiki server under passenger+Apache2."
-long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
-version "0.2.1"
-
-recipe "instiki", "Installs instiki and sets up an apache vhost under passenger."
-%w{ apache2 passenger_apache2 sqlite rails }.each do |cb|
- depends cb
-end
View
50 instiki/recipes/default.rb
@@ -1,50 +0,0 @@
-#
-# Cookbook Name:: instiki
-# Recipe:: default
-#
-# Copyright 2009, Opscode
-#
-# 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 "sqlite"
-include_recipe "rails"
-include_recipe "apache2"
-include_recipe "apache2::mod_rewrite"
-include_recipe "passenger_apache2"
-include_recipe "passenger_apache2::mod_rails"
-
-remote_file "/tmp/instiki-0.17.tar.gz" do
- source "http://rubyforge.org/frs/download.php/59127/instiki-0.17.tgz"
- mode 0644
- owner "root"
- group "root"
- not_if { ::FileTest.exists?("/tmp/instiki-0.17.tar.gz") }
-end
-
-directory "/srv/instiki" do
- owner node[:apache][:user]
-end
-
-execute "tar zxf /tmp/instiki-0.17.tar.gz -C /srv/instiki" do
- user node[:apache][:user]
- creates "/srv/instiki/instiki-0.17/instiki"
-end
-
-web_app "instiki" do
- docroot "/srv/instiki/instiki-0.17/public"
- template "instiki.conf.erb"
- server_name "wiki.#{node[:domain]}"
- server_aliases [ "wiki", "instiki", node[:hostname] ]
- rails_env "production"
-end
View
20 instiki/templates/default/instiki.conf.erb
@@ -1,20 +0,0 @@
-<VirtualHost *:80>
- ServerName <%= @params[:server_name] %>
- ServerAlias <% @params[:server_aliases].each do |a| %><%= "#{a}" %> <% end %>
- DocumentRoot <%= @params[:docroot] %>
-
- RailsBaseURI /
- RailsEnv <%= @params[:rails_env] %>
-
- <Directory <%= @params[:docroot] %>>
- Options FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- </Directory>
-
- LogLevel info
- ErrorLog <%= node[:apache][:log_dir] %>/<%= @params[:name] %>-error.log
- CustomLog <%= node[:apache][:log_dir] %>/<%= @params[:name] %>-access.log combined
-</VirtualHost>
-
View
33 java_sun/README.md
@@ -1,33 +0,0 @@
-Description
-===========
-
-*THIS COOKBOOK HAS BEEN DEPRECATED.* Please use the `java` cookbook with the proper `install_flavor` attribute set.
-
-The default recipe in this cookbook simply points to the `java::default` recipe with the `node["java"]["install_flavor"]` attribute set to `sun`
-
-Requirements
-============
-
-Platform: Ubuntu, Debian.
-
-Usage
-=====
-
-Simply include the recipe where you want Sun Java installed.
-
-License and Author
-==================
-
-Copyright 2008-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
39 java_sun/metadata.json
@@ -1,39 +0,0 @@
-{
- "name": "java_sun",
- "description": "Installs Sun java",
- "long_description": "Description\n===========\n\n*THIS COOKBOOK HAS BEEN DEPRECATED.* Please use the `java` cookbook with the proper `install_flavor` attribute set.\n\nThe default recipe in this cookbook simply points to the `java::default` recipe with the `node[\"java\"][\"install_flavor\"]` attribute set to `sun`\n\nRequirements\n============\n\nPlatform: Ubuntu, Debian.\n\nUsage\n=====\n\nSimply include the recipe where you want Sun Java installed.\n\nLicense and Author\n==================\n\nCopyright 2008-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",
- "maintainer": "Opscode, Inc.",
- "maintainer_email": "cookbooks@opscode.com",
- "license": "Apache 2.0",
- "platforms": {
- "debian": [
-
- ],
- "ubuntu": [
-
- ]
- },
- "dependencies": {
- "java": [
-
- ]
- },
- "recommendations": {
- },
- "suggestions": {
- },
- "conflicting": {
- },
- "providing": {
- },
- "replacing": {
- },
- "attributes": {
- },
- "groupings": {
- },
- "recipes": {
- "java_sun": "Installs Sun Java using preseed to accept terms"
- },
- "version": "0.10.0"
-}
View
14 java_sun/metadata.rb
@@ -1,14 +0,0 @@
-maintainer "Opscode, Inc."
-maintainer_email "cookbooks@opscode.com"
-license "Apache 2.0"
-description "Installs Sun java"
-long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version "0.10.0"
-
-depends 'java'
-
-recipe "java_sun", "Installs Sun Java using preseed to accept terms"
-
-%w{ debian ubuntu }.each do |os|
- supports os
-end
View
24 java_sun/recipes/default.rb
@@ -1,24 +0,0 @@
-#
-# Cookbook Name:: java_sun
-# Recipe:: default
-#
-# Copyright 2008-2009, 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.
-#
-
-Chef::Log.warn("This recipe will be deprecated soon, please use java::sun")
-
-node.set['java']['install_flavor'] = "sun"
-
-include_recipe "java"
View
30 nanite/metadata.json
@@ -1,30 +0,0 @@
-{
- "recommendations": {
- },
- "attributes": {
- },
- "maintainer": "Opscode, Inc.",
- "suggestions": {
- },
- "dependencies": {
- },
- "maintainer_email": "cookbooks@opscode.com",
- "conflicting": {
- },
- "platforms": {
- },
- "license": "Apache 2.0",
- "version": "0.8.0",
- "providing": {
- },
- "recipes": {
- "nanite::chef": "Deprecated, was used to install and configure nanite for Chef 0.8alpha"
- },
- "replacing": {
- },
- "name": "nanite",
- "description": "Deprecated, was used to install and configure nanite for Chef 0.8 alpha",
- "groupings": {
- },
- "long_description": ""
- }
View
7 nanite/metadata.rb
@@ -1,7 +0,0 @@
-maintainer "Opscode, Inc."
-maintainer_email "cookbooks@opscode.com"
-license "Apache 2.0"
-description "Deprecated, was used to install and configure nanite for Chef 0.8 alpha"
-version "0.8"
-
-recipe "nanite::chef", "Deprecated, was used to install and configure nanite for Chef 0.8alpha"
View
49 nanite/recipes/chef.rb
@@ -1,49 +0,0 @@
-#
-# Author:: Daniel DeLeo <dan@kallistec.com>
-#
-# Cookbook Name:: rabbitmq
-# Recipe:: default
-#
-# Copyright 2009, Daniel DeLeo
-#
-# 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 "rabbitmq"
-
-# NOTICE: CHEF REQUIRES A DIFFERENT RABBITMQ ACL CONFIG THAN MOST NANITE
-# SETUPS. SEE CHEF-666 (NO JOKE) FOR MORE DETAILS
-Chef::Log.info("Configuring nanite *SPECIFICALLY FOR CHEF*. See CHEF-666 for more info")
-
-execute "rabbitmqctl add_vhost /nanite" do
- not_if "rabbitmqctl list_vhosts| grep /nanite"
-end
-
-# create 'mapper' and 'nanite' users, give them each the password 'testing'
-%w[mapper nanite].each do |agent|
- execute "rabbitmqctl add_user #{agent} testing" do
- not_if "rabbitmqctl list_users |grep #{agent}"
- end
-end
-
-# grant the mapper user the ability to do anything with the /nanite vhost
-# the three regex's map to config, write, read permissions respectively
-execute 'rabbitmqctl set_permissions -p /nanite mapper ".*" ".*" ".*"' do
- not_if 'rabbitmqctl list_user_permissions mapper|grep /nanite'
-end
-
-# should set permissions more restrictive for the nanite user, but can't
-# because of limitation in chef.
-execute 'rabbitmqctl set_permissions -p /nanite nanite ".*" ".*" ".*"' do
- not_if 'rabbitmqctl list_user_permissions nanite|grep /nanite'
-end
View
71 one-shot/README.md
@@ -1,71 +0,0 @@
-Description
-===========
-This cookbook provides a framework for making single-use, one-shot recipes. By including the `one-shot` recipe in the node's run_list, on the next chef-client run the contents of the `one-shot::one-shot` recipe will be called. This is parameterized as an attribute, so you can change these out by setting the `["one_shot"]["recipe"]` to include different recipes. The file `roles/one-shot.rb` is included so you can simply change the role instead of changing the source directly.
-
-Requirements
-============
-Written with Chef 0.9.12.
-
-Testing
--------
-Tested on Ubuntu 10.04 and 10.10 and tested with Chef 0.9.12.
-
-Attributes
-==========
-The attribute is set in `attributes/default.rb` and can be set via the `roles/one-shot.rb` Role as well (or you could edit the `default.rb` recipe directly).
-
-* `["one_shot"]["recipe"]` - Default is `one-shot::one-shot`, but may be set to alternate recipes so you may have multiple recipes to use, depending on this attribute.
-
-Roles
-=====
-one-shot
---------
-This role is provided by the `roles/one-shot.rb` for setting the `["one_shot"]["recipe"]` attribute.
-
- knife role from file cookbooks/one-shot/roles/one-shot.rb
- knife node run_list add YOURNODE 'role[one-shot]'
-
-
-Recipes
-=======
-Default
--------
-The default recipe includes the recipe referred to by the `["one_shot"]["recipe"]` attribute, executing it and then removing the `oneshot` recipe from the node's run_list.
-
-One-Shot
---------
-This is an example implementation of a one-shot recipe, it may be copied or modified as necessary. Access to additional recipes are made through the `["one_shot"]["recipe"]` attribute. This recipe is accessed by the `attributes/default.rb`.
-
-Two-Shot
---------
-This is an example implementation of a one-shot recipe, it may be copied or modified as necessary. Access to additional recipes are made through the `["one_shot"]["recipe"]` attribute. This recipe is accessed by the `roles/one-shot.rb` Role.
-
-Usage
-=====
-Add the `one-shot` recipe to a node's run_list. Next chef-client run, that node will execute the recipe designated by the `["one_shot"]["recipe"]` attribute, then remove itself from the node's run_list. The attribute may be set with a Role or directly in the source of the cookbook. You can update the `one-shot` Role with any changes for future runs, then add the `one-shot` recipe back to the run_list again. It could definitely be used within another Role and applied to a series of nodes if needed.
-
- knife node run_list add YOURNODE 'recipe[one-shot]'
-
-optional
-
- knife role from file cookbooks/one-shot/roles/one-shot.rb
- knife node run_list add YOURNODE 'role[one-shot]'
-
-
-License and Author
-==================
-Author:: Matt Ray <matt@opscode.com>
-
-Copyright:: 2011 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
22 one-shot/attributes/default.rb
@@ -1,22 +0,0 @@
-#
-# Author:: Matt Ray <matt@opscode.com>
-# Cookbook Name:: zenoss
-# Attributes:: default
-#
-# Copyright 2011 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.
-#
-
-#additional one-shots can be added by changing the name of the recipe
-default[:one_shot][:recipe] = "one-shot::one-shot"
View
31 one-shot/metadata.json
@@ -1,31 +0,0 @@
-{
- "long_description": "",
- "recipes": {
- "one-shot::one-shot": "The recipe to be executed a single time.",
- "default": "Includes the `one-shot` recipe and removes itself from the run_list."
- },
- "attributes": {
- },
- "providing": {
- },
- "dependencies": {
- },
- "maintainer": "Opscode, Inc.",
- "replacing": {
- },
- "maintainer_email": "matt@opscode.com",
- "groupings": {
- },
- "platforms": {
- },
- "license": "Apache 2.0",
- "version": "0.1.0",
- "recommendations": {
- },
- "suggestions": {
- },
- "name": "one-shot",
- "description": "Runs the contents of the one-shot.rb and removes it from the run_list",
- "conflicting": {
- }
-}
View
7 one-shot/metadata.rb
@@ -1,7 +0,0 @@
-maintainer "Opscode, Inc."
-maintainer_email "matt@opscode.com"
-license "Apache 2.0"
-description "Runs the contents of the one-shot.rb and removes it from the run_list"
-version "0.1"
-recipe "one-shot::one-shot", "The recipe to be executed a single time."
-recipe "default", "Includes the `one-shot` recipe and removes itself from the run_list."
View
31 one-shot/recipes/default.rb
@@ -1,31 +0,0 @@
-#
-# Author:: Matt Ray <matt@opscode.com>
-# Cookbook Name:: one-shot
-# Recipe:: default
-#
-# Copyright 2011, 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.
-#
-
-oneshot = node["one_shot"]["recipe"]
-
-include_recipe oneshot
-
-ruby_block "remove one-shot recipe #{oneshot}" do
- block do
- Chef::Log.info("One-Shot recipe #{oneshot} executed and removed from run_list")
- node.run_list.remove("recipe[one-shot]") if node.run_list.include?("recipe[one-shot]")
- end
- action :create
-end
View
21 one-shot/recipes/one-shot.rb
@@ -1,21 +0,0 @@
-#
-# Author:: Matt Ray <matt@opscode.com>
-# Cookbook Name:: one-shot
-# Recipe:: one-shot
-#
-# Copyright 2011, 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.
-#
-
-Chef::Log.info("one-shot::one-shot called and executed!")
View
21 one-shot/recipes/two-shot.rb
@@ -1,21 +0,0 @@
-#
-# Author:: Matt Ray <matt@opscode.com>
-# Cookbook Name:: one-shot
-# Recipe:: two-shot
-#
-# Copyright 2011, 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.
-#
-
-Chef::Log.info("one-shot::two-shot called and executed!")
View
7 one-shot/roles/one-shot.rb
@@ -1,7 +0,0 @@