Skip to content

Commit

Permalink
Updating for Chef 0.8 changes.
Browse files Browse the repository at this point in the history
* Use 'default.rb' for attributes files when specific files not
  necessary
* Update search in rsyslog recipe.
  • Loading branch information
jtimberman committed Apr 29, 2010
1 parent 24f6358 commit ef7e6a1
Show file tree
Hide file tree
Showing 78 changed files with 49 additions and 46 deletions.
3 changes: 2 additions & 1 deletion NOTICE
Expand Up @@ -9,7 +9,8 @@ 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>
File renamed without changes.
2 changes: 1 addition & 1 deletion activemq/metadata.rb
Expand Up @@ -3,7 +3,7 @@
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"

%w{ubuntu debian}.each do |os|
supports os
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion apache2/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs and configures all aspects of apache2 using Debian style symlinks with helper definitions"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.10.1"
version "0.11.0"
recipe "apache2", "Main Apache configuration"
recipe "apache2::mod_alias", "Apache module 'alias' with config file"
recipe "apache2::mod_auth_basic", "Apache module 'auth_basic'"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion bootstrap/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Configures RubyGems-installed Chef"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.10.2"
version "0.11.0"

%w{ ubuntu debian redhat centos fedora freebsd openbsd }.each do |os|
supports os
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion chef/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs and configures chef client and server"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.16.2"
version "0.17.0"
recipe "chef::client", "Sets up a client to talk to a chef-server"
recipe "chef::server", "Configures a chef API server as a merb application"

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion couchdb/metadata.rb
Expand Up @@ -9,7 +9,7 @@
directly from source. CouchDB is available on Red Hat-based systems through
the EPEL Yum Repository.
EOH
version "0.10"
version "0.11"

depends "erlang"
supports "ubuntu", ">= 8.10" # for package in APT
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion djbdns/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs djbdns and configures DNS services"
version "0.7"
version "0.8"
recipe "djbdns", "Installs djbdns from package or source and creates users"
recipe "djbdns::axfr", "Sets up djbdns AXFR service"
recipe "djbdns::cache", "Sets up public dnscache service"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion dynomite/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs/Configures dynomite"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.1"
version "0.2"

supports "ubuntu"

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions erlang/metadata.rb
@@ -1,8 +1,8 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs erlang"
version "0.7"
description "Installs erlang, optionally install GUI tools."
version "0.8"

%w{ ubuntu debian }.each do |os|
supports os
Expand Down
1 change: 0 additions & 1 deletion erlang/recipes/default.rb
Expand Up @@ -25,4 +25,3 @@
else
package "erlang"
end

2 changes: 1 addition & 1 deletion gems/metadata.rb
@@ -1,7 +1,7 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Sets up a local gem server repository"
description "Sets up a local gem server repository or mirror"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.8"
recipe "gems::server", "Sets up a local gem server repository"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion glassfish/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs/Configures Glassfish"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.1"
version "0.2"
recipe "glassfish", "Main Glassfish configuration"

%w{redhat centos debian ubuntu}.each do |os|
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion jira/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs and configures jira"
version "0.7"
version "0.8"
recommends "mysql"

%w{ ubuntu debian }.each do |os|
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions kickstart/metadata.rb
@@ -1,9 +1,9 @@
maintainer "Opscode"
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs/Configures kickstart"
description "Creates apache2 vhost and serves a kickstart file."
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.2"
version "0.3"
depends "apache2"
supports "redhat"
supports "centos"
File renamed without changes.
2 changes: 1 addition & 1 deletion maradns/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs and configures maradns"
version "0.7"
version "0.8"

%w{ ubuntu debian }.each do |os|
supports os
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion memcached/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs memcached and provides a define to set up an instance of memcache via runit"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.9"
version "0.10"
depends "runit"
%w{ ubuntu debian }.each do |os|
supports os
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion nginx/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs and configures nginx"
version "0.10"
version "0.11"

%w{ ubuntu debian }.each do |os|
supports os
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion ntp/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs and configures ntp as a client or server"
version "0.7"
version "0.8"

%w{ ubuntu debian redhat centos fedora }.each do |os|
supports os
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion openldap/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Configures a server to be an OpenLDAP master, replication slave or client for auth"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.7"
version "0.8"
recipe "openldap::auth", "Set up openldap for user authentication"
recipe "openldap::client", "Install openldap client packages"
recipe "openldap::server", "Set up openldap to be a slapd server"
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions openvpn/metadata.rb
@@ -1,9 +1,9 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs and configures openvpn"
description "Installs and configures openvpn and includes rake tasks for managing certs"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.7"
version "0.8"

%w{ redhat centos fedora ubuntu debian }.each do |os|
supports os
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Helper library to determine whether distribution-only packages are installed"
version "0.8"
version "0.9"

%w{redhat centos}.each do |os|
supports os
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion passenger_apache2/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs passenger for Apache2"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.14"
version "0.15"

%w{ packages ruby apache2 rails }.each do |cb|
depends cb
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion passenger_enterprise/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs and configures Passenger under Ruby Enterprise Edition with Apache"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.2"
version "0.3"

%w{ ruby_enterprise nginx apache2 }.each do |cb|
depends cb
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion postfix/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs and configures postfix for client or outbound relayhost, or to do SASL auth"
version "0.7"
version "0.8"
recipe "postfix::sasl_auth", "Set up postfix to auth to a server with sasl"

%w{ubuntu debian}.each do |os|
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion postgresql/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs and configures postgresql for clients or servers"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.7"
version "0.8"
recipe "postgresql::client", "Installs postgresql client package(s)"
recipe "postgresql::server", "Installs postgresql server packages, templates"

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion quick_start/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Example cookbook for quick_start wiki document"
version "0.7"
version "0.8"

%w{
redhat fedora centos
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions rabbitmq/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "b@b3k.us"
license "Apache 2.0"
description "Installs and configures RabbitMQ server"
version "0.1"
version "0.2"
recipe "rabbitmq::cluster", "Set up RabbitMQ clustering."

%w{ubuntu debian}.each do |os|
Expand Down Expand Up @@ -58,4 +58,4 @@
attribute "rabbitmq/erlang_cookie",
:display_name => "RabbitMQ Erlang cookie",
:description => "Access cookie for clustering nodes. There is no default."


2 changes: 1 addition & 1 deletion rabbitmq_chef/metadata.rb
@@ -1,7 +1,7 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs the RabbitMQ AMQP Broker"
description "Installs the RabbitMQ AMQP Broker for use on a Chef Server."
version "0.10"

%w{ centos redhat fedora ubuntu debian }.each do |os|
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion radiant/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs radiant from Git repository"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.9"
version "0.10"

%w{ git sqlite rails apache2 mysql passenger_apache2 apache2 }.each do |cb|
depends cb
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion rails/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs rails and provides a sample template for use with passenger"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.8"
version "0.9"

%w{ ruby apache2 }.each do |cb|
depends cb
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion redmine/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs and configures redmine as a Rails app in passenger+apache2"
version "0.9"
version "0.10"

%w{ apache2 rails passenger_apache2 mysql sqlite }.each do |cb|
depends cb
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion resolver/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures /etc/resolv.conf"
version "0.7"
version "0.8"

%w{ ubuntu debian fedora centos redhat freebsd openbsd macosx }.each do |os|
supports os
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion rsyslog/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs and configures rsyslog"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.7"
version "0.8"
recipe "rsyslog::client", "Sets up a client to log to a remote rsyslog server"
recipe "rsyslog::server", "Sets up an rsyslog server"

Expand Down
7 changes: 5 additions & 2 deletions rsyslog/recipes/client.rb
Expand Up @@ -19,13 +19,16 @@

include_recipe "rsyslog"

rsyslog_server = node[:rsyslog][:server] ? node[:rsyslog][:server] : search(:node, "rsyslog_server:true").map { |n| n["fqdn"] }.first
rsyslog_server = node[:rsyslog][:server] ? node[:rsyslog][:server] : search(:node, "rsyslog_server:true", nil, 0, 1)

unless node[:rsyslog][:server]
template "/etc/rsyslog.d/remote.conf" do
source "remote.conf.erb"
backup false
variables :server => rsyslog_server, :protocol => node[:rsyslog][:protocol]
variables(
:server => rsyslog_server['fqdn'],
:protocol => node[:rsyslog][:protocol]
)
owner "root"
group "root"
mode 0644
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion ruby_enterprise/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs/Configures ruby-enterprise"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.1"
version "0.2"

depends "build-essential"
supports "ubuntu"
File renamed without changes.
2 changes: 1 addition & 1 deletion runit/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs runit and provides runit_service definition"
version "0.9"
version "0.10"

%w{ ubuntu debian }.each do |os|
supports os
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion sbuild/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Creates an sbuild host for debian packages."
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.2"
version "0.3"

depends "xfs"
depends "lvm"
File renamed without changes.
2 changes: 1 addition & 1 deletion solr/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Sets up environment for solr instances"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.7"
version "0.8"
suggests "ruby"

%w{ java capistrano runit }.each do |cb|
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tomcat6/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs and configures all aspects of tomcat6 using custom local installation"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.1"
version "0.2"
recipe "tomcat6", "Main Tomcat 6 configuration"

%w{redhat centos debian ubuntu}.each do |os|
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion varnish/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Instsalls and configures varnish"
version "0.7"
version "0.8"

%w{ubuntu debian}.each do |os|
supports os
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion wordpress/metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs/Configures wordpress"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.5"
version "0.6"
depends "php"
depends "apache2"
depends "mysql"
Expand Down

0 comments on commit ef7e6a1

Please sign in to comment.