Skip to content

Commit

Permalink
cook-131, flesh out more cookbook metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Jun 4, 2009
1 parent 9abce4e commit 84de68d
Show file tree
Hide file tree
Showing 68 changed files with 999 additions and 313 deletions.
2 changes: 1 addition & 1 deletion apache2/metadata.rb
@@ -1,7 +1,7 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures apache2"
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.7"
recipe "apache2", "Main Apache configuration"
Expand Down
4 changes: 2 additions & 2 deletions apparmor/metadata.rb
@@ -1,6 +1,6 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures apparmor"
long_description "Configures#{cookbook.name}"
description "Disables apparmor service on Ubuntu"
version "0.7"
supports "ubuntu"
11 changes: 7 additions & 4 deletions apt/metadata.rb
@@ -1,8 +1,11 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures apt"
long_description "Configures#{cookbook.name}"
description "Configures apt and apt services"
version "0.7"
recipe "apt::cacher"
recipe "apt::proxy"
recipe "apt::cacher", "Set up an APT cache"
recipe "apt::proxy", "Set up an APT proxy"

%w{ ubuntu debian }.each do |os|
supports os
end
2 changes: 1 addition & 1 deletion apt/recipes/default.rb
Expand Up @@ -28,4 +28,4 @@
mode 0644
action :create
end
end
end
7 changes: 5 additions & 2 deletions build-essential/metadata.rb
@@ -1,6 +1,9 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures build-essential"
long_description "Configures#{cookbook.name}"
description "Installs C compiler / build tools"
version "0.7"

%w{ centos ubuntu debian }.each do |os|
supports os
end
4 changes: 2 additions & 2 deletions capistrano/metadata.rb
@@ -1,6 +1,6 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures capistrano"
long_description "Configures#{cookbook.name}"
description "Installs Capistrano gem and provides a define to set up deployment for an application"
version "0.7"
recipe "capistrano", "Installs Capistrano gem"
109 changes: 82 additions & 27 deletions chef/metadata.rb
@@ -1,32 +1,87 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures chef"
description "Installs and configures chef client and server"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.7"
recipe "chef::client"
recipe "chef::server"

attribute "chef",
:display_name => "",
:description => "",
:recipes => [ "chef" ],
:default => ""

attribute "client",
:display_name => "",
:description => "",
:recipes => [ "chef" ],
:default => ""

attribute "indexer",
:display_name => "",
:description => "",
:recipes => [ "chef" ],
:default => ""

attribute "server",
:display_name => "",
:description => "",
:recipes => [ "chef" ],
:default => ""
recipe "chef::client", "Sets up a client to talk to a chef-server"
recipe "chef::server", "Configures a chef-server as a passenger application"

%w{ runit packages couchdb stompserver apache2 }.each do |cb|
depends cb
end

%w{ centos rhel ubuntu debian }.each do |os|
supports os
end

attribute "chef/path",
:display_name => "Chef Path",
:description => "Filesystem location for Chef files",
:default => "/srv/chef"

attribute "chef/run_path",
:display_name => "Chef Run Path",
:description => "Filesystem location for Chef 'run' files",
:default => "/var/run/chef"

attribute "chef/client_version",
:display_name => "Chef Client Version",
:description => "Set the version of the client gem to install",
:default => "0.6.2"

attribute "chef/client_interval",
:display_name => "Chef Client Interval ",
:description => "Poll chef client process to run on this interval in seconds",
:default => "1800"

attribute "chef/client_splay",
:display_name => "Chef Client Splay ",
:description => "Random number of seconds to add to interval",
:default => "20"

attribute "chef/client_log",
:display_name => "Chef Client Log",
:description => "Location of the chef client log",
:default => "/var/log/chef/client.log"

attribute "chef/indexer_log",
:display_name => "Chef Indexer Log ",
:description => "Location of the chef-indexer log",
:default => "/var/log/chef/indexer.log"

attribute "chef/server_version",
:display_name => "Chef Server Version",
:description => "Set the version of the server and server-slice gems to install",
:default => "0.6.2"

attribute "chef/server_log",
:display_name => "Chef Server Log",
:description => "Location of the Chef server log",
:default => "/var/log/chef/server.log"

attribute "chef/server_path",
:display_name => "Chef Server Path",
:description => "Location of the Chef Server assets",
:default => "gems_path/gems/chef-server-chef_server_version"

attribute "chef/server_hostname",
:display_name => "Chef Server Hostname",
:description => "Hostname for the chef server, for building FQDN",
:default => "hostname"

attribute "chef/server_fqdn",
:display_name => "Chef Server Fully Qualified Domain Name",
:description => "FQDN of the Chef server for Apache vhost and SSL certificate and clients",
:default => "hostname.domain"

attribute "chef/server_ssl_req",
:display_name => "Chef Server SSL Request",
:description => "Data to pass for creating the SSL certificate",
:default => "/C=US/ST=Several/L=Locality/O=Example/OU=Operations/CN=chef_server_fqdn/emailAddress=ops@domain"

attribute "chef/server_token",
:display_name => "Chef Server Validation Token",
:description => "Value of the validation_token",
:default => "randomly generated"

14 changes: 12 additions & 2 deletions couchdb/metadata.rb
@@ -1,6 +1,16 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures couchdb"
long_description "Configures#{cookbook.name}"
description "Installs CouchDB package and starts service"
long_description <<-EOH
Installs the CouchDB package if it is available from an package repository on
the node. If the package repository is not available, CouchDB needs to be
installed via some other method, either a backported package, or compiled
directly from source.
EOH
version "0.7"
supports "ubuntu", ">= 8.10" # for package in APT

%w{ rhel centos fedora }.each do |os|
supports os # requires that CouchDB package is available in yum repositories
end
6 changes: 5 additions & 1 deletion django/metadata.rb
@@ -1,6 +1,10 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures django"
description "Installs DJango"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.7"

%w{ apache2 python}.each do |cb|
depends cb
end
63 changes: 51 additions & 12 deletions djbdns/metadata.rb
@@ -1,16 +1,55 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures djbdns"
long_description "Configures#{cookbook.name}"
description "Installs djbdns and configures DNS services"
version "0.7"
recipe "djbdns::axfr"
recipe "djbdns::cache"
recipe "djbdns::internal_server"
recipe "djbdns::server"

attribute "djbdns",
:display_name => "",
:description => "",
:recipes => [ "djbdns" ],
:default => ""
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"
recipe "djbdns::internal_server", "Sets up internal TinyDNS"
recipe "djbdns::server", "Sets up external TinyDNS"

%w{ build-essential runit }.each do |cb|
depends cb
end

%w{ ubuntu debian centos rhel }.each do |os|
supports os
end

attribute "djbdns/tinydns_ipaddress",
:display_name => "DJB DNS TinyDNS IP Address",
:description => "Specify the IP address for TinyDNS",
:default => "127.0.0.1"

attribute "djbdns/tinydns_internal_ipaddress",
:display_name => "DJB DNS TinyDNS Internal IP Address",
:description => "Specify the IP address for internal TinyDNS",
:default => "127.0.0.1"

attribute "djbdns/axfrdns_ipaddress",
:display_name => "DJB DNS AXFR IP Address",
:description => "Specify the IP address for AXFR service",
:default => "127.0.0.1"

attribute "djbdns/public_dnscache_ipaddress",
:display_name => "DJB DNS Public DNS Cache IP Address",
:description => "Specify the IP address for the public dnscache",
:default => "ipaddress"

attribute "djbdns/public_dnscache_allowed_networks",
:display_name => "DJB DNS Public DNS Cache Allowed Networks",
:description => "Networks allowed to query the public dnscache",
:type => "array",
:default => ["ipaddress.split('.')[0,2].join('.')"]

attribute "djbdns/tinydns_internal_resolved_domain",
:display_name => "DJB DNS TinyDNS Internal Resolved Domain",
:description => "Internal domain TinyDNS is resolver"
:default => "domain"

attribute "djbdns/bin_dir",
:display_name => "DJB DNS Binaries Directory",
:description => "Location of the djbdns binaries",
:default => "/usr/local/bin"

4 changes: 2 additions & 2 deletions drbd/metadata.rb
@@ -1,6 +1,6 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures drbd"
long_description "Configures#{cookbook.name}"
description "Installs but does not configure drbd"
version "0.7"
depends "lvm"
17 changes: 4 additions & 13 deletions ec2/metadata.rb
@@ -1,18 +1,9 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures ec2"
long_description "Configures#{cookbook.name}"
description "Manage EC2 metadata as attributes"
version "0.7"

attribute "ec2_metadata",
:display_name => "",
:description => "",
:recipes => [ "ec2" ],
:default => ""

attribute "ec2_recipe_options",
:display_name => "",
:description => "",
:recipes => [ "ec2" ],
:default => ""
attribute "ec2_metadata",
:display_name => "EC2 Metadata",
:description => "Retrieve EC2 instance metadata",
3 changes: 1 addition & 2 deletions emacs/metadata.rb
@@ -1,6 +1,5 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures emacs"
long_description "Configures#{cookbook.name}"
description "Installs emacs"
version "0.7"
3 changes: 1 addition & 2 deletions erlang/metadata.rb
@@ -1,6 +1,5 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures erlang"
long_description "Configures#{cookbook.name}"
description "Installs erlang"
version "0.7"
3 changes: 1 addition & 2 deletions fail2ban/metadata.rb
@@ -1,6 +1,5 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures fail2ban"
long_description "Configures#{cookbook.name}"
description "Installs and configures fail2ban"
version "0.7"
31 changes: 24 additions & 7 deletions gems/metadata.rb
@@ -1,13 +1,30 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures gems"
description "Sets up a local gem server repository"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.7"
recipe "gems::server"
recipe "gems::server", "Sets up a local gem server repository"
depends "apache2"
suggests "ruby" # :-)

attribute "server",
:display_name => "",
:description => "",
:recipes => [ "gems" ],
:default => ""
attribute "gem_server",
:display_name => "Gem Server",
:description => "Hash of Gem Server attributes",
:type => "hash"

attribute "gem_server/virtual_host_name",
:display_name => "Gem Server Virtual Hostname",
:description => "Apache ServerName for the virtual host",
:default => "gems.domain"

attribute "gem_server/virtual_host_alias",
:display_name => "Gem Server Virtual Host Aliases",
:description => "Array of Apache ServerAlias'es",
:type => "array",
:default => "gems"

attribute "gem_server/directory",
:display_name => "Gem Server Directory",
:description => "Filesystem location of where the gems repository is served from",
:default => "/srv/gems"
8 changes: 6 additions & 2 deletions git/metadata.rb
@@ -1,7 +1,11 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures git"
description "Installs git and/or sets up a Git server daemon"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.7"
recipe "git::server"
recipe "git::server", "Sets up a runit_service for git daemon"

%w{ apache2 runit }.each do |cb|
depends cb
end
6 changes: 5 additions & 1 deletion god/metadata.rb
@@ -1,6 +1,10 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures god"
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"

%w{ ruby runit }.each do |cb|
depends cb
end

0 comments on commit 84de68d

Please sign in to comment.