├── chef ├── recipes │ └── default.rb └── templates │ └── default │ ├── sv-chef-solr-log-run.erb │ ├── sv-chef-client-log-run.erb │ ├── sv-chef-server-log-run.erb │ ├── sv-chef-server-webui-log-run.erb │ ├── sv-chef-solr-indexer-log-run.erb │ ├── sv-chef-solr-run.erb │ ├── sv-chef-solr-indexer-run.erb │ ├── sv-chef-client-run.erb │ ├── sv-chef-server-run.erb │ ├── sv-chef-server-webui-run.erb │ ├── solr.rb.erb │ ├── chef-solr.pill.erb │ ├── chef-solr-indexer.pill.erb │ ├── client.rb.erb │ ├── chef-client.pill.erb │ └── chef-server.pill.erb ├── packages ├── recipes │ └── default.rb ├── attributes │ └── default.rb ├── libraries │ └── packages.rb └── metadata.rb ├── runit └── files │ ├── default │ ├── runsvdir │ └── runit.seed │ ├── ubuntu-6.10 │ └── runsvdir │ ├── ubuntu-7.04 │ └── runsvdir │ ├── ubuntu-7.10 │ └── runsvdir │ └── ubuntu-8.04 │ └── runsvdir ├── solr ├── files │ └── default │ │ ├── id_rsa │ │ ├── id_rsa.pub │ │ └── authorized_keys └── templates │ └── default │ ├── sv-solr-log-run.erb │ └── sv-solr-run.erb ├── tomcat6 ├── definitions │ └── tomcat_app.rb ├── templates │ └── default │ │ └── tomcat-users.xml.erb ├── metadata.rb └── files │ └── centos │ └── rightscale.repo ├── djbdns └── templates │ └── default │ ├── dnscache-servers.erb │ ├── sv-axfrdns-log-run.erb │ ├── sv-tinydns-log-run.erb │ ├── sv-public-dnscache-log-run.erb │ ├── sv-tinydns-internal-log-run.erb │ ├── sv-tinydns-run.erb │ ├── sv-tinydns-internal-run.erb │ ├── tinydns-data.erb │ ├── sv-axfrdns-run.erb │ ├── sv-public-dnscache-run.erb │ └── tinydns-internal-data.erb ├── reprepro ├── templates │ └── default │ │ ├── pgp_key.erb │ │ ├── pulls.erb │ │ ├── incoming.erb │ │ ├── distributions.erb │ │ └── apt_repo.conf.erb └── metadata.rb ├── .gitignore ├── apparmor ├── attributes │ └── apparmor.rb ├── metadata.rb ├── metadata.json └── README.md ├── erlang ├── attributes │ └── default.rb ├── metadata.rb └── metadata.json ├── maradns ├── attributes │ └── default.rb └── metadata.rb ├── cloudkick ├── files │ └── default │ │ └── plugins │ │ └── README ├── templates │ └── default │ │ ├── cloudkick.com.list.erb │ │ └── cloudkick.conf.erb └── metadata.rb ├── gems ├── files │ └── default │ │ └── packages │ │ └── README ├── attributes │ ├── server.rb │ └── mirror.rb └── recipes │ └── default.rb ├── iptables ├── templates │ └── default │ │ ├── all_icmp.erb │ │ └── all_established.erb └── metadata.rb ├── munin ├── files │ └── default │ │ ├── plugins │ │ └── README │ │ ├── htpasswd.users │ │ └── munin-cron ├── templates │ └── default │ │ └── munin.conf.erb ├── metadata.rb └── recipes │ └── default.rb ├── god ├── templates │ └── default │ │ ├── sv-god-log-run.erb │ │ ├── sv-god-run.erb │ │ └── master.god.erb └── metadata.rb ├── openvpn ├── files │ └── default │ │ ├── keys │ │ └── README │ │ └── easy-rsa │ │ ├── README.gz │ │ ├── openssl-0.9.6.cnf.gz │ │ ├── build-ca │ │ ├── build-key │ │ ├── build-key-pass │ │ ├── build-req-pass │ │ ├── sign-req │ │ ├── build-inter │ │ ├── build-req │ │ ├── whichopensslcnf │ │ ├── build-key-pkcs12 │ │ ├── build-key-server │ │ ├── list-crl │ │ ├── build-dh │ │ ├── Makefile │ │ └── clean-all └── templates │ └── default │ └── server.up.sh.erb ├── git ├── templates │ └── default │ │ ├── sv-git-daemon-log-run.erb │ │ └── sv-git-daemon-run.erb └── metadata.rb ├── nginx └── templates │ └── default │ ├── nginx.sysconfig.erb │ ├── sv-nginx-log-run.erb │ ├── sv-nginx-run.erb │ └── default-site.erb ├── ohai ├── files │ └── default │ │ └── plugins │ │ └── README └── metadata.rb ├── quick_start ├── attributes │ └── default.rb ├── templates │ └── default │ │ └── deep_thought.txt.erb └── metadata.rb ├── rabbitmq ├── templates │ └── default │ │ ├── doterlang.cookie.erb │ │ ├── rabbitmq_cluster.config.erb │ │ └── rabbitmq.config.erb ├── README └── attributes │ └── default.rb ├── activemq ├── templates │ └── default │ │ ├── sv-activemq-log-run.erb │ │ └── sv-activemq-run.erb └── metadata.rb ├── bootstrap ├── templates │ └── default │ │ ├── sv-chef-solr-log-run.erb │ │ ├── sv-chef-client-log-run.erb │ │ ├── sv-chef-server-log-run.erb │ │ ├── sv-chef-server-webui-log-run.erb │ │ ├── sv-chef-solr-indexer-log-run.erb │ │ ├── sv-chef-solr-run.erb │ │ ├── sv-chef-solr-indexer-run.erb │ │ ├── sv-chef-server-run.erb │ │ ├── sv-chef-server-webui-run.erb │ │ └── sv-chef-client-run.erb └── recipes │ └── default.rb ├── dynomite ├── templates │ └── default │ │ ├── sv-dynomite-log-run.erb │ │ └── sv-dynomite-run.erb └── metadata.rb ├── memcached ├── templates │ └── default │ │ ├── sv-memcached-log-run.erb │ │ ├── memcached.default.erb │ │ └── sv-memcached-run.erb └── attributes │ └── default.rb ├── openssh ├── templates │ └── default │ │ └── port_ssh.erb └── metadata.rb ├── redmine ├── templates │ └── default │ │ ├── sv-redmine-log-run.erb │ │ ├── port_redmine.erb │ │ ├── sv-redmine-run.erb │ │ ├── redmine.conf.erb │ │ └── database.yml.erb └── metadata.rb ├── application └── templates │ └── default │ ├── sv-unicorn-log-run.erb │ ├── deploy-ssh-wrapper.erb │ ├── sv-unicorn-run.erb │ ├── memcached.yml.erb │ ├── database.yml.erb │ ├── myproj.conf.erb │ └── rails_nginx_passenger.conf.erb ├── jira └── templates │ └── default │ ├── sv-jira-log-run.erb │ └── sv-jira-run.erb ├── teamspeak3 ├── templates │ └── default │ │ ├── sv-teamspeak3-log-run.erb │ │ └── sv-teamspeak3-run.erb └── metadata.rb ├── couchdb └── templates │ └── default │ └── port_couchdb.erb ├── stompserver ├── templates │ └── default │ │ ├── sv-stompserver-log-run.erb │ │ ├── port_stompserver.erb │ │ └── sv-stompserver-run.erb └── metadata.rb ├── users ├── templates │ └── default │ │ └── authorized_keys.erb └── metadata.rb ├── glassfish ├── README.rdoc └── metadata.rb ├── logwatch ├── README.rdoc ├── metadata.rb └── recipes │ └── default.rb ├── apache2 ├── templates │ └── default │ │ ├── port_apache.erb │ │ ├── mods │ │ ├── authopenid.load.erb │ │ ├── README │ │ ├── dir.conf.erb │ │ ├── fcgid.conf.erb │ │ ├── status.conf.erb │ │ ├── proxy.conf.erb │ │ └── negotiation.conf.erb │ │ ├── ports.conf.erb │ │ ├── mod_auth_openid.rb.erb │ │ ├── charset.erb │ │ ├── apache2.god.erb │ │ └── a2dismod.erb └── recipes │ ├── mod_cgi.rb │ ├── mod_dav.rb │ ├── mod_env.rb │ ├── mod_ldap.rb │ ├── mod_expires.rb │ ├── mod_headers.rb │ ├── mod_proxy_ajp.rb │ ├── mod_rewrite.rb │ ├── mod_auth_basic.rb │ ├── mod_auth_digest.rb │ ├── mod_authn_file.rb │ ├── mod_authnz_ldap.rb │ ├── mod_authz_host.rb │ ├── mod_authz_user.rb │ ├── mod_proxy_balancer.rb │ ├── mod_proxy_connect.rb │ ├── mod_proxy_http.rb │ ├── mod_authz_default.rb │ ├── mod_dir.rb │ ├── mod_mime.rb │ ├── mod_alias.rb │ ├── mod_authz_groupfile.rb │ ├── mod_proxy.rb │ ├── mod_status.rb │ ├── mod_deflate.rb │ ├── mod_setenvif.rb │ ├── mod_autoindex.rb │ ├── mod_dav_svn.rb │ └── mod_negotiation.rb ├── resolver ├── attributes │ └── default.rb └── templates │ └── default │ └── resolv.conf.erb ├── database ├── templates │ └── default │ │ ├── chef-solo-database-snapshot.json.erb │ │ ├── ebs-backup-cron.erb │ │ ├── aws_config.erb │ │ ├── ebs-db-backup.sh.erb │ │ ├── app_grants.sql.erb │ │ ├── chef-solo-database-snapshot.rb.erb │ │ ├── ebs-db-restore.sh.erb │ │ └── chef-solo-database-snapshot.cron.erb ├── metadata.rb └── recipes │ └── default.rb ├── nagios ├── files │ └── default │ │ ├── icons │ │ ├── centos.gd2 │ │ ├── centos.gif │ │ ├── centos.jpg │ │ ├── centos.png │ │ ├── ubuntu.gd2 │ │ ├── ubuntu.gif │ │ ├── ubuntu.jpg │ │ ├── ubuntu.png │ │ └── munin-head.gif │ │ └── plugins │ │ └── nagios_helper.rb ├── templates │ └── default │ │ ├── htpasswd.users.erb │ │ ├── hosts.cfg.erb │ │ ├── hostgroups.cfg.erb │ │ └── timeperiods.cfg.erb └── metadata.rb ├── passenger_enterprise ├── README.rdoc ├── templates │ └── default │ │ ├── passenger.load.erb │ │ ├── passenger.conf.erb │ │ └── passenger_nginx.conf.erb └── metadata.rb ├── sbuild ├── templates │ └── default │ │ ├── schroot_update.erb │ │ ├── sbuildrc.erb │ │ └── schroot.erb ├── files │ └── default │ │ └── schroot_update.sh └── metadata.rb ├── passenger_apache2 ├── templates │ └── default │ │ ├── passenger.load.erb │ │ └── passenger.conf.erb └── attributes │ └── default.rb ├── mysql ├── templates │ ├── default │ │ ├── port_mysql.erb │ │ └── debian.cnf.erb │ ├── centos │ │ └── my.cnf.erb │ └── redhat │ │ └── my.cnf.erb ├── resources │ └── database.rb ├── libraries │ └── database.rb └── recipes │ └── default.rb ├── radiant ├── libraries │ └── radiant.rb └── templates │ └── default │ ├── database.yml.erb │ └── radiant.conf.erb ├── rsyslog ├── templates │ └── default │ │ ├── rsyslog_gz.erb │ │ └── remote.conf.erb └── files │ ├── default │ └── rsyslog.default │ ├── ubuntu-10.04 │ └── rsyslog.default │ └── ubuntu-9.10 │ └── rsyslog.default ├── rails └── attributes │ └── default.rb ├── postfix ├── templates │ └── default │ │ └── sasl_passwd.erb └── attributes │ └── default.rb ├── riak └── templates │ └── default │ ├── vm.args.erb │ └── iptables.erb ├── haproxy ├── templates │ └── default │ │ ├── haproxy-default.erb │ │ └── haproxy.cfg.erb └── metadata.rb ├── varnish ├── attributes │ └── default.rb ├── templates │ └── default │ │ └── default.vcl.erb ├── metadata.rb └── metadata.json ├── teamspeak ├── templates │ └── default │ │ ├── port_teamspeak.erb │ │ └── server.ini.erb ├── metadata.rb └── metadata.json ├── hadoop ├── templates │ └── default │ │ └── cloudera.list.erb ├── metadata.rb └── recipes │ ├── pig.rb │ ├── doc.rb │ └── hive.rb ├── java ├── templates │ └── ubuntu │ │ └── canonical.com.list.erb ├── metadata.rb └── files │ └── default │ └── java.seed ├── rails_enterprise └── attributes │ └── default.rb ├── kickstart ├── attributes │ └── default.rb ├── metadata.rb ├── recipes │ └── default.rb └── templates │ └── default │ └── kickstart.conf.erb ├── logrotate ├── templates │ └── default │ │ └── logrotate.erb ├── metadata.rb └── recipes │ └── default.rb ├── wordpress └── templates │ └── default │ └── grants.sql.erb ├── cron ├── metadata.rb └── recipes │ └── default.rb ├── rush ├── metadata.rb └── recipes │ └── default.rb ├── tmux ├── metadata.rb └── recipes │ └── default.rb ├── subversion ├── templates │ └── default │ │ └── subversion.conf.erb ├── metadata.rb └── recipes │ └── default.rb ├── vim ├── metadata.rb ├── attributes │ └── default.rb └── recipes │ └── default.rb ├── openldap ├── files │ └── default │ │ ├── common-auth │ │ ├── common-account │ │ ├── common-password │ │ ├── common-session │ │ └── nsswitch.conf ├── templates │ └── default │ │ ├── ldap-ldap.conf.erb │ │ ├── login_access.conf.erb │ │ ├── libnss-ldap.conf.erb │ │ └── ldap.conf.erb └── recipes │ └── default.rb ├── trac ├── metadata.rb └── metadata.json ├── zsh ├── metadata.rb └── metadata.json ├── ntp ├── attributes │ └── default.rb └── templates │ └── default │ └── ntp.conf.erb ├── pacman ├── metadata.rb └── recipes │ └── default.rb ├── aws ├── resources │ ├── elastic_ip.rb │ └── ebs_volume.rb └── metadata.rb ├── sqlite ├── metadata.rb └── metadata.json ├── emacs ├── metadata.rb └── recipes │ └── default.rb ├── mercurial ├── metadata.rb ├── metadata.json └── recipes │ └── default.rb ├── rsync ├── metadata.rb └── recipes │ └── default.rb ├── apt ├── files │ └── default │ │ └── apt-cacher └── metadata.rb ├── lvm ├── metadata.rb └── recipes │ └── default.rb ├── man └── metadata.rb ├── screen ├── metadata.rb └── recipes │ └── default.rb ├── ubuntu ├── metadata.rb ├── templates │ └── default │ │ └── sources.list.erb └── metadata.json ├── drbd ├── metadata.rb └── metadata.json ├── nanite ├── metadata.rb └── metadata.json ├── xml └── metadata.rb ├── zlib └── metadata.rb ├── boost ├── metadata.rb └── recipes │ └── default.rb ├── fail2ban ├── metadata.rb └── metadata.json ├── openssl ├── metadata.rb └── recipes │ └── default.rb ├── python ├── metadata.rb └── metadata.json ├── rubygems ├── metadata.rb └── metadata.json ├── ssh_known_hosts ├── templates │ └── default │ │ └── known_hosts.erb ├── metadata.rb └── recipes │ └── default.rb ├── nscd └── metadata.rb ├── unicorn ├── metadata.rb └── README.rdoc ├── keepalived └── metadata.rb ├── heartbeat └── metadata.rb ├── bluepill └── metadata.rb ├── xfs ├── metadata.rb └── recipes │ └── default.rb ├── capistrano ├── metadata.rb └── recipes │ └── default.rb ├── maven └── metadata.rb ├── java_sun └── metadata.rb ├── jpackage ├── metadata.rb └── attributes │ └── default.rb ├── thrift └── metadata.rb ├── rabbitmq_chef └── metadata.rb ├── ruby_enterprise └── metadata.rb ├── ant └── metadata.rb ├── ucspi-tcp └── metadata.rb ├── CONTRIBUTING ├── django ├── metadata.rb └── attributes │ └── default.rb ├── ec2 ├── metadata.rb └── recipes │ └── default.rb ├── instiki ├── metadata.rb └── templates │ └── default │ └── instiki.conf.erb ├── imagemagick └── metadata.rb ├── jetty └── metadata.rb ├── perl └── metadata.rb ├── daemontools └── metadata.rb ├── sudo └── templates │ └── default │ └── sudoers.erb ├── dynect └── metadata.rb ├── samba ├── metadata.rb └── recipes │ └── default.rb ├── ruby └── recipes │ ├── 1.8.rb │ ├── 1.9.rb │ ├── 1.9.1.rb │ ├── default.rb │ └── symlinks.rb ├── README ├── php └── recipes │ └── default.rb └── postgresql └── recipes └── default.rb /chef/recipes/default.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/recipes/default.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /runit/files/default/runsvdir: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /solr/files/default/id_rsa: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /solr/files/default/id_rsa.pub: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /solr/files/default/authorized_keys: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tomcat6/definitions/tomcat_app.rb: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /djbdns/templates/default/dnscache-servers.erb: -------------------------------------------------------------------------------- 1 | 127.0.0.1 -------------------------------------------------------------------------------- /reprepro/templates/default/pgp_key.erb: -------------------------------------------------------------------------------- 1 | <%= @pgp_public %> 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | tmp/* 2 | .rake_test_cache 3 | *.swp 4 | *.swo 5 | *~ 6 | -------------------------------------------------------------------------------- /apparmor/attributes/apparmor.rb: -------------------------------------------------------------------------------- 1 | default[:apparmor][:disable] = true 2 | -------------------------------------------------------------------------------- /erlang/attributes/default.rb: -------------------------------------------------------------------------------- 1 | default[:erlang][:gui_tools] = false 2 | -------------------------------------------------------------------------------- /maradns/attributes/default.rb: -------------------------------------------------------------------------------- 1 | default[:maradns][:recursive_acl] = "" 2 | -------------------------------------------------------------------------------- /cloudkick/files/default/plugins/README: -------------------------------------------------------------------------------- 1 | This is where Cloudkick plugins go! 2 | -------------------------------------------------------------------------------- /gems/files/default/packages/README: -------------------------------------------------------------------------------- 1 | Put your local gems in this directory. 2 | -------------------------------------------------------------------------------- /iptables/templates/default/all_icmp.erb: -------------------------------------------------------------------------------- 1 | # ICMP 2 | -A FWR -p icmp -j ACCEPT -------------------------------------------------------------------------------- /munin/files/default/plugins/README: -------------------------------------------------------------------------------- 1 | Put the custom munin plugin files here. 2 | -------------------------------------------------------------------------------- /god/templates/default/sv-god-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /openvpn/files/default/keys/README: -------------------------------------------------------------------------------- 1 | Directory for keys created by openvpn rake task. -------------------------------------------------------------------------------- /runit/files/default/runit.seed: -------------------------------------------------------------------------------- 1 | runit runit/signalinit boolean true 2 | -------------------------------------------------------------------------------- /solr/templates/default/sv-solr-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /chef/templates/default/sv-chef-solr-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /git/templates/default/sv-git-daemon-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /nginx/templates/default/nginx.sysconfig.erb: -------------------------------------------------------------------------------- 1 | NGINX_GLOBAL=<%= node[:nginx][:global] %> -------------------------------------------------------------------------------- /nginx/templates/default/sv-nginx-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /ohai/files/default/plugins/README: -------------------------------------------------------------------------------- 1 | This directory contains custom plugins for Ohai. 2 | -------------------------------------------------------------------------------- /quick_start/attributes/default.rb: -------------------------------------------------------------------------------- 1 | deep_thought "If a tree falls in the forest..." 2 | -------------------------------------------------------------------------------- /rabbitmq/templates/default/doterlang.cookie.erb: -------------------------------------------------------------------------------- 1 | <%= node[:rabbitmq][:erlang_cookie] %> -------------------------------------------------------------------------------- /activemq/templates/default/sv-activemq-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /bootstrap/templates/default/sv-chef-solr-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /chef/templates/default/sv-chef-client-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /chef/templates/default/sv-chef-server-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /dynomite/templates/default/sv-dynomite-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /memcached/templates/default/sv-memcached-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /openssh/templates/default/port_ssh.erb: -------------------------------------------------------------------------------- 1 | # SSH 2 | -A FWR -p tcp -m tcp --dport 22 -j ACCEPT -------------------------------------------------------------------------------- /redmine/templates/default/sv-redmine-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /application/templates/default/sv-unicorn-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | 4 | -------------------------------------------------------------------------------- /bootstrap/templates/default/sv-chef-client-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /bootstrap/templates/default/sv-chef-server-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /chef/templates/default/sv-chef-server-webui-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /chef/templates/default/sv-chef-solr-indexer-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /jira/templates/default/sv-jira-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | umask 0027 3 | exec svlogd -tt ./main 4 | -------------------------------------------------------------------------------- /quick_start/templates/default/deep_thought.txt.erb: -------------------------------------------------------------------------------- 1 | Todays deep thought: <%= @deep_thought %> 2 | -------------------------------------------------------------------------------- /teamspeak3/templates/default/sv-teamspeak3-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /bootstrap/templates/default/sv-chef-server-webui-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /bootstrap/templates/default/sv-chef-solr-indexer-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /couchdb/templates/default/port_couchdb.erb: -------------------------------------------------------------------------------- 1 | # CouchDB 2 | -A FWR -p tcp -m tcp --dport 5984 -j ACCEPT -------------------------------------------------------------------------------- /redmine/templates/default/port_redmine.erb: -------------------------------------------------------------------------------- 1 | # Redmine 2 | -A FWR -p tcp -m tcp --dport 3000 -j ACCEPT -------------------------------------------------------------------------------- /stompserver/templates/default/sv-stompserver-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | 4 | -------------------------------------------------------------------------------- /users/templates/default/authorized_keys.erb: -------------------------------------------------------------------------------- 1 | # Dropped off by Chef, thanks! 2 | <%= @ssh_keys %> 3 | -------------------------------------------------------------------------------- /djbdns/templates/default/sv-axfrdns-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec chpst -U dnslog svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /djbdns/templates/default/sv-tinydns-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec chpst -U dnslog svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /djbdns/templates/default/sv-public-dnscache-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec chpst -U dnslog svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /djbdns/templates/default/sv-tinydns-internal-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec chpst -U dnslog svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /glassfish/README.rdoc: -------------------------------------------------------------------------------- 1 | = DESCRIPTION: 2 | 3 | = REQUIREMENTS: 4 | 5 | = ATTRIBUTES: 6 | 7 | = USAGE: 8 | 9 | -------------------------------------------------------------------------------- /logwatch/README.rdoc: -------------------------------------------------------------------------------- 1 | = DESCRIPTION: 2 | 3 | = REQUIREMENTS: 4 | 5 | = ATTRIBUTES: 6 | 7 | = USAGE: 8 | 9 | -------------------------------------------------------------------------------- /stompserver/templates/default/port_stompserver.erb: -------------------------------------------------------------------------------- 1 | # Stompserver 2 | -A FWR -p tcp -m tcp --dport 61613 -j ACCEPT -------------------------------------------------------------------------------- /apache2/templates/default/port_apache.erb: -------------------------------------------------------------------------------- 1 | # Port <%= @port %> 2 | -A FWR -p tcp -m tcp --dport <%= @port %> -j ACCEPT -------------------------------------------------------------------------------- /memcached/templates/default/memcached.default.erb: -------------------------------------------------------------------------------- 1 | # Set this to yes to enable memcached. 2 | ENABLE_MEMCACHED=yes 3 | -------------------------------------------------------------------------------- /resolver/attributes/default.rb: -------------------------------------------------------------------------------- 1 | default[:resolver][:search] = domain 2 | default[:resolver][:nameservers] = [ "" ] 3 | -------------------------------------------------------------------------------- /database/templates/default/chef-solo-database-snapshot.json.erb: -------------------------------------------------------------------------------- 1 | <%= require 'json'; JSON.pretty_generate(@output) %> 2 | -------------------------------------------------------------------------------- /nagios/files/default/icons/centos.gd2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/cookbooks/master/nagios/files/default/icons/centos.gd2 -------------------------------------------------------------------------------- /nagios/files/default/icons/centos.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/cookbooks/master/nagios/files/default/icons/centos.gif -------------------------------------------------------------------------------- /nagios/files/default/icons/centos.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/cookbooks/master/nagios/files/default/icons/centos.jpg -------------------------------------------------------------------------------- /nagios/files/default/icons/centos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/cookbooks/master/nagios/files/default/icons/centos.png -------------------------------------------------------------------------------- /nagios/files/default/icons/ubuntu.gd2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/cookbooks/master/nagios/files/default/icons/ubuntu.gd2 -------------------------------------------------------------------------------- /nagios/files/default/icons/ubuntu.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/cookbooks/master/nagios/files/default/icons/ubuntu.gif -------------------------------------------------------------------------------- /nagios/files/default/icons/ubuntu.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/cookbooks/master/nagios/files/default/icons/ubuntu.jpg -------------------------------------------------------------------------------- /nagios/files/default/icons/ubuntu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/cookbooks/master/nagios/files/default/icons/ubuntu.png -------------------------------------------------------------------------------- /passenger_enterprise/README.rdoc: -------------------------------------------------------------------------------- 1 | = DESCRIPTION: 2 | 3 | = REQUIREMENTS: 4 | 5 | = ATTRIBUTES: 6 | 7 | = USAGE: 8 | 9 | -------------------------------------------------------------------------------- /sbuild/templates/default/schroot_update.erb: -------------------------------------------------------------------------------- 1 | # Chef Name: schroot_update 2 | 0 2 * * * /usr/local/bin/schroot_update.sh 3 | -------------------------------------------------------------------------------- /apache2/templates/default/mods/authopenid.load.erb: -------------------------------------------------------------------------------- 1 | LoadModule authopenid_module /usr/lib/apache2/modules/mod_auth_openid.so 2 | -------------------------------------------------------------------------------- /database/templates/default/ebs-backup-cron.erb: -------------------------------------------------------------------------------- 1 | # Chef Name: ebs_db_backup 2 | 15 0 * * * root /usr/local/bin/db-backup.sh 3 | -------------------------------------------------------------------------------- /passenger_apache2/templates/default/passenger.load.erb: -------------------------------------------------------------------------------- 1 | LoadModule passenger_module <%= node[:passenger][:module_path] %> 2 | -------------------------------------------------------------------------------- /cloudkick/templates/default/cloudkick.com.list.erb: -------------------------------------------------------------------------------- 1 | deb http://packages.cloudkick.com/ubuntu <%= node[:lsb][:codename] %> main 2 | -------------------------------------------------------------------------------- /nagios/files/default/icons/munin-head.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/cookbooks/master/nagios/files/default/icons/munin-head.gif -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/README.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/cookbooks/master/openvpn/files/default/easy-rsa/README.gz -------------------------------------------------------------------------------- /passenger_enterprise/templates/default/passenger.load.erb: -------------------------------------------------------------------------------- 1 | LoadModule passenger_module <%= node[:passenger_enterprise][:module_path] %> 2 | -------------------------------------------------------------------------------- /mysql/templates/default/port_mysql.erb: -------------------------------------------------------------------------------- 1 | # MySQL 2 | -A FWR -p tcp -m tcp --dport 3306 -j ACCEPT 3 | -A FWR -p udp -m udp --dport 3306 -j ACCEPT -------------------------------------------------------------------------------- /reprepro/templates/default/pulls.erb: -------------------------------------------------------------------------------- 1 | Name: <%= @pulls["name"] %> 2 | From: <%= @pulls["from"] %> 3 | Components: <%= @pulls["component"] %> 4 | -------------------------------------------------------------------------------- /iptables/templates/default/all_established.erb: -------------------------------------------------------------------------------- 1 | # Any established connection is money 2 | -A FWR -m state --state RELATED,ESTABLISHED -j ACCEPT 3 | -------------------------------------------------------------------------------- /radiant/libraries/radiant.rb: -------------------------------------------------------------------------------- 1 | class Chef 2 | class Recipe 3 | def radiant_edge? 4 | node[:radiant][:edge] 5 | end 6 | end 7 | end -------------------------------------------------------------------------------- /reprepro/templates/default/incoming.erb: -------------------------------------------------------------------------------- 1 | Name: default 2 | IncomingDir: <%= @incoming %> 3 | TempDir: /tmp 4 | Allow: <%= @codenames.join(" ") %> 5 | -------------------------------------------------------------------------------- /activemq/templates/default/sv-activemq-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec /opt/apache-activemq-<%= node[:activemq][:version] %>/bin/activemq 4 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/openssl-0.9.6.cnf.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/b/cookbooks/master/openvpn/files/default/easy-rsa/openssl-0.9.6.cnf.gz -------------------------------------------------------------------------------- /djbdns/templates/default/sv-tinydns-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec chpst -U tinydns -e ./env -d300000 <%= node[:djbdns][:bin_dir] %>/tinydns 4 | -------------------------------------------------------------------------------- /redmine/templates/default/sv-redmine-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec chpst -u <%= node[:apache_user] %> /srv/redmine/script/server -e production 4 | -------------------------------------------------------------------------------- /rsyslog/templates/default/rsyslog_gz.erb: -------------------------------------------------------------------------------- 1 | # Chef Name: rsyslog_gz 2 | 0 4 * * * find <%= @log_dir %>/$(date +\%Y) -type f -mtime +1 -exec gzip -q {} \; 3 | -------------------------------------------------------------------------------- /database/templates/default/aws_config.erb: -------------------------------------------------------------------------------- 1 | AWS_ACCESS_KEY_ID=<%= @access_key %> 2 | AWS_SECRET_ACCESS_KEY=<%= @secret_key %> 3 | BUCKET_BASE_NAME=db-backups 4 | -------------------------------------------------------------------------------- /djbdns/templates/default/sv-tinydns-internal-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec chpst -U tinydns -e ./env -d300000 <%= node[:djbdns][:bin_dir] %>/tinydns 4 | -------------------------------------------------------------------------------- /munin/files/default/htpasswd.users: -------------------------------------------------------------------------------- 1 | # Generated by Chef. 2 | # Included as a placeholder, but not used in the recipes, we use OpenID 3 | # based login instead. 4 | -------------------------------------------------------------------------------- /nginx/templates/default/sv-nginx-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec <%= node[:nginx][:install_path] %>/sbin/nginx -c <%= node[:nginx][:dir] %>/nginx.conf 4 | -------------------------------------------------------------------------------- /rails/attributes/default.rb: -------------------------------------------------------------------------------- 1 | default[:rails][:version] = false 2 | default[:rails][:environment] = "production" 3 | default[:rails][:max_pool_size] = 4 4 | -------------------------------------------------------------------------------- /passenger_apache2/templates/default/passenger.conf.erb: -------------------------------------------------------------------------------- 1 | PassengerRoot <%= node[:passenger][:root_path] %> 2 | PassengerRuby <%= node[:languages][:ruby][:ruby_bin] %> 3 | -------------------------------------------------------------------------------- /postfix/templates/default/sasl_passwd.erb: -------------------------------------------------------------------------------- 1 | <%= node[:postfix][:relayhost] %> <%= node[:postfix][:smtp_sasl_user_name] %>:<%= node[:postfix][:smtp_sasl_passwd] %> 2 | -------------------------------------------------------------------------------- /git/templates/default/sv-git-daemon-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec /usr/bin/git daemon --export-all --user=nobody --group=daemon --base-path=/srv/git /srv/git 4 | -------------------------------------------------------------------------------- /god/templates/default/sv-god-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | 4 | trap 'kill -HUP %1' 1 2 13 15 5 | 6 | /usr/bin/god -D -c /etc/god/master.god --no-syslog & wait 7 | -------------------------------------------------------------------------------- /nagios/templates/default/htpasswd.users.erb: -------------------------------------------------------------------------------- 1 | # Generated by Chef. 2 | # Included as a placeholder, but not used in the recipes, we use OpenID 3 | # based login instead. 4 | -------------------------------------------------------------------------------- /packages/attributes/default.rb: -------------------------------------------------------------------------------- 1 | # Toggle for recipes to determine if we should rely on distribution packages 2 | # or gems. 3 | default[:packages][:dist_only] = false 4 | -------------------------------------------------------------------------------- /radiant/templates/default/database.yml.erb: -------------------------------------------------------------------------------- 1 | production: 2 | adapter: sqlite3 3 | database: /srv/<%= @appname %>/shared/sqlite/production.sqlite3 4 | timeout: 5000 5 | -------------------------------------------------------------------------------- /apache2/templates/default/mods/README: -------------------------------------------------------------------------------- 1 | These configs are taken from a Debian apache2.2-common 2.2.11-3 install. They 2 | work on CentOS 5.3 with a few conditions using erb. 3 | -------------------------------------------------------------------------------- /djbdns/templates/default/tinydns-data.erb: -------------------------------------------------------------------------------- 1 | # Auto-generated by chef for <%= node[:fqdn] %> 2 | # 3 | 4 | .<%= node[:domain] %>:<%= node[:djbdns][:tinydns_ipaddress] %>:a:259200 -------------------------------------------------------------------------------- /riak/templates/default/vm.args.erb: -------------------------------------------------------------------------------- 1 | <%= @vm_args.inject([]){|arr, (k, v)| arr << "#{@arg_map[k]} #{v}" }.join(" \n") %> 2 | <%= @env_vars.map{|v| "-env #{v}" }.join(" \n") %> 3 | -------------------------------------------------------------------------------- /rsyslog/templates/default/remote.conf.erb: -------------------------------------------------------------------------------- 1 | <% case @protocol -%> 2 | <% when "tcp" -%> 3 | *.* @@<%= @server %> 4 | <% when "udp" -%> 5 | *.* @<%= @server %> 6 | <% end -%> 7 | -------------------------------------------------------------------------------- /haproxy/templates/default/haproxy-default.erb: -------------------------------------------------------------------------------- 1 | # Set ENABLED to 1 if you want the init script to start haproxy. 2 | ENABLED=1 3 | # Add extra flags here. 4 | #EXTRAOPTS="-de -m 16" 5 | -------------------------------------------------------------------------------- /passenger_enterprise/templates/default/passenger.conf.erb: -------------------------------------------------------------------------------- 1 | PassengerRoot <%= node[:passenger_enterprise][:root_path] %> 2 | PassengerRuby <%= node[:ruby_enterprise][:ruby_bin] %> 3 | -------------------------------------------------------------------------------- /apache2/templates/default/mods/dir.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm 4 | 5 | 6 | -------------------------------------------------------------------------------- /runit/files/ubuntu-6.10/runsvdir: -------------------------------------------------------------------------------- 1 | start on runlevel-2 2 | start on runlevel-3 3 | start on runlevel-4 4 | start on runlevel-5 5 | stop on shutdown 6 | respawn /usr/sbin/runsvdir-start 7 | -------------------------------------------------------------------------------- /varnish/attributes/default.rb: -------------------------------------------------------------------------------- 1 | case platform 2 | when "debian","ubuntu" 3 | set[:varnish][:dir] = "/etc/varnish" 4 | set[:varnish][:default] = "/etc/default/varnish" 5 | end 6 | -------------------------------------------------------------------------------- /memcached/templates/default/sv-memcached-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec chpst -u <%= @options[:user] %> /usr/bin/memcached -v -m <%= @options[:memory] %> -p <%= @options[:port] %> 4 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/build-ca: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 4 | # Build a root certificate 5 | # 6 | 7 | export EASY_RSA="${EASY_RSA:-.}" 8 | "$EASY_RSA/pkitool" --interact --initca $* 9 | -------------------------------------------------------------------------------- /packages/libraries/packages.rb: -------------------------------------------------------------------------------- 1 | # Yay for helpers! 2 | 3 | class Chef 4 | class Recipe 5 | def dist_only? 6 | node[:packages][:dist_only] 7 | end 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /passenger_enterprise/templates/default/passenger_nginx.conf.erb: -------------------------------------------------------------------------------- 1 | passenger_root <%= node[:passenger_enterprise][:root_path] %>; 2 | passenger_ruby <%= node[:ruby_enterprise][:ruby_bin] %>; 3 | -------------------------------------------------------------------------------- /memcached/attributes/default.rb: -------------------------------------------------------------------------------- 1 | default[:memcached][:memory] = 64 2 | default[:memcached][:port] = 11211 3 | default[:memcached][:user] = "nobody" 4 | default[:memcached][:listen] = "0.0.0.0" 5 | -------------------------------------------------------------------------------- /resolver/templates/default/resolv.conf.erb: -------------------------------------------------------------------------------- 1 | search <%= node[:resolver][:search] %> 2 | <% node[:resolver][:nameservers].each do |nameserver| -%> 3 | nameserver <%= nameserver %> 4 | <% end -%> 5 | -------------------------------------------------------------------------------- /runit/files/ubuntu-7.04/runsvdir: -------------------------------------------------------------------------------- 1 | start on runlevel 2 2 | start on runlevel 3 3 | start on runlevel 4 4 | start on runlevel 5 5 | stop on shutdown 6 | respawn 7 | exec /usr/sbin/runsvdir-start 8 | -------------------------------------------------------------------------------- /runit/files/ubuntu-7.10/runsvdir: -------------------------------------------------------------------------------- 1 | start on runlevel 2 2 | start on runlevel 3 3 | start on runlevel 4 4 | start on runlevel 5 5 | stop on shutdown 6 | respawn 7 | exec /usr/sbin/runsvdir-start 8 | -------------------------------------------------------------------------------- /runit/files/ubuntu-8.04/runsvdir: -------------------------------------------------------------------------------- 1 | start on runlevel 2 2 | start on runlevel 3 3 | start on runlevel 4 4 | start on runlevel 5 5 | stop on shutdown 6 | respawn 7 | exec /usr/sbin/runsvdir-start 8 | -------------------------------------------------------------------------------- /teamspeak/templates/default/port_teamspeak.erb: -------------------------------------------------------------------------------- 1 | # Teamspeak 2 | -A FWR -p udp -m udp --dport 8767 -j ACCEPT 3 | -A FWR -p tcp -m tcp --dport 51234 -j ACCEPT 4 | -A FWR -p tcp -m tcp --dport 14534 -j ACCEPT -------------------------------------------------------------------------------- /gems/attributes/server.rb: -------------------------------------------------------------------------------- 1 | default[:gem_server][:virtual_host_name] = "gems.#{domain}" 2 | default[:gem_server][:virtual_host_alias] = "gems" 3 | default[:gem_server][:directory] = "/srv/gems" 4 | -------------------------------------------------------------------------------- /hadoop/templates/default/cloudera.list.erb: -------------------------------------------------------------------------------- 1 | deb http://archive.cloudera.com/debian <%= node[:lsb][:codename] %> contrib 2 | deb-src http://archive.cloudera.com/debian <%= node[:lsb][:codename] %> contrib 3 | -------------------------------------------------------------------------------- /java/templates/ubuntu/canonical.com.list.erb: -------------------------------------------------------------------------------- 1 | deb http://archive.canonical.com/ubuntu <%= node[:lsb][:codename] %> partner 2 | deb-src http://archive.canonical.com/ubuntu <%= node[:lsb][:codename] %> partner -------------------------------------------------------------------------------- /rabbitmq/templates/default/rabbitmq_cluster.config.erb: -------------------------------------------------------------------------------- 1 | %%% 2 | %% Generated by Chef for <%= node[:fqdn] %> 3 | %%% 4 | 5 | [<%= node[:rabbitmq][:cluster_disk_nodes].map{|n| "\'#{n}\'"}.join(',') %>]. 6 | -------------------------------------------------------------------------------- /rails_enterprise/attributes/default.rb: -------------------------------------------------------------------------------- 1 | default[:rails_enterprise][:version] = false 2 | default[:rails_enterprise][:environment] = "production" 3 | default[:rails_enterprise][:max_pool_size] = 4 4 | -------------------------------------------------------------------------------- /apache2/templates/default/ports.conf.erb: -------------------------------------------------------------------------------- 1 | #This file generated via template by Chef. 2 | <% @apache_listen_ports.each do |port| -%> 3 | Listen <%= port %> 4 | NameVirtualHost *:<%= port %> 5 | 6 | <% end -%> 7 | -------------------------------------------------------------------------------- /cloudkick/templates/default/cloudkick.conf.erb: -------------------------------------------------------------------------------- 1 | oauth_key <%= node.cloudkick.oauth_key %> 2 | oauth_secret <%= node.cloudkick.oauth_secret %> 3 | tags <%= @cloudkick_tags.join(",") %> 4 | name <%= node.hostname %> 5 | 6 | -------------------------------------------------------------------------------- /djbdns/templates/default/sv-axfrdns-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec chpst -e ./env sh -c ' 4 | exec chpst -U axfrdns -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "$IP" 53 <%= node[:djbdns][:bin_dir] %>/axfrdns' 5 | -------------------------------------------------------------------------------- /djbdns/templates/default/sv-public-dnscache-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec /dnscache 6 | ' 7 | -------------------------------------------------------------------------------- /kickstart/attributes/default.rb: -------------------------------------------------------------------------------- 1 | default[:kickstart][:rootpw] = nil 2 | default[:kickstart][:virtual_host_name] = "build.#{domain}" 3 | default[:kickstart][:mirror_url] = "http://mirrors.kernel.org/centos/5.5/os/x86_64" 4 | -------------------------------------------------------------------------------- /djbdns/templates/default/tinydns-internal-data.erb: -------------------------------------------------------------------------------- 1 | # Auto-generated by chef for <%= node[:fqdn] %> 2 | # 3 | # This is the internal zone file. 4 | 5 | .<%= node[:domain] %>:<%= node[:djbdns][:tinydns_internal_ipaddress] %>:a:259200 -------------------------------------------------------------------------------- /gems/attributes/mirror.rb: -------------------------------------------------------------------------------- 1 | default[:gem_server][:rf_virtual_host_name] = "rubyforge.#{domain}" 2 | default[:gem_server][:rf_virtual_host_alias] = "rubyforge" 3 | default[:gem_server][:rf_directory] = "/srv/rubyforge" 4 | -------------------------------------------------------------------------------- /logrotate/templates/default/logrotate.erb: -------------------------------------------------------------------------------- 1 | <%= @paths %> { 2 | weekly 3 | missingok 4 | rotate <%= @rotate %> 5 | compress 6 | delaycompress 7 | copytruncate 8 | } 9 | 10 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/build-key: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Make a certificate/private key pair using a locally generated 4 | # root certificate. 5 | 6 | export EASY_RSA="${EASY_RSA:-.}" 7 | "$EASY_RSA/pkitool" --interact $* 8 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/build-key-pass: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Similar to build-key, but protect the private key 4 | # with a password. 5 | 6 | export EASY_RSA="${EASY_RSA:-.}" 7 | "$EASY_RSA/pkitool" --interact --pass $* 8 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/build-req-pass: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Like build-req, but protect your private key 4 | # with a password. 5 | 6 | export EASY_RSA="${EASY_RSA:-.}" 7 | "$EASY_RSA/pkitool" --interact --csr --pass $* 8 | -------------------------------------------------------------------------------- /teamspeak3/templates/default/sv-teamspeak3-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cd /srv/teamspeak3 3 | export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH" 4 | exec 2>&1 5 | exec chpst -u teamspeak-server ./ts3server_linux_<%= node[:ts3][:arch] %> 6 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/sign-req: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sign a certificate signing request (a .csr file) 4 | # with a local root certificate and key. 5 | 6 | export EASY_RSA="${EASY_RSA:-.}" 7 | "$EASY_RSA/pkitool" --interact --sign $* 8 | -------------------------------------------------------------------------------- /solr/templates/default/sv-solr-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | export JAVA_HOME=/usr/java/jdk 4 | cd # for now need the directory specified. 5 | exec 2>&1 6 | exec \ 7 | chpst -u <%= node[:solr][:user] %> /usr/bin/java -Xms128M -Xmx1024M \ 8 | -jar start.jar -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/build-inter: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Make an intermediate CA certificate/private key pair using a locally generated 4 | # root certificate. 5 | 6 | export EASY_RSA="${EASY_RSA:-.}" 7 | "$EASY_RSA/pkitool" --interact --inter $* 8 | -------------------------------------------------------------------------------- /wordpress/templates/default/grants.sql.erb: -------------------------------------------------------------------------------- 1 | GRANT ALL ON <%= @database %>.* TO '<%= @user %>'@'%' IDENTIFIED BY '<%= @password %>'; 2 | 3 | SET PASSWORD FOR 'root'@'localhost' = PASSWORD('<%= node[:mysql][:server_root_password] %>'); 4 | 5 | FLUSH PRIVILEGES; 6 | -------------------------------------------------------------------------------- /chef/templates/default/sv-chef-solr-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> 3 | exec 2>&1 4 | exec /usr/bin/env chef-solr 5 | -------------------------------------------------------------------------------- /bootstrap/templates/default/sv-chef-solr-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> 3 | exec 2>&1 4 | exec /usr/bin/env chef-solr 5 | -------------------------------------------------------------------------------- /cron/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs cron" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.0.1" 7 | -------------------------------------------------------------------------------- /rush/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs rush" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.1" 7 | -------------------------------------------------------------------------------- /tmux/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs tmux" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "1.0.0" 7 | -------------------------------------------------------------------------------- /jira/templates/default/sv-jira-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cd <%= node[:jira][:install_path] %> 4 | exec 2>&1 5 | exec chpst -u <%= node[:jira][:run_user] %> env JAVA_HOME=/usr/lib/jvm/java-6-sun JAVA_OPTS="-Xms256m -Xmx256m" <%= node[:jira][:install_path] %>/bin/startup.sh 6 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/build-req: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Build a certificate signing request and private key. Use this 4 | # when your root certificate and key is not available locally. 5 | 6 | export EASY_RSA="${EASY_RSA:-.}" 7 | "$EASY_RSA/pkitool" --interact --csr $* 8 | -------------------------------------------------------------------------------- /passenger_apache2/attributes/default.rb: -------------------------------------------------------------------------------- 1 | default[:passenger][:version] = "2.2.15" 2 | set[:passenger][:root_path] = "#{languages[:ruby][:gems_dir]}/gems/passenger-#{passenger[:version]}" 3 | set[:passenger][:module_path] = "#{passenger[:root_path]}/ext/apache2/mod_passenger.so" 4 | -------------------------------------------------------------------------------- /stompserver/templates/default/sv-stompserver-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> 3 | exec 2>&1 4 | exec /usr/bin/env stompserver 5 | -------------------------------------------------------------------------------- /application/templates/default/deploy-ssh-wrapper.erb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Deploy SSH Wrapper 4 | # App: <%= @id %> 5 | # 6 | # Rendered by Chef - local changes will be replaced 7 | 8 | /usr/bin/env ssh -o "StrictHostKeyChecking=no" -i "<%= @deploy_to %>/id_deploy" $1 $2 9 | -------------------------------------------------------------------------------- /chef/templates/default/sv-chef-solr-indexer-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> 3 | exec 2>&1 4 | exec /usr/bin/env chef-solr-indexer 5 | -------------------------------------------------------------------------------- /bootstrap/templates/default/sv-chef-solr-indexer-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> 3 | exec 2>&1 4 | exec /usr/bin/env chef-solr-indexer 5 | -------------------------------------------------------------------------------- /tomcat6/templates/default/tomcat-users.xml.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /database/templates/default/ebs-db-backup.sh.erb: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Back up a MySQL database via EBS snapshot 4 | 5 | . /mnt/aws-config/config 6 | 7 | /opt/ec2_mysql/bin/ec2_mysql -a $AWS_ACCESS_KEY_ID -s $AWS_SECRET_ACCESS_KEY -p '<%= @mysql_root_passwd %>' -k 5 master 8 | echo "done" 9 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/whichopensslcnf: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "$OPENSSL" ]; then 4 | if $OPENSSL version | grep 0.9.6 > /dev/null; then 5 | echo "$1/openssl-0.9.6.cnf" 6 | else 7 | echo "$1/openssl.cnf" 8 | fi 9 | else 10 | echo "$1/openssl.cnf" 11 | fi 12 | 13 | exit 0 14 | -------------------------------------------------------------------------------- /subversion/templates/default/subversion.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | DAV svn 4 | 5 | SVNPath /srv/svn/repo 6 | 7 | AuthType Basic 8 | 9 | AuthName "Subversion repository" 10 | 11 | AuthUserFile /srv/svn/htpasswd 12 | 13 | Require valid-user 14 | 15 | 16 | -------------------------------------------------------------------------------- /vim/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs vim and optional extra packages." 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "1.0.0" 7 | -------------------------------------------------------------------------------- /openvpn/templates/default/server.up.sh.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This script will be run by OpenVPN on startup via the 'up' configuration 4 | # directive in /etc/openvpn/server.conf. 5 | # 6 | # Turn on IP forwarding 7 | #/sbin/sysctl -w net.ipv4.ip_forward=1 8 | 9 | # Set up iptables NAT rules as needed. -------------------------------------------------------------------------------- /varnish/templates/default/default.vcl.erb: -------------------------------------------------------------------------------- 1 | backend default { 2 | .host = "localhost"; 3 | .port = "8080"; 4 | } 5 | 6 | sub vcl_fetch { 7 | # force minimum ttl of 120 seconds 8 | if (obj.ttl < 120s) { 9 | set obj.ttl = 120s; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /openldap/files/default/common-auth: -------------------------------------------------------------------------------- 1 | # Generated by Chef. Local modifications will be overwritten. 2 | # 3 | # /etc/pam.d/common-auth - authentication settings common to all services 4 | # 5 | auth sufficient pam_unix.so likeauth nullok_secure 6 | auth sufficient pam_ldap.so use_first_pass 7 | 8 | -------------------------------------------------------------------------------- /trac/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Peter Crossley" 2 | maintainer_email "peterc@xley.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures Trac" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.1" 7 | depends "apache2" 8 | -------------------------------------------------------------------------------- /application/templates/default/sv-unicorn-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cd <%= @options[:app]['deploy_to'] %>/current 4 | 5 | exec 2>&1 6 | exec chpst -u <%= @options[:app]["owner"] %>:<%= @options[:app]["group"] %> unicorn_rails -E <%= node[:app_environment] %> -c /etc/unicorn/<%= @options[:app]['id'] %>.rb 7 | 8 | -------------------------------------------------------------------------------- /mysql/resources/database.rb: -------------------------------------------------------------------------------- 1 | actions :flush_tables_with_read_lock, :unflush_tables, :create_db 2 | 3 | attribute :host, :kind_of => String 4 | attribute :username, :kind_of => String 5 | attribute :password, :kind_of => String 6 | attribute :database, :kind_of => String 7 | attribute :exists, :default => false 8 | -------------------------------------------------------------------------------- /nginx/templates/default/default-site.erb: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name <%= node[:hostname] %>; 4 | 5 | access_log <%= node[:nginx][:log_dir] %>/localhost.access.log; 6 | 7 | location / { 8 | root /var/www/nginx-default; 9 | index index.html index.htm; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /openldap/files/default/common-account: -------------------------------------------------------------------------------- 1 | # Generated by Chef. Local modifications will be overwritten. 2 | # 3 | # /etc/pam.d/common-account - authorization settings common to all services 4 | # 5 | account sufficient pam_unix.so 6 | account [default=bad success=ok user_unknown=ignore] pam_ldap.so 7 | 8 | -------------------------------------------------------------------------------- /openldap/files/default/common-password: -------------------------------------------------------------------------------- 1 | # Generated by Chef. Local modifications will be overwritten. 2 | # 3 | # /etc/pam.d/common-password - password-related modules common to all services 4 | # 5 | password sufficient pam_unix.so nullok obscure min=8 max=8 md5 6 | password sufficient pam_ldap.so 7 | 8 | -------------------------------------------------------------------------------- /zsh/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs zsh" 5 | version "0.7.1" 6 | 7 | recipe "zsh", "Installs zsh" 8 | 9 | %w{ubuntu debian}.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /nagios/templates/default/hosts.cfg.erb: -------------------------------------------------------------------------------- 1 | # Generated by Chef 2 | # host definitions 3 | 4 | <% @nodes.each do |n| -%> 5 | define host { 6 | use server 7 | address <%= n['ipaddress'] %> 8 | host_name <%= n['hostname'] %> 9 | hostgroups <%= n.run_list.roles.to_a.join(",") %> 10 | } 11 | 12 | <% end -%> 13 | -------------------------------------------------------------------------------- /ntp/attributes/default.rb: -------------------------------------------------------------------------------- 1 | case platform 2 | when "ubuntu","debian" 3 | default[:ntp][:service] = "ntp" 4 | when "redhat","centos","fedora" 5 | default[:ntp][:service] = "ntpd" 6 | end 7 | 8 | default[:ntp][:is_server] = false 9 | default[:ntp][:servers] = ["0.us.pool.ntp.org", "1.us.pool.ntp.org"] 10 | -------------------------------------------------------------------------------- /apache2/templates/default/mod_auth_openid.rb.erb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | allowed_openids = Array.new 4 | <% node[:apache][:allowed_openids].each do |id| -%> 5 | allowed_openids << "<%= id %>" 6 | <% end -%> 7 | 8 | if allowed_openids.grep(ARGV[0]).length > 0 9 | exit 0 10 | else 11 | exit 1 12 | end 13 | -------------------------------------------------------------------------------- /pacman/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Updates package list for pacman and has LWRP for pacman groups" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "1.0.1" 7 | -------------------------------------------------------------------------------- /apache2/templates/default/charset.erb: -------------------------------------------------------------------------------- 1 | # Read the documentation before enabling AddDefaultCharset. 2 | # In general, it is only a good idea if you know that all your files 3 | # have this encoding. It will override any encoding given in the files 4 | # in meta http-equiv or xml encoding tags. 5 | 6 | #AddDefaultCharset UTF-8 7 | -------------------------------------------------------------------------------- /apparmor/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Disables apparmor service on Ubuntu" 5 | version "0.9.0" 6 | supports "ubuntu" 7 | recipe "default", "Disables apparmor service on Ubuntu" 8 | -------------------------------------------------------------------------------- /aws/resources/elastic_ip.rb: -------------------------------------------------------------------------------- 1 | actions :associate, :disassociate 2 | 3 | attribute :aws_access_key, :kind_of => String 4 | attribute :aws_secret_access_key, :kind_of => String 5 | attribute :ip, :kind_of => String 6 | attribute :timeout, :default => 3*60 # 3 mins, nil or 0 for no timeout 7 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/build-key-pkcs12: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Make a certificate/private key pair using a locally generated 4 | # root certificate and convert it to a PKCS #12 file including the 5 | # the CA certificate as well. 6 | 7 | export EASY_RSA="${EASY_RSA:-.}" 8 | "$EASY_RSA/pkitool" --interact --pkcs12 $* 9 | -------------------------------------------------------------------------------- /sqlite/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs sqlite" 5 | version "0.7.1" 6 | 7 | recipe "sqlite", "Installs sqlite" 8 | 9 | %w{ubuntu debian}.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /teamspeak3/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode" 2 | maintainer_email "joshua@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs and starts teamspeak3 as a runit service." 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.1" 7 | 8 | depends "runit" 9 | -------------------------------------------------------------------------------- /application/templates/default/memcached.yml.erb: -------------------------------------------------------------------------------- 1 | <%- @memcached_envs.each do |env, settings| %> 2 | <%= env %>: 3 | <%- settings.each do |k, v| %> 4 | <%= k %>: <%= v %> 5 | <%- end %> 6 | servers: 7 | <%- @hosts.each do |h| %> 8 | - <%= h['ipaddress'] %>:<%= h['memcached']['port'] %> 9 | <%- end %> 10 | <%- end %> 11 | -------------------------------------------------------------------------------- /sbuild/files/default/schroot_update.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for d in `schroot -l | grep -- '-source$'` 3 | do 4 | echo '============================================================' 5 | echo "Updating: $d" 6 | schroot -q -c $d -u root -- sh -c \ 7 | 'apt-get -qq update && apt-get -qy dist-upgrade && apt-get clean' 8 | done 9 | -------------------------------------------------------------------------------- /database/templates/default/app_grants.sql.erb: -------------------------------------------------------------------------------- 1 | # Generated by Chef. Local modifications will be overwritten. 2 | <% @db_info.each do |env,db| -%> 3 | # Privileges for databases in <%= env %> 4 | GRANT ALL ON <%= db['database'] %>.* TO '<%= db['username'] %>'@'%' IDENTIFIED BY '<%= db['password'] %>'; 5 | <% end -%> 6 | flush privileges; 7 | -------------------------------------------------------------------------------- /database/templates/default/chef-solo-database-snapshot.rb.erb: -------------------------------------------------------------------------------- 1 | executable_path ENV['PATH'] ? ENV['PATH'].split(File::PATH_SEPARATOR) : [] 2 | <% if @cookbook_path.is_a? Array %> 3 | cookbook_path [ <%= @cookbook_path.collect { |cb| "\"#{cb}\""}.join(", ") -%> ] 4 | <% else %> 5 | cookbook_path "<%= @cookbook_path -%>" 6 | <% end %> 7 | -------------------------------------------------------------------------------- /emacs/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs emacs" 5 | version "0.7" 6 | 7 | recipe "emacs", "Installs Emacs" 8 | 9 | %w{ ubuntu debian redhat centos }.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /mercurial/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs mercurial" 5 | version "0.7.1" 6 | 7 | recipe "mercurial", "Installs mercurial" 8 | 9 | %w{ debian ubuntu }.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /teamspeak/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs teamspeak and enables service" 5 | version "0.8" 6 | depends "php" 7 | supports "ubuntu" 8 | recipe "teamspeak", "Installs and configures teamspeak2" 9 | -------------------------------------------------------------------------------- /rsync/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs rsync" 5 | version "0.7.1" 6 | 7 | recipe "rsync", "Installs rsync" 8 | 9 | %w{ centos fedora redhat ubuntu debian }.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /rsyslog/files/default/rsyslog.default: -------------------------------------------------------------------------------- 1 | # Generated by Chef 2 | # 3 | # Use v3 native mode, rather than compatibility mode by specifying -c3 4 | # here. Compatibility mode for older versions is not recommended as 5 | # custom configuration may get messy. 6 | # 7 | # See rsyslogd(8) for more details 8 | 9 | RSYSLOGD_OPTIONS="-c3" 10 | -------------------------------------------------------------------------------- /apt/files/default/apt-cacher: -------------------------------------------------------------------------------- 1 | # apt-cacher startup configuration file 2 | 3 | # IMPORTANT: check the apt-cacher.conf file before using apt-cacher as daemon. 4 | 5 | # set to 1 to start the daemon at boot time 6 | AUTOSTART=1 7 | 8 | # extra settings to override the ones in apt-cacher.conf 9 | # EXTRAOPT=" daemon_port=3142 limit=30 " 10 | -------------------------------------------------------------------------------- /chef/templates/default/sv-chef-client-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> 3 | exec 2>&1 4 | exec /usr/bin/env chef-client -i <%= node[:chef][:client_interval] %> -s <%= node[:chef][:client_splay] %> 5 | -------------------------------------------------------------------------------- /lvm/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs lvm2 package" 5 | version "0.7.1" 6 | 7 | recipe "lvm", "Installs lvm2 package" 8 | 9 | %w{ redhat centos debian ubuntu }.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /man/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs man-db" 5 | version "0.7.1" 6 | 7 | recipe "man", "Installs man package" 8 | 9 | %w{ debian ubuntu redhat centos fedora}.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /nagios/templates/default/hostgroups.cfg.erb: -------------------------------------------------------------------------------- 1 | # Hostgroup definitions 2 | # Automatically generated by Chef 3 | 4 | define hostgroup { 5 | hostgroup_name all 6 | alias all 7 | members * 8 | } 9 | 10 | <% @roles.each do |r| -%> 11 | define hostgroup { 12 | hostgroup_name <%= r %> 13 | alias <%= r %> 14 | } 15 | 16 | <% end -%> 17 | -------------------------------------------------------------------------------- /screen/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs screen" 5 | version "0.7.1" 6 | 7 | recipe "screen", "Installs screen" 8 | 9 | %w{ redhat centos fedora ubuntu debian }.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /ubuntu/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Sets up sources for ubuntu" 5 | version "0.8.1" 6 | depends "apt" 7 | supports "ubuntu" 8 | recipe "ubuntu", "Sets up sources for the node's ubuntu release" 9 | -------------------------------------------------------------------------------- /erlang/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs erlang, optionally install GUI tools." 5 | version "0.8.2" 6 | 7 | recipe "erlang", "Installs erlang" 8 | 9 | %w{ ubuntu debian }.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /openssh/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs openssh" 5 | version "0.8.0" 6 | 7 | recipe "openssh", "Installs openssh" 8 | 9 | %w{ redhat centos fedora ubuntu debian arch}.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /varnish/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Instsalls and configures varnish" 5 | version "0.8" 6 | 7 | recipe "varnish", "Installs and configures varnish" 8 | 9 | %w{ubuntu debian}.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /drbd/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs but does not configure drbd" 5 | version "0.7.1" 6 | depends "lvm" 7 | recipe "drbd", "Installs drbd" 8 | 9 | %w{ ubuntu debian}.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /nanite/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Deprecated, was used to install and configure nanite for Chef 0.8 alpha" 5 | version "0.8" 6 | 7 | recipe "nanite::chef", "Deprecated, was used to install and configure nanite for Chef 0.8alpha" 8 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/build-key-server: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Make a certificate/private key pair using a locally generated 4 | # root certificate. 5 | # 6 | # Explicitly set nsCertType to server using the "server" 7 | # extension in the openssl.cnf file. 8 | 9 | export EASY_RSA="${EASY_RSA:-.}" 10 | "$EASY_RSA/pkitool" --interact --server $* 11 | -------------------------------------------------------------------------------- /xml/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs xml" 5 | version "0.1.1" 6 | 7 | recipe "xml", "Installs libxml development packages" 8 | 9 | %w{ centos redhat suse fedora ubuntu debian }.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /zlib/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs zlib" 5 | version "0.1.1" 6 | 7 | recipe "zlib", "Installs zlib development package" 8 | 9 | %w{ centos redhat suse fedora ubuntu debian }.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /boost/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs libboost" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.1" 7 | recipe "boost", "Installs libboost-dev" 8 | 9 | supports "ubuntu" 10 | -------------------------------------------------------------------------------- /fail2ban/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs and configures fail2ban" 5 | version "0.7.1" 6 | 7 | recipe "fail2ban", "Installs and configures fail2ban" 8 | 9 | %w{ ubuntu debian }.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /mysql/libraries/database.rb: -------------------------------------------------------------------------------- 1 | begin 2 | require 'mysql' 3 | rescue LoadError 4 | Chef::Log.warn("Missing gem 'mysql'") 5 | end 6 | 7 | module Opscode 8 | module Mysql 9 | module Database 10 | def db 11 | @@db ||= ::Mysql.new new_resource.host, new_resource.username, new_resource.password 12 | end 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /openssl/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures openssl" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.1" 7 | 8 | recipe "openssl", "Empty, this cookbook provides a library, see README" 9 | -------------------------------------------------------------------------------- /python/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs python packages" 5 | version "0.7" 6 | 7 | recipe "python", "Installs python and common python module packages" 8 | 9 | %w{ debian ubuntu }.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /rubygems/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Opscode rubygems config" 5 | long_description <<-EOH 6 | Configures rubygems sources lists 7 | EOH 8 | version "0.2.1" 9 | recipe "rubygems", "Configures rubygems.org source" 10 | -------------------------------------------------------------------------------- /ssh_known_hosts/templates/default/known_hosts.erb: -------------------------------------------------------------------------------- 1 | # THIS FILE IS MAINTAINED BY CHEF, DO NOT MODIFY AS IT WILL BE OVERWRITTEN 2 | <% @nodes.each do |n| -%> 3 | <%= n['hostname'] %>,<%= n['ipaddress'] %> ssh-rsa <%= n['keys']['ssh']['host_rsa_public'] %> 4 | <%= n['hostname'] %>,<%= n['ipaddress'] %> ssh-dsa <%= n['keys']['ssh']['host_dsa_public'] %> 5 | <% end -%> 6 | -------------------------------------------------------------------------------- /aws/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "LWRPs for managing AWS resources" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.10.1" 7 | recipe "aws", "Installs the right_aws gem during compile time" 8 | -------------------------------------------------------------------------------- /chef/templates/default/sv-chef-server-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> 3 | exec 2>&1 4 | exec /usr/bin/env chef-server -N -p <%= node[:chef][:server_port] %> -e production -P <%= node[:chef][:run_path] %>/server.%s.pid 5 | -------------------------------------------------------------------------------- /users/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "ops@example.com" 3 | license "Apache 2.0" 4 | description "Creates users from a databag search" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.3.0" 7 | recipe "users::sysadmin", "searches users data bag for sysadmins and creates users" 8 | -------------------------------------------------------------------------------- /ohai/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc" 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Distributes a directory of custom ohai plugins" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.9.0" 7 | recipe "ohai::default", "Distributes a directory of custom ohai plugins" 8 | -------------------------------------------------------------------------------- /chef/templates/default/sv-chef-server-webui-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> 3 | exec 2>&1 4 | exec /usr/bin/env chef-server-webui -N -p <%= node[:chef][:webui_port] %> -e production -P <%= node[:chef][:run_path] %>/server-webui.%s.pid 5 | -------------------------------------------------------------------------------- /application/templates/default/database.yml.erb: -------------------------------------------------------------------------------- 1 | <%- @databases.each do |env, db| %> 2 | <%= env %>: 3 | adapter: <%= db['adapter'] %> 4 | host: <%= @host %> 5 | database: <%= db['database'] %> 6 | username: <%= db['username'] %> 7 | password: <%= db['password'] %> 8 | encoding: <%= db.has_key?('encoding') ? db['encoding'] : 'utf8' %> 9 | reconnect: true 10 | <%- end %> 11 | -------------------------------------------------------------------------------- /dynomite/templates/default/sv-dynomite-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec /usr/bin/env HOME="/tmp" dynoctl \ 4 | -n <%= node[:dynomite][:num_nodes] %> \ 5 | -d <%= node[:dynomite][:data_dir] %> \ 6 | -o <%= node[:dynomite][:node_name] %> \ 7 | -a <%= node[:dynomite][:ascii_port] %> \ 8 | -t <%= node[:dynomite][:thrift_port] %> \ 9 | -h <%= node[:dynomite][:web_port] %> 10 | -------------------------------------------------------------------------------- /nscd/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs and configures nscd" 5 | version "0.7" 6 | suggests "openldap" 7 | 8 | recipe "nscd", "Installs and configures nscd" 9 | 10 | %w{ redhat centos debian ubuntu }.each do |os| 11 | supports os 12 | end 13 | -------------------------------------------------------------------------------- /openldap/files/default/common-session: -------------------------------------------------------------------------------- 1 | # Generated by Chef. Local modifications will be overwritten. 2 | # 3 | # /etc/pam.d/common-session - session-related modules common to all services 4 | # 5 | session required pam_unix.so 6 | session required pam_mkhomedir.so skel=/etc/skel/ 7 | session required pam_ldap.so 8 | #session optional pam_foreground.so 9 | 10 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/list-crl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # list revoked certificates 4 | 5 | CRL="${1:-crl.pem}" 6 | 7 | if [ "$KEY_DIR" ]; then 8 | cd "$KEY_DIR" && \ 9 | $OPENSSL crl -text -noout -in "$CRL" 10 | else 11 | echo 'Please source the vars script first (i.e. "source ./vars")' 12 | echo 'Make sure you have edited it to reflect your configuration.' 13 | fi 14 | -------------------------------------------------------------------------------- /bootstrap/templates/default/sv-chef-server-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> 3 | exec 2>&1 4 | exec /usr/bin/env chef-server -N -p <%= node[:bootstrap][:chef][:server_port] %> -e production -P <%= node[:bootstrap][:chef][:run_path] %>/server.%s.pid 5 | -------------------------------------------------------------------------------- /mysql/templates/centos/my.cnf.erb: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | datadir=/var/lib/mysql 3 | socket=/var/lib/mysql/mysql.sock 4 | user=mysql 5 | # Default to using old password format for compatibility with mysql 3.x 6 | # clients (those using the mysqlclient10 compatibility package). 7 | old_passwords=1 8 | 9 | [mysqld_safe] 10 | log-error=/var/log/mysqld.log 11 | pid-file=/var/run/mysqld/mysqld.pid 12 | 13 | -------------------------------------------------------------------------------- /mysql/templates/redhat/my.cnf.erb: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | datadir=/var/lib/mysql 3 | socket=/var/lib/mysql/mysql.sock 4 | user=mysql 5 | # Default to using old password format for compatibility with mysql 3.x 6 | # clients (those using the mysqlclient10 compatibility package). 7 | old_passwords=1 8 | 9 | [mysqld_safe] 10 | log-error=/var/log/mysqld.log 11 | pid-file=/var/run/mysqld/mysqld.pid 12 | 13 | -------------------------------------------------------------------------------- /unicorn/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc" 2 | maintainer_email "ops@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures unicorn" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.1.3" 7 | depends "ruby" 8 | depends "rubygems" 9 | recipe "unicorn", "Installs unicorn rubygem" 10 | -------------------------------------------------------------------------------- /apache2/templates/default/mods/fcgid.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | AddHandler fcgid-script .fcgi 3 | IPCConnectTimeout 20 4 | 5 | 6 | <% if node[:platform] == "centos" || node[:platform] == "redhat" || node[:platform] == "fedora" -%> 7 | # Sane place to put sockets and shared memory file 8 | SocketPath run/mod_fcgid 9 | SharememPath run/mod_fcgid/fcgid_shm 10 | <% end -%> 11 | -------------------------------------------------------------------------------- /keepalived/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs and configures keepalived" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.7.1" 7 | supports "ubuntu" 8 | 9 | recipe "keepalived", "Installs and configures keepalived" 10 | -------------------------------------------------------------------------------- /bootstrap/templates/default/sv-chef-server-webui-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> 3 | exec 2>&1 4 | exec /usr/bin/env chef-server-webui -N -p <%= node[:bootstrap][:chef][:webui_port] %> -e production -P <%= node[:bootstrap][:chef][:run_path] %>/server-webui.%s.pid 5 | -------------------------------------------------------------------------------- /cloudkick/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures the Cloudkick Agent" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.1.0" 7 | 8 | depends "apt" 9 | 10 | recipe "cloudkick::default", "Installs and configures Cloudkick" 11 | 12 | -------------------------------------------------------------------------------- /heartbeat/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs but does not configure heartbeat" 5 | version "0.7" 6 | suggests "drbd" 7 | 8 | recipe "heartbeat", "Installs, but does not configure, heartbeat" 9 | 10 | %w{ debian ubuntu }.each do |os| 11 | supports os 12 | end 13 | -------------------------------------------------------------------------------- /mysql/templates/default/debian.cnf.erb: -------------------------------------------------------------------------------- 1 | [client] 2 | host = localhost 3 | user = debian-sys-maint 4 | password = <%= node[:mysql][:server_debian_password] %> 5 | socket = /var/run/mysqld/mysqld.sock 6 | [mysql_upgrade] 7 | host = localhost 8 | user = debian-sys-maint 9 | password = <%= node[:mysql][:server_debian_password] %> 10 | socket = /var/run/mysqld/mysqld.sock 11 | basedir = /usr 12 | -------------------------------------------------------------------------------- /database/templates/default/ebs-db-restore.sh.erb: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Restore a MySQL database from EBS 4 | 5 | mkdir -p /mnt/restore 6 | 7 | . /mnt/aws-config/config 8 | 9 | /opt/ec2_mysql/bin/ec2_mysql -a $AWS_ACCESS_KEY_ID -s $AWS_SECRET_ACCESS_KEY -p '<%= @mysql_root_password %>' -v '<%= @ebs_vol_id %>' -m /mnt/restore -d <%= @mysql_device %> -r <%= @mysql_device %> -l debug -n slave 10 | echo "done" 11 | -------------------------------------------------------------------------------- /rsyslog/files/ubuntu-10.04/rsyslog.default: -------------------------------------------------------------------------------- 1 | # Generated by Chef 2 | # 3 | # Options for rsyslogd 4 | # -m 0 disables 'MARK' messages (deprecated, only used in compat mode < 3) 5 | # -r enables logging from remote machines (deprecated, only used in compat mode < 3) 6 | # -x disables DNS lookups on messages received with -r 7 | # -c compatibility mode 8 | # See rsyslogd(8) for more details 9 | RSYSLOGD_OPTIONS="-c4" 10 | -------------------------------------------------------------------------------- /rsyslog/files/ubuntu-9.10/rsyslog.default: -------------------------------------------------------------------------------- 1 | # Generated by Chef 2 | # 3 | # Options for rsyslogd 4 | # -m 0 disables 'MARK' messages (deprecated, only used in compat mode < 3) 5 | # -r enables logging from remote machines (deprecated, only used in compat mode < 3) 6 | # -x disables DNS lookups on messages received with -r 7 | # -c compatibility mode 8 | # See rsyslogd(8) for more details 9 | RSYSLOGD_OPTIONS="-c4" 10 | -------------------------------------------------------------------------------- /iptables/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Sets up iptables to use a script to maintain rules" 5 | version "0.9.2" 6 | 7 | recipe "iptables", "Installs iptables and sets up .d style config directory of iptables rules" 8 | %w{ redhat centos debian ubuntu}.each do |os| 9 | supports os 10 | end 11 | -------------------------------------------------------------------------------- /logrotate/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Scott M. Likens" 2 | maintainer_email "scott@likens.us" 3 | license "Apache 2.0" 4 | description "Installs logrotate" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.8.1" 7 | 8 | recipe "logrotate", "Installs logrotate" 9 | 10 | %w{ redhat centos debian ubuntu }.each do |os| 11 | supports os 12 | end 13 | -------------------------------------------------------------------------------- /sbuild/templates/default/sbuildrc.erb: -------------------------------------------------------------------------------- 1 | # Directory for writing build logs to 2 | $log_dir = "$HOME/.cache/sbuild.logs"; 3 | 4 | # Mail address where logs are sent to (mandatory, no default!) 5 | $mailto = '<%= node[:sbuild][:mailto] %>'; 6 | 7 | $maintainer_name='<%= node[:sbuild][:maintainer_name] %>'; 8 | $key_id='<%= node[:sbuild][:key_id] %>'; 9 | 10 | #$pgp_options = '<%= node[:sbuild][:pgp_options] %>'; 11 | 12 | 1; 13 | -------------------------------------------------------------------------------- /bluepill/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs bluepill gem and configures to manage services, includes bluepill_service LWRP" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.1.0" 7 | recipe "bluepill::default", "Installs bluepill rubygem and set up management directories" 8 | -------------------------------------------------------------------------------- /sbuild/templates/default/schroot.erb: -------------------------------------------------------------------------------- 1 | # Generated by Chef. 2 | 3 | [<%= @chroot_name %>] 4 | type=lvm-snapshot 5 | description=<%= @chroot_name %> 6 | priority=3 7 | groups=sbuild,root,admin 8 | root-groups=root,sbuild,admin 9 | source-groups=sbuild,root,admin 10 | source-root-groups=root,sbuild,admin 11 | device=/dev/<%= @vg %>/<%= @chroot_lv %> 12 | mount-options=-o noatime 13 | lvm-snapshot-options=--size <%= @snapshot_size %> 14 | -------------------------------------------------------------------------------- /xfs/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs packages for working with XFS" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.1.1" 7 | 8 | recipe "xfs", "Installs packages for working with XFS" 9 | 10 | %w{ debian ubuntu }.each do |os| 11 | supports os 12 | end 13 | -------------------------------------------------------------------------------- /capistrano/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs Capistrano gem and provides a define to set up deployment for an application" 5 | version "0.7.1" 6 | recipe "capistrano", "Installs Capistrano gem" 7 | %w{ ubuntu debian redhat centos fedora freebsd openbsd }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/build-dh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Build Diffie-Hellman parameters for the server side 4 | # of an SSL/TLS connection. 5 | 6 | if [ -d $KEY_DIR ] && [ $KEY_SIZE ]; then 7 | $OPENSSL dhparam -out ${KEY_DIR}/dh${KEY_SIZE}.pem ${KEY_SIZE} 8 | else 9 | echo 'Please source the vars script first (i.e. "source ./vars")' 10 | echo 'Make sure you have edited it to reflect your configuration.' 11 | fi 12 | -------------------------------------------------------------------------------- /ssh_known_hosts/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Scott M. Likens" 2 | maintainer_email "scott@likens.us" 3 | license "Apache 2.0" 4 | description "Dyanmically generates /etc/ssh/known_hosts based on search indexes" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.2.2" 7 | recipe "ssh_known_hosts", "Dyanmically generates /etc/ssh/known_hosts based on search indexes" 8 | -------------------------------------------------------------------------------- /database/templates/default/chef-solo-database-snapshot.cron.erb: -------------------------------------------------------------------------------- 1 | # Managed by Chef 2 | # m h dom mon dow command 3 | # Keep 1 day of hourly, 7 days of daily, 4 weeks of weekly and 1 year of monthly snapshots 4 | PATH=/usr/sbin:/usr/bin:/sbin:/bin 5 | <% cs = "chef-solo -j #{@json_attribs} -c #{@config_file}" %> 6 | 00 * * * * root <%= cs %> 7 | 15 0 * * * root <%= cs %> 8 | 30 0 * * 0 root <%= cs %> 9 | 45 0 1 * * root <%= cs %> 10 | 11 | -------------------------------------------------------------------------------- /glassfish/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures Glassfish" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.3.0" 7 | recipe "glassfish", "Main Glassfish configuration" 8 | 9 | %w{redhat centos debian ubuntu}.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /java/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs java via openjdk." 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.10.2" 7 | depends "apt" 8 | %w{ debian ubuntu centos redhat fedora }.each do |os| 9 | supports os 10 | end 11 | recipe "java", "Installs openjdk to provide Java" -------------------------------------------------------------------------------- /maven/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures maven" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.10.0" 7 | 8 | %w{ java jpackage }.each do |cb| 9 | depends cb 10 | end 11 | 12 | %w{ debian ubuntu centos redhat fedora }.each do |os| 13 | supports os 14 | end 15 | -------------------------------------------------------------------------------- /reprepro/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode" 2 | maintainer_email "joshua@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures reprepro for an apt repository" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.2.1" 7 | 8 | depends "build-essential" 9 | depends "apache2" 10 | 11 | recipe "reprepro", "Installs and configures reprepro for an apt repository" 12 | -------------------------------------------------------------------------------- /ssh_known_hosts/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: ssh_known_hosts 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, Adapp, Inc. 6 | 7 | sleep 2 8 | nodes = [] 9 | search(:node, "*:*") do |z| 10 | nodes << z 11 | end 12 | 13 | template "/etc/ssh/ssh_known_hosts" do 14 | source "known_hosts.erb" 15 | mode 0440 16 | owner "root" 17 | group "root" 18 | backup false 19 | variables( 20 | :nodes => nodes 21 | ) 22 | end 23 | -------------------------------------------------------------------------------- /openldap/templates/default/ldap-ldap.conf.erb: -------------------------------------------------------------------------------- 1 | # 2 | # LDAP Defaults 3 | # 4 | # Generated by Chef for <% node[:hostname] %> 5 | # 6 | 7 | # See ldap.conf(5) for details 8 | # This file should be world readable but not world writable. 9 | 10 | BASE <%= node[:openldap][:basedn] %> 11 | TLS_REQCERT never 12 | #URI ldap://ldap.example.com ldap://ldap-master.example.com:666 13 | 14 | #SIZELIMIT 12 15 | #TIMELIMIT 15 16 | #DEREF never -------------------------------------------------------------------------------- /dynomite/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures dynomite" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.2.2" 7 | 8 | recipe "dynomite", "Installs and configures dynomite" 9 | supports "ubuntu" 10 | 11 | %w{ ruby git erlang runit }.each do |cb| 12 | depends cb 13 | end 14 | -------------------------------------------------------------------------------- /nagios/templates/default/timeperiods.cfg.erb: -------------------------------------------------------------------------------- 1 | # Time period definitions 2 | # Automatically generated by Chef 3 | 4 | define timeperiod { 5 | timeperiod_name 24x7 6 | alias 24 Hours A Day, 7 Days A Week 7 | sunday 00:00-24:00 8 | monday 00:00-24:00 9 | tuesday 00:00-24:00 10 | wednesday 00:00-24:00 11 | thursday 00:00-24:00 12 | friday 00:00-24:00 13 | saturday 00:00-24:00 14 | } -------------------------------------------------------------------------------- /java_sun/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs Sun java" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.10.0" 7 | 8 | depends 'java' 9 | 10 | recipe "java_sun", "Installs Sun Java using preseed to accept terms" 11 | 12 | %w{ debian ubuntu }.each do |os| 13 | supports os 14 | end 15 | -------------------------------------------------------------------------------- /jpackage/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures jpackage" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.10.0" 7 | 8 | depends "java" 9 | 10 | %w{ centos redhat fedora }.each do |os| 11 | supports os 12 | end 13 | 14 | recipe "jpackage::default", "Installs and configures jpackage" -------------------------------------------------------------------------------- /logwatch/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs logwatch, a nice log analyzer" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.1.1" 7 | 8 | depends "perl" 9 | 10 | recipe "logwatch", "Installs logwatch" 11 | 12 | %w{ redhat centos debian ubuntu }.each do |os| 13 | supports os 14 | end 15 | -------------------------------------------------------------------------------- /thrift/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures thrift" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.1.1" 7 | 8 | recipe "thrift", "Installs thrift from source" 9 | 10 | supports "ubuntu" 11 | 12 | %w{ build-essential boost java subversion }.each do |cb| 13 | depends cb 14 | end 15 | -------------------------------------------------------------------------------- /rabbitmq_chef/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs the RabbitMQ AMQP Broker for use on a Chef Server." 5 | version "0.10.3" 6 | 7 | recipe "rabbitmq_chef", "Install and configure rabbitmq specifically for a Chef Server" 8 | 9 | depends "erlang" 10 | 11 | %w{ centos redhat fedora ubuntu debian }.each do |os| 12 | supports os 13 | end 14 | -------------------------------------------------------------------------------- /reprepro/templates/default/distributions.erb: -------------------------------------------------------------------------------- 1 | <% @codenames.each do |dist| -%> 2 | Origin: <%= node[:reprepro][:fqdn] %> 3 | Label: apt repository 4 | Codename: <%= dist %> 5 | Architectures: <%= @architectures.join(" ") %> 6 | Components: <%= @pulls["component"] %> 7 | Description: <%= node[:reprepro][:description] %> 8 | SignWith: <%= node[:reprepro][:pgp_email] %> 9 | <% unless @pulls["name"] == dist -%> 10 | Pull: <%= dist %> 11 | <% end -%> 12 | <% end -%> 13 | 14 | -------------------------------------------------------------------------------- /stompserver/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs stompserver and sets up a runit_service" 5 | version "0.7.1" 6 | 7 | recipe "stompserver", "Installs and configures stompserver as a runit service" 8 | 9 | %w{ packages runit }.each do |cb| 10 | depends cb 11 | end 12 | 13 | %w{ ubuntu debian }.each do |os| 14 | supports os 15 | end 16 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/Makefile: -------------------------------------------------------------------------------- 1 | 2 | DESTDIR= 3 | PREFIX= 4 | 5 | all: 6 | echo "All done." 7 | echo "Run make install DESTDIR=/usr/share/somewhere" 8 | 9 | install: 10 | install -d "${DESTDIR}/${PREFIX}" 11 | install -m 0755 build-* "${DESTDIR}/${PREFIX}" 12 | install -m 0755 clean-all list-crl inherit-inter pkitool revoke-full sign-req whichopensslcnf "${DESTDIR}/${PREFIX}" 13 | install -m 0644 openssl-0.9.6.cnf openssl.cnf README vars "${DESTDIR}/${PREFIX}" 14 | -------------------------------------------------------------------------------- /rabbitmq/README: -------------------------------------------------------------------------------- 1 | This is a cookbook for managing RabbitMQ with Chef. It has sane defaults, but can also be configured via attributes. It is quite useful as is, but has two areas for improvement: 2 | 3 | 1) While it can create cluster configuration files, it does not currently do the dance to join the cluster members to each other. 4 | 5 | 2) The Erlang run parameters are currently an opaque string. They should really be a set of tunables to be manipulated by name. 6 | 7 | Share and enjoy! -------------------------------------------------------------------------------- /ruby_enterprise/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "ops@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures ruby-enterprise" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.2.3" 7 | 8 | recipe "ruby_enterprise", "Installs Ruby Enterprise Edition" 9 | 10 | depends "build-essential" 11 | %w{redhat centos fedora ubuntu}.each do |os| 12 | supports os 13 | end 14 | -------------------------------------------------------------------------------- /ant/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures ant" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.10.0" 7 | %w{ java jpackage }.each do |cb| 8 | depends cb 9 | end 10 | %w{ debian ubuntu centos redhat fedora }.each do |os| 11 | supports os 12 | end 13 | 14 | recipe "ant::default", "Installs and configures Ant" -------------------------------------------------------------------------------- /bootstrap/templates/default/sv-chef-client-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> 3 | exec 2>&1 4 | exec /usr/bin/env chef-client -i <%= node[:bootstrap][:chef][:client_interval] %> -s <%= node[:bootstrap][:chef][:client_splay] %> <% if node[:bootstrap][:chef][:client_log] != "STDOUT" then -%>-L <%= node[:bootstrap][:chef][:client_log] %><% end -%> 5 | -------------------------------------------------------------------------------- /openldap/templates/default/login_access.conf.erb: -------------------------------------------------------------------------------- 1 | # 2 | # /etc/security/login_access.conf 3 | # 4 | # Prepared for <%= node[:fqdn] %> by Chef 5 | # 6 | <% logingroup = node[:hostname] -%> 7 | <% logingroup = node[:hostname].sub(/^(.+?)\d+(.+)$/, '\1-\2-login') -%> 8 | <% rootgroup = node[:hostname].sub(/^(.+?)\d+(.+)$/, '\1-\2-root') -%> 9 | 10 | +:root:ALL 11 | +:admin:ALL 12 | +:<%= logingroup %>:ALL 13 | +:<%= rootgroup %>:ALL 14 | 15 | # Everyone else cannot login 16 | -:ALL:ALL 17 | -------------------------------------------------------------------------------- /ucspi-tcp/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs ucspi-tcp" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "1.0.0" 7 | 8 | recipe "ucspi-tcp", "Installs ucspi-tcp" 9 | 10 | %w{ build-essential }.each do |cb| 11 | depends cb 12 | end 13 | 14 | %w{ ubuntu debian centos rhel arch }.each do |os| 15 | supports os 16 | end 17 | -------------------------------------------------------------------------------- /CONTRIBUTING: -------------------------------------------------------------------------------- 1 | Chef Project home pages: 2 | 3 | * Wiki: http://wiki.opscode.com/display/chef 4 | * Product page: http://www.opscode.com/chef 5 | 6 | Opscode Cookbook Source code repository: 7 | 8 | * http://github.com/opscode/cookbooks 9 | 10 | Opscode Open Source Ticket Tracking System: 11 | 12 | * http://tickets.opscode.com 13 | 14 | Cookbooks (this repository) use the COOK project. 15 | 16 | How to contribute to Chef: 17 | 18 | * http://wiki.opscode.com/display/chef/How+to+Contribute 19 | -------------------------------------------------------------------------------- /django/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs DJango" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.8.0" 7 | 8 | recipe "django", "Installs django and apache2 with mod_python" 9 | 10 | %w{ ubuntu debian }.each do |os| 11 | supports os 12 | end 13 | 14 | %w{ apache2 python}.each do |cb| 15 | depends cb 16 | end 17 | -------------------------------------------------------------------------------- /ec2/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Manage EC2 metadata as attributes" 5 | version "0.9" 6 | 7 | %w{ ubuntu debian}.each do |os| 8 | supports os 9 | end 10 | 11 | recipe "default", "Default ec2 recipe does not configure anything." 12 | 13 | attribute "ec2_metadata", 14 | :display_name => "EC2 Metadata", 15 | :description => "Retrieve EC2 instance metadata" 16 | -------------------------------------------------------------------------------- /god/templates/default/master.god.erb: -------------------------------------------------------------------------------- 1 | # 2 | # Generated by Chef for <%= node[:hostname] %> 3 | # 4 | God.load "/etc/god/conf.d/*.god" 5 | 6 | God::Contacts::Email.message_settings = { 7 | :from => 'god@<%= node[:domain] %>' 8 | } 9 | 10 | God::Contacts::Email.server_settings = { 11 | :address => "localhost", 12 | :port => 25, 13 | :domain => "<%= node[:domain] %>", 14 | } 15 | 16 | God.contact(:email) do |c| 17 | c.name = 'ops' 18 | c.email = 'ops@<%= node[:domain] %>' 19 | end 20 | 21 | -------------------------------------------------------------------------------- /instiki/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode" 2 | maintainer_email "joshua@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs instiki, a Ruby on Rails wiki server under passenger+Apache2." 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.2.0" 7 | 8 | recipe "instiki", "Installs instiki and sets up an apache vhost under passenger." 9 | %w{ apache2 passenger_apache2 sqlite rails }.each do |cb| 10 | depends cb 11 | end 12 | -------------------------------------------------------------------------------- /apt/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Configures apt and apt services" 5 | version "0.9.1" 6 | recipe "apt", "Runs apt-get update during compile phase and sets up preseed directories" 7 | recipe "apt::cacher", "Set up an APT cache" 8 | recipe "apt::proxy", "Set up an APT proxy" 9 | 10 | %w{ ubuntu debian }.each do |os| 11 | supports os 12 | end 13 | -------------------------------------------------------------------------------- /imagemagick/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures imagemagick" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.2.0" 7 | 8 | recipe "imagemagick", "Installs imagemagick package" 9 | recipe "imagemagick::rmagick", "Installs rmagick gem" 10 | 11 | %w{fedora centos rhel ubuntu debian}.each do |os| 12 | supports os 13 | end 14 | -------------------------------------------------------------------------------- /jetty/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures jetty" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.0.1" 7 | 8 | %w{ java jpackage }.each do |cb| 9 | depends cb 10 | end 11 | 12 | %w{ debian ubuntu centos redhat fedora }.each do |os| 13 | supports os 14 | end 15 | 16 | recipe "jetty::default", "Installs and configures Jetty" -------------------------------------------------------------------------------- /perl/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs perl and provides a define for maintaining CPAN modules" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.10.0" 7 | 8 | recipe "perl", "Installs perl and provides a script to install cpan modules" 9 | 10 | %w{ ubuntu debian centos redhat arch}.each do |os| 11 | supports os 12 | end 13 | -------------------------------------------------------------------------------- /apache2/templates/default/mods/status.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | # 3 | # Allow server status reports generated by mod_status, 4 | # with the URL of http://servername/server-status 5 | # Uncomment and change the ".example.com" to allow 6 | # access from other hosts. 7 | # 8 | 9 | SetHandler server-status 10 | Order deny,allow 11 | Deny from all 12 | Allow from localhost ip6-localhost 13 | # Allow from .example.com 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /kickstart/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode" 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Creates apache2 vhost and serves a kickstart file." 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.4.0" 7 | depends "apache2" 8 | supports "redhat" 9 | supports "centos" 10 | recipe "kickstart", "Empty, use one of the other recipes" 11 | recipe "kickstart::server", "Sets up kickstart as an apache vhost" 12 | -------------------------------------------------------------------------------- /redmine/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs and configures redmine as a Rails app in passenger+apache2" 5 | version "0.10.2" 6 | 7 | recipe "redmine", "Installs and configures redmine under passenger + apache2" 8 | 9 | %w{ apache2 rails passenger_apache2 mysql sqlite }.each do |cb| 10 | depends cb 11 | end 12 | 13 | %w{ ubuntu debian }.each do |os| 14 | supports os 15 | end 16 | -------------------------------------------------------------------------------- /application/templates/default/myproj.conf.erb: -------------------------------------------------------------------------------- 1 | # nginx + passenger application vhost 2 | # 3 | # Generated by Chef for <%= node[:fqdn] %> 4 | # Local modifications will be overwritten. 5 | # 6 | server { 7 | listen 80; 8 | server_name <%= @server_name %><% @server_aliases.each do |a| %><%= " #{a}" %> <% end %>; 9 | root <%= @docroot %>; 10 | error_log <%= node[:nginx][:log_dir] %>/<%= @app %>-error.log; 11 | access_log <%= node[:nginx][:log_dir] %>/<%= @app %>-access.log; 12 | passenger_enabled on; 13 | } 14 | -------------------------------------------------------------------------------- /rabbitmq/templates/default/rabbitmq.config.erb: -------------------------------------------------------------------------------- 1 | ### 2 | # Generated by Chef for <%= node[:fqdn] %> 3 | ### 4 | 5 | NODENAME=<%= node[:rabbitmq][:nodename] %> 6 | NODE_IP_ADDRESS=<%= node[:rabbitmq][:address] %> 7 | NODE_PORT=<%= node[:rabbitmq][:port] %> 8 | SERVER_ERL_ARGS=<%= node[:rabbitmq][:erl_args] %> 9 | CLUSTER_CONFIG_FILE=<%= node[:rabbitmq][:cluster_config] %> 10 | LOG_BASE=<%= node[:rabbitmq][:logdir] %> 11 | MNESIA_BASE=<%= node[:rabbitmq][:mnesiadir] %> 12 | SERVER_START_ARGS=<%= node[:rabbitmq][:start_args] %> 13 | -------------------------------------------------------------------------------- /sbuild/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode" 2 | maintainer_email "joshua@opscode.com" 3 | license "Apache 2.0" 4 | description "Creates an sbuild host for debian packages." 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.3.2" 7 | 8 | depends "xfs" 9 | depends "lvm" 10 | 11 | recipe "sbuild", "Installs packages for building Debian packages with sbuild" 12 | recipe "sbuild::schroots", "Sets up logical volumes for sbuild chroots for sid, karmic and lucid" 13 | -------------------------------------------------------------------------------- /application/templates/default/rails_nginx_passenger.conf.erb: -------------------------------------------------------------------------------- 1 | # nginx + passenger application vhost 2 | # 3 | # Generated by Chef for <%= node[:fqdn] %> 4 | # Local modifications will be overwritten. 5 | # 6 | server { 7 | listen 80; 8 | server_name <%= @server_name %><% @server_aliases.each do |a| %><%= " #{a}" %> <% end %>; 9 | root <%= @docroot %>; 10 | error_log <%= node[:nginx][:log_dir] %>/<%= @app %>-error.log; 11 | access_log <%= node[:nginx][:log_dir] %>/<%= @app %>-access.log; 12 | passenger_enabled on; 13 | } 14 | -------------------------------------------------------------------------------- /god/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs and configures god and provides a define for monitoring" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.7.1" 7 | 8 | recipe "god", "Installs god and starts it as a runit service" 9 | 10 | %w{debian ubuntu}.each do |os| 11 | supports os 12 | end 13 | 14 | %w{ ruby runit }.each do |cb| 15 | depends cb 16 | end 17 | -------------------------------------------------------------------------------- /nagios/files/default/plugins/nagios_helper.rb: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'choice' 3 | 4 | module NagiosHelper 5 | EXIT_OK = 0 6 | EXIT_WARNING = 1 7 | EXIT_CRITICAL = 2 8 | EXIT_UNKNOWN = 3 9 | 10 | def warning(text) 11 | puts "WARNING: #{text}" 12 | exit EXIT_WARNING 13 | end 14 | 15 | def critical(text) 16 | puts "CRITICAL: #{text}" 17 | exit EXIT_CRITICAL 18 | end 19 | 20 | def unknown(text) 21 | puts "ERROR #{text}" 22 | exit EXIT_UNKNOWN 23 | end 24 | 25 | end 26 | 27 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/clean-all: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Initialize the $KEY_DIR directory. 4 | # Note that this script does a 5 | # rm -rf on $KEY_DIR so be careful! 6 | 7 | if [ "$KEY_DIR" ]; then 8 | rm -rf "$KEY_DIR" 9 | mkdir "$KEY_DIR" && \ 10 | chmod go-rwx "$KEY_DIR" && \ 11 | touch "$KEY_DIR/index.txt" && \ 12 | echo 01 >"$KEY_DIR/serial" 13 | else 14 | echo 'Please source the vars script first (i.e. "source ./vars")' 15 | echo 'Make sure you have edited it to reflect your configuration.' 16 | fi 17 | -------------------------------------------------------------------------------- /haproxy/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs and configures haproxy" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.8.1" 7 | 8 | recipe "haproxy", "Installs and configures haproxy" 9 | recipe "haproxy::app_lb", "Installs and configures haproxy by searching for nodes of a particular role" 10 | 11 | %w{ debian ubuntu }.each do |os| 12 | supports os 13 | end 14 | -------------------------------------------------------------------------------- /munin/files/default/munin-cron: -------------------------------------------------------------------------------- 1 | # 2 | # cron-jobs for munin 3 | # 4 | 5 | MAILTO=root 6 | 7 | @reboot root if [ ! -d /var/run/munin ]; then /bin/bash -c 'perms=(`/usr/sbin/dpkg-statoverride --list /var/run/munin`); mkdir /var/run/munin; chown ${perms[0]:-munin}:${perms[1]:-root} /var/run/munin; chmod ${perms[2]:-0755} /var/run/munin'; fi 8 | */5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi 9 | 14 10 * * * munin if [ -x /usr/share/munin/munin-limits ]; then /usr/share/munin/munin-limits; fi 10 | -------------------------------------------------------------------------------- /activemq/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs activemq and sets it up as a runit service" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.3.2" 7 | 8 | recipe "activemq", "Installs ActiveMQ from source and sets it up as a runit service" 9 | 10 | %w{ubuntu debian}.each do |os| 11 | supports os 12 | end 13 | 14 | %w{java runit}.each do |cb| 15 | depends cb 16 | end 17 | -------------------------------------------------------------------------------- /daemontools/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures daemontools" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.9.0" 7 | recipe "daemontools", "Installs daemontools by source or package depending on platform" 8 | 9 | %w{ build-essential ucspi-tcp }.each do |cb| 10 | depends cb 11 | end 12 | 13 | %w{ debian ubuntu arch }.each do |os| 14 | supports os 15 | end 16 | -------------------------------------------------------------------------------- /subversion/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs subversion" 5 | version "0.8.3" 6 | 7 | %w{ redhat centos fedora ubuntu debian }.each do |os| 8 | supports os 9 | end 10 | 11 | depends "apache2" 12 | 13 | recipe "subversion", "Includes the client recipe." 14 | recipe "subversion::client", "Subversion Client installs subversion and some extra svn libs" 15 | recipe "subversion::server", "Subversion Server (Apache2 mod_dav_svn)" 16 | -------------------------------------------------------------------------------- /git/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs git and/or sets up a Git server daemon" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.9.0" 7 | recipe "git", "Installs git" 8 | recipe "git::server", "Sets up a runit_service for git daemon" 9 | 10 | %w{ ubuntu debian arch}.each do |os| 11 | supports os 12 | end 13 | 14 | %w{ runit }.each do |cb| 15 | depends cb 16 | end 17 | -------------------------------------------------------------------------------- /sudo/templates/default/sudoers.erb: -------------------------------------------------------------------------------- 1 | # 2 | # /etc/sudoers 3 | # 4 | # Generated by Chef for <%= node[:fqdn] %> 5 | # 6 | 7 | Defaults !lecture,tty_tickets,!fqdn 8 | 9 | # User privilege specification 10 | root ALL=(ALL) ALL 11 | 12 | <% @sudoers_users.each do |user| -%> 13 | <%= user %> ALL=(ALL) ALL 14 | <% end -%> 15 | 16 | # Members of the sysadmin group may gain root privileges 17 | %sysadmin ALL=(ALL) ALL 18 | 19 | <% @sudoers_groups.each do |group| -%> 20 | # Members of the group '<%= group %>' may gain root privileges 21 | %<%= group %> ALL=(ALL) ALL 22 | <% end -%> -------------------------------------------------------------------------------- /dynect/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "LWRP for managing DNS records with Dynect's REST API" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.3.2" 7 | recipe "dynect", "Installs the dynect_rest RubyGem" 8 | recipe "dynect::ec2", "Dynamically configures Dyn resource records for EC2 nodes based on instance ID and prepopulated attributes on the node" 9 | recipe "dynect::a_record", "Example resource usage to configure an A record" 10 | -------------------------------------------------------------------------------- /samba/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures samba" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.10.3" 7 | 8 | recipe "samba::default", "Includes the samba::client recipe" 9 | recipe "samba::client", "Installs smbclient package" 10 | recipe "samba::server", "Installs samba server packages and configures smb.conf" 11 | 12 | %w{ arch debian ubuntu centos fedora redhat }.each do |os| 13 | supports os 14 | end 15 | -------------------------------------------------------------------------------- /apache2/templates/default/apache2.god.erb: -------------------------------------------------------------------------------- 1 | God.watch do |w| 2 | w.name = "apache2" 3 | w.interval = 30.seconds # default 4 | w.start = "<%= @params[:start] %>" 5 | w.stop = "/etc/init.d/httpd stop" 6 | w.restart = "<%= @params[:restart] %>" 7 | w.start_grace = 10.seconds 8 | w.restart_grace = 10.seconds 9 | w.pid_file = "/var/run/httpd.pid" 10 | w.behavior(:clean_pid_file) 11 | 12 | w.start_if do |start| 13 | start.condition(:process_running) do |c| 14 | c.interval = 5.seconds 15 | c.running = false 16 | c.notify = 'admin' 17 | end 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /java/files/default/java.seed: -------------------------------------------------------------------------------- 1 | sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true 2 | sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true 3 | sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true 4 | sun-java6-jre sun-java6-jre/stopthread boolean true 5 | sun-java6-jre sun-java6-jre/jcepolicy note 6 | sun-java6-bin shared/error-sun-dlj-v1-1 error 7 | sun-java6-jdk shared/error-sun-dlj-v1-1 error 8 | sun-java6-jre shared/error-sun-dlj-v1-1 error 9 | sun-java6-bin shared/present-sun-dlj-v1-1 note 10 | sun-java6-jdk shared/present-sun-dlj-v1-1 note 11 | sun-java6-jre shared/present-sun-dlj-v1-1 note -------------------------------------------------------------------------------- /munin/templates/default/munin.conf.erb: -------------------------------------------------------------------------------- 1 | # The next three variables specifies where the location of the RRD 2 | # databases, the HTML output, and the logs, severally. They all 3 | # must be writable by the user running munin-cron. 4 | dbdir /var/lib/munin 5 | htmldir /var/www/munin 6 | logdir /var/log/munin 7 | rundir /var/run/munin 8 | 9 | # Where to look for the HTML templates 10 | tmpldir /etc/munin/templates 11 | 12 | # a simple host tree 13 | <% @munin_nodes.each do |system| -%> 14 | [<%= system[:hostname] %>] 15 | address <%= system[:ipaddress] %> 16 | use_node_name yes 17 | 18 | <% end -%> 19 | -------------------------------------------------------------------------------- /nagios/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs and configures nagios" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.3.4" 7 | 8 | recipe "nagios", "Empty, use one of the other recipes" 9 | recipe "nagios::client", "Installs and configures a nagios client with nrpe" 10 | recipe "nagios::server", "Installs and configures a nagios server" 11 | 12 | %w{ debian ubuntu }.each do |os| 13 | supports os 14 | end 15 | 16 | depends "apache2" 17 | -------------------------------------------------------------------------------- /aws/resources/ebs_volume.rb: -------------------------------------------------------------------------------- 1 | actions :create, :attach, :detach, :snapshot, :prune 2 | 3 | attribute :aws_access_key, :kind_of => String 4 | attribute :aws_secret_access_key, :kind_of => String 5 | attribute :size, :kind_of => Integer 6 | attribute :snapshot_id, :kind_of => String 7 | attribute :availability_zone, :kind_of => String 8 | attribute :device, :kind_of => String 9 | attribute :volume_id, :kind_of => String 10 | attribute :timeout, :default => 3*60 # 3 mins, nil or 0 for no timeout 11 | attribute :snapshots_to_keep, :default => 2 12 | -------------------------------------------------------------------------------- /chef/templates/default/solr.rb.erb: -------------------------------------------------------------------------------- 1 | # 2 | # Chef SOLR Config File 3 | # 4 | # Dynamically generated by Chef - local modifications will be replaced 5 | 6 | log_location STDOUT 7 | 8 | search_index_path "<%= node[:chef][:path] %>/search_index" 9 | 10 | supportdir = "<%= node[:chef][:path] %>/support" 11 | solr_jetty_path File.join(supportdir, "solr", "jetty") 12 | solr_data_path File.join(supportdir, "solr", "data") 13 | solr_home_path File.join(supportdir, "solr", "home") 14 | solr_heap_size "<%= node[:chef][:solr_heap_size] %>" 15 | 16 | solr_url "http://localhost:8983" 17 | 18 | amqp_pass "testing" 19 | -------------------------------------------------------------------------------- /munin/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Instsalls and configures munin" 5 | version "0.9.1" 6 | 7 | depends "apache2" 8 | supports "debian" 9 | supports "ubuntu" 10 | 11 | recipe "munin", "Empty, use one of the other recipes" 12 | recipe "munin::client", "Instlls munin and configures a client by searching for the server, which should have a role named monitoring" 13 | recipe "munin::server", "Installs munin and configures a server, node should have the role 'monitoring' so clients can find it" 14 | -------------------------------------------------------------------------------- /openldap/templates/default/libnss-ldap.conf.erb: -------------------------------------------------------------------------------- 1 | # 2 | # libnss-ldap.conf generated for <%= node[:hostname] %> 3 | # 4 | # Managed by Chef 5 | # 6 | # $Id:$ 7 | 8 | host <%= node[:openldap][:server] %> 9 | port 389 10 | #bind_policy soft 11 | nss_reconnect_tries 2 12 | ldap_version 3 13 | 14 | # Where to find data 15 | base <%= node[:openldap][:basedn] %> 16 | scope sub 17 | nss_base_passwd ou=people,<%= node[:openldap][:basedn] %> 18 | nss_base_shadow ou=people,<%= node[:openldap][:basedn] %> 19 | nss_base_group ou=group,<%= node[:openldap][:basedn] %> 20 | 21 | # TLS Options 22 | ssl start_tls 23 | tls_checkpeer no 24 | -------------------------------------------------------------------------------- /quick_start/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Example cookbook for quick_start wiki document" 5 | version "0.8" 6 | 7 | recipe "quick_start", "Quick start example cookbook" 8 | 9 | %w{ 10 | redhat fedora centos 11 | ubuntu debian 12 | macosx freebsd openbsd 13 | solaris 14 | }.each do |os| 15 | supports os 16 | end 17 | 18 | attribute "quick_start/deep_thought", 19 | :display_name => "Quick Start Deep Thought", 20 | :description => "A deep thought", 21 | :default => "If a tree falls in the forest..." 22 | -------------------------------------------------------------------------------- /openldap/files/default/nsswitch.conf: -------------------------------------------------------------------------------- 1 | # Generated by Chef. Local modifications will be overwritten. 2 | # 3 | # /etc/nsswitch.conf 4 | # 5 | # Example configuration of GNU Name Service Switch functionality. 6 | # If you have the `glibc-doc-reference' and `info' packages installed, try: 7 | # `info libc "Name Service Switch"' for information about this file. 8 | 9 | passwd: files ldap 10 | group: files ldap 11 | shadow: files ldap 12 | 13 | hosts: files dns 14 | networks: files 15 | 16 | protocols: db files 17 | services: db files 18 | ethers: db files 19 | rpc: db files 20 | 21 | netgroup: nis 22 | -------------------------------------------------------------------------------- /maradns/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs and configures maradns" 5 | version "0.8.1" 6 | 7 | recipe "maradns", "Installs and configures maradns" 8 | 9 | %w{ ubuntu debian }.each do |os| 10 | supports os 11 | end 12 | 13 | attribute "maradns", 14 | :display_name => "MaraDNS", 15 | :description => "Hash of MaraDNS attributes", 16 | :type => "hash" 17 | 18 | attribute "maradns/recursive_acl", 19 | :display_name => "MaraDNS Recursive ACL", 20 | :description => "Sets the recursive_acl setting in mararc.erb", 21 | :default => "" 22 | -------------------------------------------------------------------------------- /rabbitmq/attributes/default.rb: -------------------------------------------------------------------------------- 1 | default[:rabbitmq][:nodename] = "rabbit" 2 | default[:rabbitmq][:address] = "0.0.0.0" 3 | default[:rabbitmq][:port] = "5672" 4 | default[:rabbitmq][:erl_args] = "+K true +A 30 \ 5 | -kernel inet_default_listen_options [{nodelay,true},{sndbuf,16384},{recbuf,4096}] \ 6 | -kernel inet_default_connect_options [{nodelay,true}]" 7 | default[:rabbitmq][:start_args] = "" 8 | default[:rabbitmq][:logdir] = "/var/log/rabbitmq" 9 | default[:rabbitmq][:mnesiadir] = "/var/lib/rabbitmq/mnesia" 10 | default[:rabbitmq][:cluster] = "no" 11 | default[:rabbitmq][:cluster_config] = "/etc/rabbitmq/rabbitmq_cluster.config" 12 | default[:rabbitmq][:cluster_disk_nodes] = [] 13 | -------------------------------------------------------------------------------- /riak/templates/default/iptables.erb: -------------------------------------------------------------------------------- 1 | # Generated by Chef for <%= node[:fqdn] %> 2 | -A INPUT -p TCP --dport 4369 -j ACCEPT 3 | <% if node[:riak][:limit_port_range] %> 4 | -A INPUT -p TCP --dst <%= node[:riak][:core][:web_ip] %> --dport <%= node[:riak][:kernel][:inet_dist_listen_min] %>:<%= node[:riak][:kernel][:inet_dist_listen_max] %> -j ACCEPT 5 | <% end %> 6 | -A INPUT -p TCP --dst <%= node[:riak][:core][:web_ip] %> --dport <%= node[:riak][:core][:web_port] %> -j ACCEPT 7 | -A INPUT -p TCP --dst <%= node[:riak][:kv][:pb_ip] %> --dport <%= node[:riak][:kv][:pb_port] %> -j ACCEPT 8 | -A INPUT -p TCP --dst <%= node[:riak][:kv][:pb_ip] %> --dport <%= node[:riak][:kv][:handoff_port] %> -j ACCEPT 9 | -------------------------------------------------------------------------------- /redmine/templates/default/redmine.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | ServerName <%= @params[:server_name] %> 3 | ServerAlias <% @params[:server_aliases].each do |a| %><%= "#{a}" %> <% end %> 4 | DocumentRoot <%= @params[:docroot] %> 5 | 6 | RailsBaseURI / 7 | RailsEnv <%= @params[:rails_env] %> 8 | 9 | > 10 | Options FollowSymLinks 11 | AllowOverride None 12 | Order allow,deny 13 | Allow from all 14 | 15 | 16 | LogLevel info 17 | ErrorLog <%= node[:apache][:log_dir] %>/<%= @params[:name] %>-error.log 18 | CustomLog <%= node[:apache][:log_dir] %>/<%= @params[:name] %>-access.log combined 19 | 20 | -------------------------------------------------------------------------------- /instiki/templates/default/instiki.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | ServerName <%= @params[:server_name] %> 3 | ServerAlias <% @params[:server_aliases].each do |a| %><%= "#{a}" %> <% end %> 4 | DocumentRoot <%= @params[:docroot] %> 5 | 6 | RailsBaseURI / 7 | RailsEnv <%= @params[:rails_env] %> 8 | 9 | > 10 | Options FollowSymLinks 11 | AllowOverride None 12 | Order allow,deny 13 | Allow from all 14 | 15 | 16 | LogLevel info 17 | ErrorLog <%= node[:apache][:log_dir] %>/<%= @params[:name] %>-error.log 18 | CustomLog <%= node[:apache][:log_dir] %>/<%= @params[:name] %>-access.log combined 19 | 20 | 21 | -------------------------------------------------------------------------------- /ntp/templates/default/ntp.conf.erb: -------------------------------------------------------------------------------- 1 | driftfile /var/lib/ntp/ntp.drift 2 | statsdir /var/log/ntpstats/ 3 | 4 | statistics loopstats peerstats clockstats 5 | filegen loopstats file loopstats type day enable 6 | filegen peerstats file peerstats type day enable 7 | filegen clockstats file clockstats type day enable 8 | 9 | <% if node[:ntp][:is_server] -%> 10 | server 0.us.pool.ntp.org 11 | server 1.us.pool.ntp.org 12 | server 2.us.pool.ntp.org 13 | server 3.us.pool.ntp.org 14 | <% else -%> 15 | <% node[:ntp][:servers].each do |ntpserver| -%> 16 | server <%= ntpserver %> 17 | <% end -%> 18 | <% end -%> 19 | restrict default kod notrap nomodify nopeer noquery 20 | 21 | restrict 127.0.0.1 nomodify 22 | -------------------------------------------------------------------------------- /apparmor/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "apparmor", 3 | "description": "Disables apparmor service on Ubuntu", 4 | "long_description": "", 5 | "maintainer": "Opscode, Inc.", 6 | "maintainer_email": "cookbooks@opscode.com", 7 | "license": "Apache 2.0", 8 | "platforms": { 9 | "ubuntu": [ 10 | 11 | ] 12 | }, 13 | "dependencies": { 14 | }, 15 | "recommendations": { 16 | }, 17 | "suggestions": { 18 | }, 19 | "conflicting": { 20 | }, 21 | "providing": { 22 | }, 23 | "replacing": { 24 | }, 25 | "attributes": { 26 | }, 27 | "groupings": { 28 | }, 29 | "recipes": { 30 | "default": "Disables apparmor service on Ubuntu" 31 | }, 32 | "version": "0.9.0" 33 | } -------------------------------------------------------------------------------- /tomcat6/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs and configures all aspects of tomcat6 using custom local installation" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.5.1" 7 | recipe "tomcat6", "Main Tomcat 6 configuration" 8 | 9 | %w{redhat centos debian ubuntu}.each do |os| 10 | supports os 11 | end 12 | 13 | attribute "tomcat6/with_native", 14 | :display_name => "Tomcat native support", 15 | :description => "works for centos, install tomcat-native libraries", 16 | :type => "string", 17 | :default => "false" 18 | -------------------------------------------------------------------------------- /unicorn/README.rdoc: -------------------------------------------------------------------------------- 1 | = LICENSE AND AUTHOR: 2 | 3 | Author:: Adam Jacob 4 | 5 | Copyright 2009-2010, Opscode, Inc. 6 | 7 | Licensed under the Apache License, Version 2.0 (the "License"); 8 | you may not use this file except in compliance with the License. 9 | You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | -------------------------------------------------------------------------------- /apache2/templates/default/mods/proxy.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | #turning ProxyRequests on and allowing proxying from all may allow 3 | #spammers to use your proxy to send email. 4 | 5 | ProxyRequests Off 6 | 7 | 8 | AddDefaultCharset off 9 | Order deny,allow 10 | Deny from all 11 | #Allow from .example.com 12 | 13 | 14 | # Enable/disable the handling of HTTP/1.1 "Via:" headers. 15 | # ("Full" adds the server version; "Block" removes all outgoing Via: headers) 16 | # Set to one of: Off | On | Full | Block 17 | 18 | ProxyVia On 19 | 20 | -------------------------------------------------------------------------------- /tomcat6/files/centos/rightscale.repo: -------------------------------------------------------------------------------- 1 | [rightscale] 2 | name=RightScale Packages for Enterprise Linux 5 3 | baseurl=http://mirror.rightscale.com/rightscale_software/centos/5/i386 4 | http://mirror1.rightscale.com/rightscale_software/centos/5/i386 5 | http://mirror2.rightscale.com/rightscale_software/centos/5/i386 6 | http://mirror1-int.rightscale.com/rightscale_software/centos/5/i386 7 | http://mirror2-int.rightscale.com/rightscale_software/centos/5/i386 8 | http://mirror3-int.rightscale.com/rightscale_software/centos/5/i386 9 | failovermethod=priority 10 | enabled=1 11 | gpgcheck=0 12 | gpgkey= 13 | # set metadata to expire faster then main 14 | metadata_expire=30 15 | 16 | -------------------------------------------------------------------------------- /chef/templates/default/chef-solr.pill.erb: -------------------------------------------------------------------------------- 1 | Bluepill.application("chef-solr") do |app| 2 | 3 | app.process("chef-solr") do |process| 4 | process.pid_file = "<%= node[:chef][:run_path] %>/chef-solr.pid" 5 | process.working_dir = "<%= node[:chef][:path] %>" 6 | process.start_command = "env PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> chef-solr" 7 | process.stdout = process.stderr = "<%= node[:chef][:log_dir] %>/solr.log" 8 | process.start_grace_time = 5.seconds 9 | process.stop_grace_time = 5.seconds 10 | process.restart_grace_time = 30.seconds 11 | end 12 | 13 | end 14 | -------------------------------------------------------------------------------- /openldap/templates/default/ldap.conf.erb: -------------------------------------------------------------------------------- 1 | # 2 | # <%= node[:openldap][:dir] %>.conf generated for <%= node[:hostname] %> 3 | # 4 | # Managed by Chef 5 | # 6 | 7 | host <%= node[:openldap][:server] %> 8 | port 389 9 | bind_policy soft 10 | 11 | ldap_version 3 12 | 13 | # Where to find data 14 | base <%= node[:openldap][:basedn] %> 15 | scope sub 16 | nss_base_passwd ou=people,<%= node[:openldap][:basedn] %> 17 | nss_base_shadow ou=people,<%= node[:openldap][:basedn] %> 18 | nss_base_group ou=group,<%= node[:openldap][:basedn] %> 19 | nss_base_automount ou=automount,<%= node[:openldap][:basedn] %> 20 | 21 | # TLS Options 22 | ssl start_tls 23 | tls_checkpeer no 24 | 25 | # Password options 26 | pam_password md5 27 | -------------------------------------------------------------------------------- /gems/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: gems 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | -------------------------------------------------------------------------------- /munin/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: munin 3 | # Recipe:: default 4 | # 5 | # Copyright 2010, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | -------------------------------------------------------------------------------- /bootstrap/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: bootstrap 3 | # Recipe:: client 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | -------------------------------------------------------------------------------- /ec2/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: ec2 3 | # Recipe:: default 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | -------------------------------------------------------------------------------- /kickstart/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: kickstart 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | -------------------------------------------------------------------------------- /openldap/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: openldap 3 | # Recipe:: default 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | -------------------------------------------------------------------------------- /openssl/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: openssl 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | -------------------------------------------------------------------------------- /postfix/attributes/default.rb: -------------------------------------------------------------------------------- 1 | default[:postfix][:mail_type] = "client" 2 | default[:postfix][:myhostname] = fqdn 3 | default[:postfix][:mydomain] = domain 4 | default[:postfix][:myorigin] = "$myhostname" 5 | default[:postfix][:relayhost] = "" 6 | default[:postfix][:mail_relay_networks] = "127.0.0.0/8" 7 | 8 | default[:postfix][:smtp_sasl_auth_enable] = "no" 9 | default[:postfix][:smtp_sasl_password_maps] = "hash:/etc/postfix/sasl_passwd" 10 | default[:postfix][:smtp_sasl_security_options] = "noanonymous" 11 | default[:postfix][:smtp_tls_cafile] = "/etc/postfix/cacert.pem" 12 | default[:postfix][:smtp_use_tls] = "yes" 13 | default[:postfix][:smtp_sasl_user_name] = "" 14 | default[:postfix][:smtp_sasl_passwd] = "" 15 | -------------------------------------------------------------------------------- /reprepro/templates/default/apt_repo.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | ServerAdmin <%= node[:reprepro][:pgp_email] %> 3 | ServerName <%= node[:reprepro][:fqdn] %> 4 | ServerAlias <%= node[:hostname] %> <%= node[:fqdn] %> 5 | 6 | DocumentRoot <%= @repo_dir %> 7 | 8 | Options FollowSymLinks 9 | AllowOverride None 10 | 11 | 12 | > 13 | Options Indexes FollowSymLinks MultiViews 14 | AllowOverride None 15 | Order allow,deny 16 | allow from all 17 | 18 | 19 | LogLevel warn 20 | ErrorLog /var/log/apache2/apt_repo-error.log 21 | CustomLog /var/log/apache2/apt_repo-access.log combined 22 | ServerSignature On 23 | 24 | -------------------------------------------------------------------------------- /ruby/recipes/1.8.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: ruby 3 | # Recipe:: 1.8 4 | # 5 | # Copyright 2010, FindsYou Limited 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | ruby_packages "1.8" 21 | -------------------------------------------------------------------------------- /ruby/recipes/1.9.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: ruby 3 | # Recipe:: 1.9 4 | # 5 | # Copyright 2010, FindsYou Limited 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | ruby_packages "1.9" 21 | -------------------------------------------------------------------------------- /rubygems/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": { 3 | }, 4 | "attributes": { 5 | }, 6 | "maintainer": "Opscode, Inc.", 7 | "suggestions": { 8 | }, 9 | "dependencies": { 10 | }, 11 | "maintainer_email": "cookbooks@opscode.com", 12 | "conflicting": { 13 | }, 14 | "platforms": { 15 | }, 16 | "license": "Apache 2.0", 17 | "version": "0.2.1", 18 | "providing": { 19 | }, 20 | "recipes": { 21 | "rubygems": "Configures rubygems.org source" 22 | }, 23 | "replacing": { 24 | }, 25 | "name": "rubygems", 26 | "description": "Opscode rubygems config", 27 | "groupings": { 28 | }, 29 | "long_description": "Configures rubygems sources lists\n" 30 | } -------------------------------------------------------------------------------- /tmux/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: tmux 3 | # Recipe:: default 4 | # 5 | # Copyright 2010, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # 18 | 19 | package "tmux" do 20 | action :install 21 | end 22 | -------------------------------------------------------------------------------- /apache2/templates/default/a2dismod.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | SYSCONFDIR='<%= node[:apache][:dir] %>' 4 | 5 | if [ -z $1 ]; then 6 | echo "Which module would you like to disable?" 7 | echo -n "Your choices are: " 8 | ls $SYSCONFDIR/mods-enabled/*.load | \ 9 | sed -e "s,$SYSCONFDIR/mods-enabled/,,g" | sed -e 's/\.load$//g;' | xargs echo 10 | echo -n "Module name? " 11 | read MODNAME 12 | else 13 | MODNAME=$1 14 | fi 15 | 16 | if ! [ -e $SYSCONFDIR/mods-enabled/$MODNAME.load ]; then 17 | echo "This module is already disabled, or does not exist!" 18 | exit 1 19 | fi 20 | 21 | rm -f $SYSCONFDIR/mods-enabled/$MODNAME.* 22 | echo "Module $MODNAME disabled; reload apache to fully disable." -------------------------------------------------------------------------------- /boost/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: boost 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | 19 | package "libboost-dev" 20 | -------------------------------------------------------------------------------- /ruby/recipes/1.9.1.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: ruby 3 | # Recipe:: 1.9.1 4 | # 5 | # Copyright 2010, FindsYou Limited 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | ruby_packages "1.9.1" 21 | -------------------------------------------------------------------------------- /rush/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: rush 3 | # Recipe:: default 4 | # 5 | # Copyright 2010, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | gem_package "rush" 21 | -------------------------------------------------------------------------------- /zsh/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": { 3 | }, 4 | "attributes": { 5 | }, 6 | "maintainer": "Opscode, Inc.", 7 | "suggestions": { 8 | }, 9 | "dependencies": { 10 | }, 11 | "maintainer_email": "cookbooks@opscode.com", 12 | "conflicting": { 13 | }, 14 | "platforms": { 15 | "debian": [ 16 | 17 | ], 18 | "ubuntu": [ 19 | 20 | ] 21 | }, 22 | "license": "Apache 2.0", 23 | "version": "0.7.1", 24 | "providing": { 25 | }, 26 | "recipes": { 27 | "zsh": "Installs zsh" 28 | }, 29 | "replacing": { 30 | }, 31 | "name": "zsh", 32 | "description": "Installs zsh", 33 | "groupings": { 34 | }, 35 | "long_description": "" 36 | } -------------------------------------------------------------------------------- /rsync/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: rsync 3 | # Recipe:: default 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | package "rsync" 21 | -------------------------------------------------------------------------------- /trac/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "recipes": { 3 | "trac": "" 4 | }, 5 | "replacing": { 6 | 7 | }, 8 | "version": "0.1.0", 9 | "platforms": { 10 | 11 | }, 12 | "maintainer": "Peter Crossley", 13 | "description": "Installs/Configures Trac", 14 | "recommendations": { 15 | 16 | }, 17 | "maintainer_email": "peterc@xley.com", 18 | "suggestions": { 19 | 20 | }, 21 | "conflicting": { 22 | 23 | }, 24 | "dependencies": { 25 | "apache2": [ 26 | 27 | ] 28 | }, 29 | "name": "trac", 30 | "attributes": { 31 | 32 | }, 33 | "providing": { 34 | "trac": [ 35 | 36 | ] 37 | }, 38 | "license": "Apache 2.0", 39 | "long_description": "= DESCRIPTION:\n\n= REQUIREMENTS:\n\n= ATTRIBUTES: \n\n= USAGE:\n\n" 40 | } 41 | -------------------------------------------------------------------------------- /apache2/recipes/mod_cgi.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: cgi 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "cgi" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_dav.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: dav 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "dav" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_env.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: env 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "env" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_ldap.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: ldap 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "ldap" 21 | -------------------------------------------------------------------------------- /radiant/templates/default/radiant.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | ServerName <%= @params[:server_name] %> 3 | ServerAlias <% @params[:server_aliases].each do |a| %><%= "#{a}" %> <% end %> 4 | DocumentRoot <%= @params[:docroot] %> 5 | 6 | RailsBaseURI / 7 | RailsEnv <%= @params[:rails_env] %> 8 | 9 | PassengerMaxPoolSize <%= node[:rails][:max_pool_size] %> 10 | 11 | > 12 | Options FollowSymLinks 13 | AllowOverride None 14 | Order allow,deny 15 | Allow from all 16 | 17 | 18 | LogLevel info 19 | ErrorLog <%= node[:apache][:log_dir] %>/<%= @params[:name] %>-error.log 20 | CustomLog <%= node[:apache][:log_dir] %>/<%= @params[:name] %>-access.log combined 21 | 22 | -------------------------------------------------------------------------------- /redmine/templates/default/database.yml.erb: -------------------------------------------------------------------------------- 1 | # MySQL (default setup). Versions 4.1 and 5.0 are recommended. 2 | # 3 | # Get the fast C bindings: 4 | # gem install mysql 5 | # (on OS X: gem install mysql -- --include=/usr/local/lib) 6 | # And be sure to use new-style password hashing: 7 | # http://dev.mysql.com/doc/refman/5.0/en/old-client.html 8 | 9 | <% case node[:redmine][:db][:type] -%> 10 | <% when "mysql" -%> 11 | production: 12 | adapter: mysql 13 | database: redmine 14 | host: <%= @database_server %> 15 | username: <%= node[:redmine][:db][:user] %> 16 | password: <%= node[:redmine][:db][:password] %> 17 | encoding: utf8 18 | <% when "sqlite" -%> 19 | production: 20 | adapter: sqlite3 21 | dbfile: db/production.db 22 | <% end -%> 23 | -------------------------------------------------------------------------------- /capistrano/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: capistrano 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | gem_package "capistrano" 21 | -------------------------------------------------------------------------------- /chef/templates/default/chef-solr-indexer.pill.erb: -------------------------------------------------------------------------------- 1 | Bluepill.application("chef-solr-indexer") do |app| 2 | 3 | app.process("chef-solr-indexer") do |process| 4 | process.pid_file = "<%= node[:chef][:run_path] %>/chef-solr-indexer.pid" 5 | process.working_dir = "<%= node[:chef][:path] %>" 6 | process.start_command = "env PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> chef-solr-indexer" 7 | process.stdout = process.stderr = "<%= node[:chef][:log_dir] %>/solr-indexer.log" 8 | process.start_grace_time = 5.seconds 9 | process.stop_grace_time = 5.seconds 10 | process.restart_grace_time = 30.seconds 11 | end 12 | 13 | end 14 | -------------------------------------------------------------------------------- /samba/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: samba 3 | # Recipe:: default 4 | # 5 | # Copyright 2010, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | include_recipe "samba::client" 21 | -------------------------------------------------------------------------------- /sqlite/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": { 3 | }, 4 | "attributes": { 5 | }, 6 | "maintainer": "Opscode, Inc.", 7 | "suggestions": { 8 | }, 9 | "dependencies": { 10 | }, 11 | "maintainer_email": "cookbooks@opscode.com", 12 | "conflicting": { 13 | }, 14 | "platforms": { 15 | "debian": [ 16 | 17 | ], 18 | "ubuntu": [ 19 | 20 | ] 21 | }, 22 | "license": "Apache 2.0", 23 | "version": "0.7.1", 24 | "providing": { 25 | }, 26 | "recipes": { 27 | "sqlite": "Installs sqlite" 28 | }, 29 | "replacing": { 30 | }, 31 | "name": "sqlite", 32 | "description": "Installs sqlite", 33 | "groupings": { 34 | }, 35 | "long_description": "" 36 | } -------------------------------------------------------------------------------- /apache2/recipes/mod_expires.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: expires 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "expires" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_headers.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: headers 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "headers" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_proxy_ajp.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: proxy 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "proxy_ajp" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_rewrite.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: rewrite 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "rewrite" 21 | -------------------------------------------------------------------------------- /hadoop/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs hadoop and sets up basic cluster per Cloudera's quick start docs" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.8.1" 7 | depends "java" 8 | 9 | recipe "hadoop", "Installs hadoop from Cloudera's repo" 10 | recipe "hadoop::conf_pseudo", "Installs hadoop-conf-pseudo and enables hadoop services" 11 | recipe "hadoop::doc", "Installs hadoop documentation" 12 | recipe "hadoop::hive", "Installs hadoop's hive package" 13 | recipe "hadoop::pig", "Installs hadoop's pig package" 14 | 15 | %w{ debian ubuntu }.each do |os| 16 | supports os 17 | end 18 | -------------------------------------------------------------------------------- /lvm/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: lvm 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | package "lvm2" do 20 | action :upgrade 21 | end 22 | -------------------------------------------------------------------------------- /mysql/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: mysql 3 | # Recipe:: default 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | include_recipe "mysql::client" 21 | -------------------------------------------------------------------------------- /vim/attributes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: vim 3 | # Attributes:: default 4 | # 5 | # Copyright 2010, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | default[:vim][:extra_packages] = [] 21 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | Opscode Public Cookbooks for Chef 2 | 3 | This repository is Opscode's published, public cookbooks for Chef. This repository is considered "in development." Released versions of our cookbooks are posted on the Opscode Cookbook Community Site. 4 | 5 | For information on how to contribute, see CONTRIBUTING. 6 | 7 | Opscode cookbooks are distributed under the Apache 2 Software License. See LICENSE. 8 | 9 | = LINKS: 10 | 11 | Source: 12 | 13 | * http://github.com/opscode/cookbooks 14 | 15 | Tickets/Issues (COOK project): 16 | 17 | * http://tickets.opscode.com/ 18 | 19 | Chef Documentation: 20 | 21 | * http://wiki.opscode.com/display/chef/Home/ 22 | * http://help.opscode.com 23 | 24 | Opscode Cookbook Community Site: 25 | 26 | * http://cookbooks.opscode.com/ 27 | -------------------------------------------------------------------------------- /emacs/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: emacs 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | package "emacs" do 20 | action :upgrade 21 | end 22 | -------------------------------------------------------------------------------- /hadoop/recipes/pig.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: hadoop 3 | # Recipe:: pig 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | include_recipe "hadoop" 21 | 22 | package "pig" 23 | -------------------------------------------------------------------------------- /php/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Author:: Joshua Timberman () 3 | # Cookbook Name:: php 4 | # Recipe:: default 5 | # 6 | # Copyright 2009, Opscode, Inc. 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | -------------------------------------------------------------------------------- /apache2/recipes/mod_auth_basic.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: auth_basic 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "auth_basic" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_auth_digest.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: auth_digest 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "auth_digest" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_authn_file.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: authn_file 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "authn_file" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_authnz_ldap.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: authnz_ldap 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "authnz_ldap" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_authz_host.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: authz_host 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "authz_host" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_authz_user.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: authz_user 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "authz_user" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_proxy_balancer.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: proxy 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "proxy_balancer" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_proxy_connect.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: proxy 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "proxy_connect" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_proxy_http.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: proxy_http 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "proxy_http" 21 | -------------------------------------------------------------------------------- /chef/templates/default/client.rb.erb: -------------------------------------------------------------------------------- 1 | # 2 | # Chef Client Config File 3 | # 4 | # Dynamically generated by Chef - local modifications will be replaced 5 | # 6 | 7 | log_level :info 8 | log_location STDOUT 9 | ssl_verify_mode :verify_none 10 | chef_server_url "<%= node[:chef][:server_url] %>" 11 | 12 | validation_client_name "<%= node[:chef][:validation_client_name] %>" 13 | validation_key "/etc/chef/validation.pem" 14 | client_key "/etc/chef/client.pem" 15 | 16 | <% if node[:chef][:backup_path] -%> 17 | file_backup_path "<%= node[:chef][:backup_path] %>" 18 | <% else -%> 19 | file_backup_path nil 20 | <% end -%> 21 | file_cache_path "<%= node[:chef][:cache_path] %>" 22 | pid_file "<%= node[:chef][:run_path] %>/client.pid" 23 | -------------------------------------------------------------------------------- /cron/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: cron 3 | # Recipe:: default 4 | # 5 | # Copyright 2010, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | package "cron" do 21 | action :upgrade 22 | end 23 | -------------------------------------------------------------------------------- /database/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Sets up the database master or slave" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 | version "0.7.1" 7 | 8 | recipe "database", "Empty placeholder" 9 | recipe "database::ebs_backup", "Considered deprecated, older way of backing up EBS volumes" 10 | recipe "database::ebs_volume", "Sets up an EBS volume in EC2 for the database" 11 | recipe "database::master", "Creates application specific user and database" 12 | recipe "database::snapshot", "Locks tables and freezes XFS filesystem for replication, assumes EC2 + EBS" 13 | 14 | %w{ mysql aws xfs }.each do |cb| 15 | depends cb 16 | end 17 | -------------------------------------------------------------------------------- /hadoop/recipes/doc.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: hadoop 3 | # Recipe:: doc 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | include_recipe "java" 21 | 22 | package "hadoop-doc" 23 | -------------------------------------------------------------------------------- /hadoop/recipes/hive.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: hadoop 3 | # Recipe:: hive 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | include_recipe "hadoop" 21 | 22 | package "hive" 23 | -------------------------------------------------------------------------------- /jpackage/attributes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: jpackage 3 | # Attributes:: default 4 | # 5 | # Copyright 2010, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | default[:jpackage][:version] = "5.0" 21 | -------------------------------------------------------------------------------- /mercurial/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": { 3 | }, 4 | "attributes": { 5 | }, 6 | "maintainer": "Opscode, Inc.", 7 | "suggestions": { 8 | }, 9 | "dependencies": { 10 | }, 11 | "maintainer_email": "cookbooks@opscode.com", 12 | "conflicting": { 13 | }, 14 | "platforms": { 15 | "debian": [ 16 | 17 | ], 18 | "ubuntu": [ 19 | 20 | ] 21 | }, 22 | "license": "Apache 2.0", 23 | "version": "0.7.1", 24 | "providing": { 25 | }, 26 | "recipes": { 27 | "mercurial": "Installs mercurial" 28 | }, 29 | "replacing": { 30 | }, 31 | "name": "mercurial", 32 | "description": "Installs mercurial", 33 | "groupings": { 34 | }, 35 | "long_description": "" 36 | } -------------------------------------------------------------------------------- /postgresql/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: postgresql 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | include_recipe "postgresql::client" 21 | -------------------------------------------------------------------------------- /apache2/templates/default/mods/negotiation.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | # 3 | # LanguagePriority allows you to give precedence to some languages 4 | # in case of a tie during content negotiation. 5 | # 6 | # Just list the languages in decreasing order of preference. We have 7 | # more or less alphabetized them here. You probably want to change this. 8 | # 9 | LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv tr zh-CN zh-TW 10 | 11 | # 12 | # ForceLanguagePriority allows you to serve a result page rather than 13 | # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback) 14 | # [in case no accepted languages matched the available variants] 15 | # 16 | ForceLanguagePriority Prefer Fallback 17 | 18 | 19 | -------------------------------------------------------------------------------- /kickstart/templates/default/kickstart.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | DocumentRoot <%= @docroot %> 4 | 5 | ServerName <%= @virtual_host_name %> 6 | ServerAlias <%= @virtual_host_name.split('.')[0] %> 7 | 8 | 9 | Options FollowSymLinks 10 | AllowOverride None 11 | 12 | 13 | LogLevel info 14 | ErrorLog <%= node[:apache][:log_dir] %>/kickstart-error.log 15 | CustomLog <%= node[:apache][:log_dir] %>/kickstart-access.log combined 16 | 17 | > 18 | Options Indexes FollowSymLinks MultiViews 19 | AllowOverride All 20 | Order allow,deny 21 | allow from all 22 | 23 | 24 | AddOutputFilterByType DEFLATE text/html text/plain text/xml 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /passenger_enterprise/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "ops@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs and configures Passenger under Ruby Enterprise Edition with Apache" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.4.2" 7 | 8 | recipe "passenger_enterprise", "Installs Passenger gem with Ruby Enterprise Edition" 9 | recipe "passenger_enterprise::apache2", "Enables Apache module configuration for passenger under Ruby Enterprise Edition" 10 | recipe "passenger_enterprise::nginx", "Installs Passenger gem w/ REE, and recompiles support into Nginx" 11 | 12 | %w{ ruby_enterprise nginx apache2 }.each do |cb| 13 | depends cb 14 | end 15 | 16 | supports "ubuntu" 17 | -------------------------------------------------------------------------------- /ubuntu/templates/default/sources.list.erb: -------------------------------------------------------------------------------- 1 | # 2 | # Ubuntu <%= @code_name %> - Generated by Chef 3 | # 4 | 5 | deb http://us.archive.ubuntu.com/ubuntu <%= @code_name %> main restricted universe multiverse 6 | deb-src http://us.archive.ubuntu.com/ubuntu <%= @code_name %> main restricted universe multiverse 7 | 8 | deb http://us.archive.ubuntu.com/ubuntu <%= @code_name %>-updates main restricted universe multiverse 9 | deb-src http://us.archive.ubuntu.com/ubuntu <%= @code_name %>-updates main restricted universe multiverse 10 | 11 | # 12 | # Security updates 13 | # 14 | deb http://security.ubuntu.com/ubuntu <%= @code_name %>-security main restricted universe multiverse 15 | deb-src http://security.ubuntu.com/ubuntu <%= @code_name %>-security main restricted universe multiverse 16 | -------------------------------------------------------------------------------- /apache2/recipes/mod_authz_default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: authz_default 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "authz_default" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_dir.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: dir 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "dir" do 21 | conf true 22 | end 23 | -------------------------------------------------------------------------------- /apache2/recipes/mod_mime.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: mime 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "mime" do 21 | conf true 22 | end 23 | -------------------------------------------------------------------------------- /database/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Author:: Joshua Timberman () 3 | # Cookbook Name:: database 4 | # Recipe:: default 5 | # 6 | # Copyright 2009, Opscode, Inc. 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | 21 | -------------------------------------------------------------------------------- /mercurial/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: mercurial 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | package "mercurial" do 20 | action :upgrade 21 | end 22 | -------------------------------------------------------------------------------- /screen/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: screen 3 | # Recipe:: default 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | package "screen" do 21 | action :install 22 | end 23 | -------------------------------------------------------------------------------- /apache2/recipes/mod_alias.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: alias 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "alias" do 21 | conf true 22 | end 23 | -------------------------------------------------------------------------------- /apache2/recipes/mod_authz_groupfile.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: authz_groupfile 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "authz_groupfile" 21 | -------------------------------------------------------------------------------- /apache2/recipes/mod_proxy.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: proxy 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "proxy" do 21 | conf true 22 | end 23 | -------------------------------------------------------------------------------- /apache2/recipes/mod_status.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: status 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "status" do 21 | conf true 22 | end 23 | -------------------------------------------------------------------------------- /erlang/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "providing": { 3 | }, 4 | "attributes": { 5 | }, 6 | "replacing": { 7 | }, 8 | "dependencies": { 9 | }, 10 | "groupings": { 11 | }, 12 | "recommendations": { 13 | }, 14 | "platforms": { 15 | "debian": [ 16 | 17 | ], 18 | "ubuntu": [ 19 | 20 | ] 21 | }, 22 | "license": "Apache 2.0", 23 | "version": "0.8.2", 24 | "maintainer": "Opscode, Inc.", 25 | "suggestions": { 26 | }, 27 | "recipes": { 28 | "erlang": "Installs erlang" 29 | }, 30 | "maintainer_email": "cookbooks@opscode.com", 31 | "name": "erlang", 32 | "conflicting": { 33 | }, 34 | "description": "Installs erlang, optionally install GUI tools.", 35 | "long_description": "" 36 | } -------------------------------------------------------------------------------- /logrotate/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: logrotate 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | package "logrotate" do 21 | action :upgrade 22 | end 23 | -------------------------------------------------------------------------------- /logwatch/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: logwatch 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | include_recipe "perl" 21 | 22 | package "logwatch" 23 | 24 | -------------------------------------------------------------------------------- /nanite/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": { 3 | }, 4 | "attributes": { 5 | }, 6 | "maintainer": "Opscode, Inc.", 7 | "suggestions": { 8 | }, 9 | "dependencies": { 10 | }, 11 | "maintainer_email": "cookbooks@opscode.com", 12 | "conflicting": { 13 | }, 14 | "platforms": { 15 | }, 16 | "license": "Apache 2.0", 17 | "version": "0.8.0", 18 | "providing": { 19 | }, 20 | "recipes": { 21 | "nanite::chef": "Deprecated, was used to install and configure nanite for Chef 0.8alpha" 22 | }, 23 | "replacing": { 24 | }, 25 | "name": "nanite", 26 | "description": "Deprecated, was used to install and configure nanite for Chef 0.8 alpha", 27 | "groupings": { 28 | }, 29 | "long_description": "" 30 | } -------------------------------------------------------------------------------- /apache2/recipes/mod_deflate.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: deflate 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "deflate" do 21 | conf true 22 | end 23 | -------------------------------------------------------------------------------- /apache2/recipes/mod_setenvif.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: setenvif 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "setenvif" do 21 | conf true 22 | end 23 | -------------------------------------------------------------------------------- /ruby/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: ruby 3 | # Recipe:: default 4 | # 5 | # Copyright 2010, FindsYou Limited 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | ruby_packages node[:languages][:ruby][:default_version] || "1.8" 21 | -------------------------------------------------------------------------------- /ruby/recipes/symlinks.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: ruby 3 | # Recipe:: symlinks 4 | # 5 | # Copyright 2010, FindsYou Limited 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | ruby_symlinks node[:languages][:ruby][:default_version] || "1.8" 21 | -------------------------------------------------------------------------------- /ubuntu/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": { 3 | }, 4 | "attributes": { 5 | }, 6 | "maintainer": "Opscode, Inc.", 7 | "suggestions": { 8 | }, 9 | "dependencies": { 10 | "apt": [ 11 | 12 | ] 13 | }, 14 | "maintainer_email": "cookbooks@opscode.com", 15 | "conflicting": { 16 | }, 17 | "platforms": { 18 | "ubuntu": [ 19 | 20 | ] 21 | }, 22 | "license": "Apache 2.0", 23 | "version": "0.8.1", 24 | "providing": { 25 | }, 26 | "recipes": { 27 | "ubuntu": "Sets up sources for the node's ubuntu release" 28 | }, 29 | "replacing": { 30 | }, 31 | "name": "ubuntu", 32 | "description": "Sets up sources for ubuntu", 33 | "groupings": { 34 | }, 35 | "long_description": "" 36 | } -------------------------------------------------------------------------------- /varnish/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": { 3 | }, 4 | "attributes": { 5 | }, 6 | "maintainer": "Opscode, Inc.", 7 | "suggestions": { 8 | }, 9 | "dependencies": { 10 | }, 11 | "maintainer_email": "cookbooks@opscode.com", 12 | "conflicting": { 13 | }, 14 | "platforms": { 15 | "debian": [ 16 | 17 | ], 18 | "ubuntu": [ 19 | 20 | ] 21 | }, 22 | "license": "Apache 2.0", 23 | "version": "0.8.0", 24 | "providing": { 25 | }, 26 | "recipes": { 27 | "varnish": "Installs and configures varnish" 28 | }, 29 | "replacing": { 30 | }, 31 | "name": "varnish", 32 | "description": "Instsalls and configures varnish", 33 | "groupings": { 34 | }, 35 | "long_description": "" 36 | } -------------------------------------------------------------------------------- /apache2/recipes/mod_autoindex.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: autoindex 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "autoindex" do 21 | conf true 22 | end 23 | -------------------------------------------------------------------------------- /apache2/recipes/mod_dav_svn.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: dav_svn 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | package "libapache2-svn" 21 | 22 | apache_module "dav_svn" 23 | -------------------------------------------------------------------------------- /chef/templates/default/chef-client.pill.erb: -------------------------------------------------------------------------------- 1 | Bluepill.application("chef-client") do |app| 2 | 3 | app.process("chef-client") do |process| 4 | process.pid_file = "<%= node[:chef][:run_path] %>/chef-client.pid" 5 | process.working_dir = "<%= node[:chef][:path] %>" 6 | process.start_command = "env PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> chef-client -i <%= node[:chef][:client_interval] %> -s <%= node[:chef][:client_splay] %>" 7 | process.stdout = process.stderr = "<%= node[:chef][:log_dir] %>/client.log" 8 | process.start_grace_time = 5.seconds 9 | process.stop_grace_time = 5.seconds 10 | process.restart_grace_time = 30.seconds 11 | end 12 | 13 | end 14 | -------------------------------------------------------------------------------- /fail2ban/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": { 3 | }, 4 | "attributes": { 5 | }, 6 | "maintainer": "Opscode, Inc.", 7 | "suggestions": { 8 | }, 9 | "dependencies": { 10 | }, 11 | "maintainer_email": "cookbooks@opscode.com", 12 | "conflicting": { 13 | }, 14 | "platforms": { 15 | "debian": [ 16 | 17 | ], 18 | "ubuntu": [ 19 | 20 | ] 21 | }, 22 | "license": "Apache 2.0", 23 | "version": "0.7.1", 24 | "providing": { 25 | }, 26 | "recipes": { 27 | "fail2ban": "Installs and configures fail2ban" 28 | }, 29 | "replacing": { 30 | }, 31 | "name": "fail2ban", 32 | "description": "Installs and configures fail2ban", 33 | "groupings": { 34 | }, 35 | "long_description": "" 36 | } -------------------------------------------------------------------------------- /xfs/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: xfs 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | %w{ xfsprogs xfsdump xfslibs-dev }.each do |pkg| 21 | package pkg 22 | end 23 | -------------------------------------------------------------------------------- /apache2/recipes/mod_negotiation.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: apache2 3 | # Recipe:: negotiation 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | apache_module "negotiation" do 21 | conf true 22 | end 23 | -------------------------------------------------------------------------------- /python/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": { 3 | }, 4 | "attributes": { 5 | }, 6 | "maintainer": "Opscode, Inc.", 7 | "suggestions": { 8 | }, 9 | "dependencies": { 10 | }, 11 | "maintainer_email": "cookbooks@opscode.com", 12 | "conflicting": { 13 | }, 14 | "platforms": { 15 | "debian": [ 16 | 17 | ], 18 | "ubuntu": [ 19 | 20 | ] 21 | }, 22 | "license": "Apache 2.0", 23 | "version": "0.7.0", 24 | "providing": { 25 | }, 26 | "recipes": { 27 | "python": "Installs python and common python module packages" 28 | }, 29 | "replacing": { 30 | }, 31 | "name": "python", 32 | "description": "Installs python packages", 33 | "groupings": { 34 | }, 35 | "long_description": "" 36 | } -------------------------------------------------------------------------------- /teamspeak/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": { 3 | }, 4 | "attributes": { 5 | }, 6 | "maintainer": "Opscode, Inc.", 7 | "suggestions": { 8 | }, 9 | "dependencies": { 10 | "php": [ 11 | 12 | ] 13 | }, 14 | "maintainer_email": "cookbooks@opscode.com", 15 | "conflicting": { 16 | }, 17 | "platforms": { 18 | "ubuntu": [ 19 | 20 | ] 21 | }, 22 | "license": "Apache 2.0", 23 | "version": "0.8.0", 24 | "providing": { 25 | }, 26 | "recipes": { 27 | "teamspeak": "Installs and configures teamspeak2" 28 | }, 29 | "replacing": { 30 | }, 31 | "name": "teamspeak", 32 | "description": "Installs teamspeak and enables service", 33 | "groupings": { 34 | }, 35 | "long_description": "" 36 | } -------------------------------------------------------------------------------- /drbd/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": { 3 | }, 4 | "attributes": { 5 | }, 6 | "maintainer": "Opscode, Inc.", 7 | "suggestions": { 8 | }, 9 | "dependencies": { 10 | "lvm": [ 11 | 12 | ] 13 | }, 14 | "maintainer_email": "cookbooks@opscode.com", 15 | "conflicting": { 16 | }, 17 | "platforms": { 18 | "debian": [ 19 | 20 | ], 21 | "ubuntu": [ 22 | 23 | ] 24 | }, 25 | "license": "Apache 2.0", 26 | "version": "0.7.1", 27 | "providing": { 28 | }, 29 | "recipes": { 30 | "drbd": "Installs drbd" 31 | }, 32 | "replacing": { 33 | }, 34 | "name": "drbd", 35 | "description": "Installs but does not configure drbd", 36 | "groupings": { 37 | }, 38 | "long_description": "" 39 | } -------------------------------------------------------------------------------- /subversion/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: subversion 3 | # Recipe:: default 4 | # 5 | # Copyright 2008-2009, Opscode, Inc. 6 | # Copyright 2009, Daniel DeLeo 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0c 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | 21 | include_recipe "subversion::client" 22 | -------------------------------------------------------------------------------- /packages/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Helper library to determine whether distribution-only packages are installed" 5 | version "0.9.2" 6 | 7 | recipe "packages", "Empty, this cookbook provides a library for helping determine whther distribution only packages should be installed" 8 | 9 | %w{redhat centos}.each do |os| 10 | supports os 11 | end 12 | 13 | attribute "packages", 14 | :display_name => "Packages", 15 | :description => "Hash of Packages attributes", 16 | :type => "hash" 17 | 18 | attribute "packages/dist_only", 19 | :display_name => "Packages Distribution Only?", 20 | :description => "Set to only use distribution-provided packages", 21 | :default => "false" 22 | 23 | -------------------------------------------------------------------------------- /pacman/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: pacman 3 | # Recipe:: default 4 | # 5 | # Copyright 2010, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | e = execute "pacman -Sy" do 21 | action :nothing 22 | end 23 | 24 | e.run_action(:run) 25 | -------------------------------------------------------------------------------- /teamspeak/templates/default/server.ini.erb: -------------------------------------------------------------------------------- 1 | [Main Config] 2 | BoundToIp1= 3 | ExternalIPDectection=1 4 | HTTPServer Port=<%= node[:teamspeak][:http_port] %> 5 | HTTPServer Enabled=1 6 | DateTimeFormat=dd-mm-yyyy hh:nn:ss 7 | TCPQueryPort=<%= node[:teamspeak][:query_port] %> 8 | AllowedClientNameChars= 9 | DisAllowedClientNameChars=()[]{} 10 | 11 | [debug] 12 | MessageTypes=LMTALL 13 | MessageDepths=LMDALL 14 | 15 | [WebPost] 16 | AdminEmail=gaming@housepub.org 17 | ISPLinkURL=na 18 | ISPName=Private 19 | ISPCountryNumber=0 20 | Enabled=1 21 | PostURL= 22 | ListPublic=0 23 | UserAgent=teamspeak 24 | 25 | [log] 26 | access_r=0 27 | access_u=0 28 | channel_registerred=0 29 | channel_unregisterred=0 30 | sa=0 31 | chat=0 32 | kick_server=0 33 | kick_channel=0 34 | 35 | [Spam] 36 | max_commands=10 37 | in_seconds=2 38 | 39 | -------------------------------------------------------------------------------- /chef/templates/default/chef-server.pill.erb: -------------------------------------------------------------------------------- 1 | Bluepill.application("chef-server") do |app| 2 | 3 | app.process("chef-server") do |process| 4 | process.pid_file = "<%= node[:chef][:run_path] %>/chef-server.pid" 5 | process.working_dir = "<%= node[:chef][:path] %>" 6 | process.start_command = "env PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> chef-server -N -p <%= node[:chef][:server_port] %> -e production -P <%= node[:chef][:run_path] %>/server.%s.pid" 7 | process.stdout = process.stderr = "<%= node[:chef][:log_dir] %>/server.log" 8 | process.start_grace_time = 5.seconds 9 | process.stop_grace_time = 5.seconds 10 | process.restart_grace_time = 30.seconds 11 | end 12 | 13 | end 14 | -------------------------------------------------------------------------------- /vim/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: vim 3 | # Recipe:: default 4 | # 5 | # Copyright 2010, Opscode, Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | 20 | package "vim" 21 | 22 | node[:vim][:extra_packages].each do |vimpkg| 23 | package vimpkg 24 | end 25 | -------------------------------------------------------------------------------- /apparmor/README.md: -------------------------------------------------------------------------------- 1 | DESCRIPTION 2 | =========== 3 | 4 | Stops and disables the apparmor service on Ubuntu. 5 | 6 | LICENSE AND AUTHOR 7 | ================== 8 | 9 | Author:: Joshua Timberman () 10 | 11 | Copyright 2009, Opscode, Inc. 12 | 13 | Licensed under the Apache License, Version 2.0 (the "License"); 14 | you may not use this file except in compliance with the License. 15 | You may obtain a copy of the License at 16 | 17 | http://www.apache.org/licenses/LICENSE-2.0 18 | 19 | Unless required by applicable law or agreed to in writing, software 20 | distributed under the License is distributed on an "AS IS" BASIS, 21 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | See the License for the specific language governing permissions and 23 | limitations under the License. 24 | -------------------------------------------------------------------------------- /django/attributes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: django 3 | # Recipe:: default 4 | # Author:: Joshua Timberman () 5 | # 6 | # Copyright 2010, Opscode, Inc 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | 21 | default[:django][:web_server] = "mod_wsgi" 22 | -------------------------------------------------------------------------------- /haproxy/templates/default/haproxy.cfg.erb: -------------------------------------------------------------------------------- 1 | global 2 | log 127.0.0.1 local0 3 | log 127.0.0.1 local1 notice 4 | #log loghost local0 info 5 | maxconn 4096 6 | #debug 7 | #quiet 8 | user haproxy 9 | group haproxy 10 | 11 | defaults 12 | log global 13 | mode http 14 | option httplog 15 | option dontlognull 16 | retries 3 17 | redispatch 18 | maxconn 2000 19 | contimeout 5000 20 | clitimeout 50000 21 | srvtimeout 50000 22 | 23 | # Set up application listeners here. 24 | listen application 0.0.0.0:8400 25 | balance roundrobin 26 | server localhost 127.0.0.1:4000 weight 1 maxconn 5 check 27 | server localhost 127.0.0.1:4001 weight 1 maxconn 5 check 28 | --------------------------------------------------------------------------------