├── chef └── recipes │ └── default.rb ├── dns ├── recipes │ ├── default.rb │ └── client.rb ├── templates │ └── default │ │ └── resolv.conf.erb ├── metadata.rb └── metadata.json ├── nagios ├── recipes │ ├── default.rb │ ├── checks.rb │ └── client.rb ├── templates │ └── default │ │ ├── sv-nagios3-log-run.erb │ │ ├── sv-nagios-bot-log-run.erb │ │ ├── sv-nagios3-run.erb │ │ ├── hosts.cfg.erb │ │ ├── sv-nagios-bot-run.erb │ │ ├── hostgroups.cfg.erb │ │ └── timeperiods.cfg.erb ├── definitions │ ├── nagios_service_template.rb │ └── nagios_conf.rb ├── metadata.rb ├── attributes │ └── client.rb ├── files │ └── default │ │ ├── plugins │ │ └── nagios_helper.rb │ │ └── notifiers │ │ └── send_passive_check └── libraries │ └── default.rb ├── packages ├── recipes │ └── default.rb ├── attributes │ └── packages.rb ├── libraries │ └── packages.rb └── metadata.rb ├── runit └── files │ ├── default │ └── runsvdir │ ├── 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 ├── ssh_keys ├── recipes │ └── default.rb ├── templates │ └── default │ │ └── authorized_keys.erb └── definitions │ └── add_keys.rb ├── nfs ├── recipes │ ├── default.rb │ ├── server.rb │ └── client.rb ├── attributes │ └── server.rb ├── metadata.rb ├── templates │ └── default │ │ └── exports.erb └── metadata.json ├── tomcat6 ├── definitions │ └── tomcat_app.rb ├── templates │ └── default │ │ └── tomcat-users.xml.erb ├── metadata.rb └── files │ └── centos │ └── rightscale.repo ├── gnupg ├── recipes │ └── default.rb ├── metadata.rb └── metadata.json ├── 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 ├── rsnapshot ├── recipes │ ├── client.rb │ └── server.rb └── attributes │ └── rsnapshot.rb ├── cron ├── attributes │ └── cron.rb ├── metadata.rb ├── recipes │ └── default.rb └── metadata.json ├── gems ├── attributes │ └── gems.rb └── metadata.rb ├── hosts ├── attributes │ └── hosts.rb ├── recipes │ └── default.rb ├── metadata.rb └── metadata.json ├── erlang ├── attributes │ └── erlang.rb ├── metadata.rb └── metadata.json ├── gitweb ├── attributes │ └── gitweb.rb ├── templates │ └── default │ │ ├── projects.conf.erb │ │ └── gitweb.conf.erb ├── metadata.rb ├── recipes │ └── default.rb └── metadata.json ├── maradns ├── attributes │ └── maradns.rb └── metadata.rb ├── ssh ├── files │ └── default │ │ └── known_hosts ├── attributes │ └── ssh.rb ├── metadata.rb ├── templates │ └── default │ │ └── ssh_config.erb ├── recipes │ └── server.rb └── metadata.json ├── sysctl ├── attributes │ └── sysctl.rb ├── templates │ └── default │ │ └── 60-custom-settings.conf.erb └── recipes │ └── default.rb ├── syslog ├── libraries │ └── default.rb ├── attributes │ └── default.rb ├── files │ └── default │ │ └── logsort ├── recipes │ ├── default.rb │ └── client.rb └── metadata.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 │ ├── sv-nginx-log-run.erb │ ├── sv-nginx-run.erb │ └── default-site.erb ├── thin ├── recipes │ └── default.rb ├── attributes │ └── thin.rb └── metadata.rb ├── activemq ├── templates │ └── default │ │ ├── sv-activemq-log-run.erb │ │ └── sv-activemq-run.erb └── metadata.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 │ └── memcached.rb ├── mogilefs ├── templates │ └── default │ │ ├── sv-mogilefsd-log-run.erb │ │ ├── sv-mogstored-log-run.erb │ │ ├── mogilefs.sh.erb │ │ ├── mogilefs.conf.erb │ │ ├── sv-mogstored-run.erb │ │ ├── sv-mogilefsd-run.erb │ │ ├── mogstored.conf.erb │ │ ├── mogilefsd.conf.erb │ │ ├── bluepill_mogilefsd.conf.erb │ │ └── bluepill_mogstored.conf.erb ├── metadata.rb └── recipes │ ├── tracker.rb │ └── storenode.rb ├── munin ├── templates │ └── default │ │ └── port_munin.erb ├── metadata.rb └── metadata.json ├── openssh ├── templates │ └── default │ │ └── port_ssh.erb └── metadata.rb ├── perlbal ├── templates │ └── default │ │ ├── sv-perlbal-log-run.erb │ │ ├── sv-perlbal-run.erb │ │ ├── bluepill_perlbal.conf.erb │ │ └── perlbal.conf.erb ├── metadata.rb ├── attributes │ └── perlbal.rb ├── recipes │ └── default.rb └── metadata.json ├── php5 ├── templates │ └── default │ │ ├── php.ini.erb │ │ ├── php5.load.erb │ │ └── php5.conf.erb ├── metadata.rb ├── attributes │ └── php5.rb └── metadata.json ├── quick_start ├── attributes │ └── quick_start.rb ├── templates │ └── default │ │ └── deep_thought.txt.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 ├── bootstrap ├── templates │ └── default │ │ ├── sv-chef-client-log-run.erb │ │ ├── sv-chef-indexer-log-run.erb │ │ ├── sv-chef-server-log-run.erb │ │ ├── sv-chef-indexer-run.erb │ │ ├── sv-chef-server-run.erb │ │ └── sv-chef-client-run.erb ├── metadata.rb └── recipes │ └── default.rb ├── ddclient ├── templates │ └── default │ │ ├── ddclient.default.erb │ │ └── ddclient.conf.erb ├── metadata.rb ├── recipes │ └── default.rb └── metadata.json ├── jira └── templates │ └── default │ ├── sv-jira-log-run.erb │ └── sv-jira-run.erb ├── ssl_certificates ├── attributes │ └── ssl_certificates.rb ├── recipes │ └── default.rb ├── metadata.rb └── metadata.json ├── timezone ├── attributes │ └── timezone.rb ├── metadata.rb ├── recipes │ └── default.rb └── metadata.json ├── couchdb └── templates │ └── default │ └── port_couchdb.erb ├── passenger ├── files │ └── default │ │ └── shadow-1.4.1 │ │ ├── depend │ │ ├── MANIFEST │ │ ├── README.euc │ │ └── extconf.rb ├── templates │ └── default │ │ ├── passenger.load.erb │ │ └── passenger.conf.erb ├── metadata.rb ├── definitions │ └── passenger_monitor.rb ├── attributes │ └── passenger.rb └── metadata.json ├── stompserver ├── templates │ └── default │ │ ├── sv-stompserver-log-run.erb │ │ ├── port_stompserver.erb │ │ └── sv-stompserver-run.erb └── metadata.rb ├── ruby-shadow ├── files │ └── default │ │ └── shadow-1.4.1 │ │ ├── depend │ │ ├── MANIFEST │ │ ├── README.euc │ │ └── extconf.rb ├── attributes │ └── ruby-shadow.rb └── recipes │ └── default.rb ├── glassfish ├── README.rdoc └── metadata.rb ├── kvm ├── files │ └── default │ │ ├── templates │ │ ├── files │ │ │ ├── manifest.txt │ │ │ └── event.d │ │ │ │ └── ttyS0 │ │ └── scripts │ │ │ ├── rename-fstab-devices.sh │ │ │ ├── postinstall.sh │ │ │ ├── add-172-net.sh │ │ │ └── grub-console.sh │ │ └── modules │ │ └── 2.6.27-11-server │ │ ├── kvm.ko │ │ ├── kvm-amd.ko │ │ └── kvm-intel.ko ├── metadata.rb └── metadata.json ├── logwatch ├── README.rdoc └── metadata.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 ├── collectd ├── templates │ └── default │ │ └── collection.conf.erb ├── metadata.rb ├── libraries │ └── default.rb ├── recipes │ └── default.rb └── metadata.json ├── passenger_enterprise ├── README.rdoc ├── templates │ └── default │ │ ├── passenger.load.erb │ │ ├── passenger.conf.erb │ │ └── passenger_nginx.conf.erb └── metadata.rb ├── users ├── templates │ └── default │ │ └── authorized_keys.erb ├── metadata.rb ├── attributes │ └── default.rb ├── recipes │ └── default.rb ├── libraries │ └── roles.rb └── metadata.json ├── passenger_apache2 ├── templates │ └── default │ │ ├── passenger.load.erb │ │ └── passenger.conf.erb └── attributes │ └── passenger.rb ├── resolver ├── attributes │ └── resolver.rb └── templates │ └── default │ └── resolv.conf.erb ├── xen ├── create_slice │ ├── libraries │ │ └── default.rb │ └── templates │ │ └── default │ │ └── slice_config.xen.erb ├── metadata.rb └── metadata.json ├── maatkit ├── files │ └── default │ │ └── maatkit-5014.tar.gz └── recipes │ └── default.rb ├── kickstart ├── attributes │ └── kickstart.rb ├── metadata.rb ├── recipes │ └── default.rb └── templates │ └── default │ └── kickstart.conf.erb ├── mysql ├── templates │ ├── default │ │ ├── port_mysql.erb │ │ └── debian.cnf.erb │ ├── centos │ │ └── my.cnf.erb │ └── redhat │ │ └── my.cnf.erb ├── resources │ └── database.rb ├── libraries │ └── database.rb ├── providers │ └── 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 │ └── ubuntu-9.10 │ │ └── remote.conf.erb └── files │ ├── default │ └── rsyslog.default │ └── ubuntu-9.10 │ └── rsyslog.default ├── postfix ├── templates │ └── default │ │ └── sasl_passwd.erb └── attributes │ └── postfix.rb ├── gitosis ├── metadata.rb ├── recipes │ └── default.rb └── metadata.json ├── rails └── attributes │ └── rails.rb ├── ejabberd ├── metadata.rb ├── recipes │ └── default.rb └── metadata.json ├── ganglia ├── recipes │ ├── default.rb │ └── client.rb ├── metadata.rb ├── attributes │ └── ganglia.rb └── templates │ └── default │ └── ganglia-vhost.conf.erb ├── haproxy ├── templates │ └── default │ │ └── haproxy-default.erb └── metadata.rb ├── simple_rails_app ├── attributes │ └── simple_rails_app.rb └── templates │ └── default │ └── rails_app_conf.erb ├── varnish ├── attributes │ └── varnish.rb ├── metadata.rb ├── templates │ └── default │ │ └── default.vcl.erb └── metadata.json ├── teamspeak ├── templates │ └── default │ │ └── port_teamspeak.erb ├── metadata.rb └── metadata.json ├── tomcat ├── metadata.rb ├── attributes │ └── default.rb └── metadata.json ├── hadoop ├── templates │ └── default │ │ └── cloudera.list.erb ├── metadata.rb └── recipes │ ├── pig.rb │ ├── doc.rb │ └── hive.rb ├── integrity ├── metadata.rb ├── templates │ └── default │ │ ├── vhost.conf.erb │ │ └── config.ru.erb ├── metadata.json └── files │ └── default │ └── integrity_build.rb ├── ruby_enterprise_edition ├── attributes │ └── ree.rb └── recipes │ └── default.rb ├── bluepill ├── attributes │ └── bluepill.rb ├── metadata.rb └── recipes │ └── default.rb ├── monit ├── metadata.rb ├── recipes │ └── default.rb ├── libraries │ └── monitrc.rb ├── templates │ └── default │ │ └── monitrc.erb └── metadata.json ├── apparmor ├── metadata.rb └── metadata.json ├── ubuntu ├── metadata.rb ├── metadata.json └── templates │ └── default │ └── sources.list.erb ├── zsh ├── metadata.rb └── metadata.json ├── man ├── metadata.rb └── metadata.json ├── sqlite ├── metadata.rb └── metadata.json ├── mercurial ├── metadata.rb ├── metadata.json └── recipes │ └── default.rb ├── openssl ├── metadata.rb └── recipes │ └── default.rb ├── python ├── metadata.rb └── metadata.json ├── emacs ├── metadata.rb └── recipes │ └── default.rb ├── fail2ban ├── metadata.rb └── metadata.json ├── logrotate └── metadata.rb ├── lvm ├── metadata.rb └── recipes │ └── default.rb ├── rsync ├── metadata.rb └── recipes │ └── default.rb ├── boost ├── metadata.rb └── recipes │ └── default.rb ├── screen ├── metadata.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 ├── ruby └── metadata.rb ├── subversion └── metadata.rb ├── ntp ├── attributes │ └── ntp.rb └── templates │ └── default │ └── ntp.conf.erb ├── rabbitmq ├── metadata.rb └── recipes │ └── default.rb ├── aws └── resources │ ├── elastic_ip.rb │ └── ebs_volume.rb ├── drbd ├── metadata.rb └── metadata.json ├── iptables └── metadata.rb ├── nscd └── metadata.rb ├── heartbeat └── metadata.rb ├── keepalived └── metadata.rb ├── unicorn ├── metadata.rb └── README.rdoc ├── apt ├── files │ └── default │ │ └── apt-cacher └── metadata.rb ├── rubygems └── metadata.rb ├── java ├── metadata.rb ├── files │ └── default │ │ └── java.seed └── metadata.json ├── ruby_enterprise └── metadata.rb ├── xfs └── metadata.rb ├── ssh_known_hosts ├── templates │ └── default │ │ └── known_hosts.erb └── metadata.rb ├── imagemagick └── metadata.rb ├── thrift └── metadata.rb ├── perl └── metadata.rb ├── rails_enterprise └── metadata.rb ├── ec2 ├── metadata.rb └── recipes │ └── default.rb ├── instiki ├── metadata.rb └── templates │ └── default │ └── instiki.conf.erb ├── django └── metadata.rb ├── capistrano ├── metadata.rb └── recipes │ └── default.rb ├── NOTICE ├── sudo └── templates │ └── default │ └── sudoers.erb ├── postgresql ├── recipes │ └── default.rb └── metadata.rb └── php └── recipes └── default.rb /chef/recipes/default.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dns/recipes/default.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nagios/recipes/default.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/recipes/default.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /runit/files/default/runsvdir: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /solr/files/default/id_rsa: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ssh_keys/recipes/default.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nagios/recipes/checks.rb: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /solr/files/default/id_rsa.pub: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /solr/files/default/authorized_keys: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nfs/recipes/default.rb: -------------------------------------------------------------------------------- 1 | package "nfs-common" -------------------------------------------------------------------------------- /tomcat6/definitions/tomcat_app.rb: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gnupg/recipes/default.rb: -------------------------------------------------------------------------------- 1 | package "gnupg" 2 | -------------------------------------------------------------------------------- /djbdns/templates/default/dnscache-servers.erb: -------------------------------------------------------------------------------- 1 | 127.0.0.1 -------------------------------------------------------------------------------- /rsnapshot/recipes/client.rb: -------------------------------------------------------------------------------- 1 | package "rsnapshot" 2 | 3 | -------------------------------------------------------------------------------- /cron/attributes/cron.rb: -------------------------------------------------------------------------------- 1 | cron Mash.new unless attribute?(:cron) -------------------------------------------------------------------------------- /gems/attributes/gems.rb: -------------------------------------------------------------------------------- 1 | set_unless[:gems] = [{ :name => "rake" }] -------------------------------------------------------------------------------- /hosts/attributes/hosts.rb: -------------------------------------------------------------------------------- 1 | hosts Mash.new unless attribute?(:hosts) -------------------------------------------------------------------------------- /erlang/attributes/erlang.rb: -------------------------------------------------------------------------------- 1 | set_unless[:erlang][:gui_tools] = false 2 | -------------------------------------------------------------------------------- /gitweb/attributes/gitweb.rb: -------------------------------------------------------------------------------- 1 | default.gitweb[:config_path] = "/etc/gitweb" -------------------------------------------------------------------------------- /maradns/attributes/maradns.rb: -------------------------------------------------------------------------------- 1 | set_unless[:maradns][:recursive_acl] = "" 2 | -------------------------------------------------------------------------------- /ssh/files/default/known_hosts: -------------------------------------------------------------------------------- 1 | # place known_hosts from ssh-keyscan here 2 | -------------------------------------------------------------------------------- /sysctl/attributes/sysctl.rb: -------------------------------------------------------------------------------- 1 | sysctl Mash.new unless attribute?(:sysctl) 2 | -------------------------------------------------------------------------------- /syslog/libraries/default.rb: -------------------------------------------------------------------------------- 1 | def root 2 | @node[:syslog_ng][:root] 3 | end -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /solr/templates/default/sv-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 | -------------------------------------------------------------------------------- /nagios/templates/default/sv-nagios3-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /nginx/templates/default/sv-nginx-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /rsnapshot/attributes/rsnapshot.rb: -------------------------------------------------------------------------------- 1 | rsnapshot Mash.new unless attribute?(:rsnapshot) 2 | -------------------------------------------------------------------------------- /thin/recipes/default.rb: -------------------------------------------------------------------------------- 1 | gem_package "thin" do 2 | version node[:thin][:version] 3 | end -------------------------------------------------------------------------------- /activemq/templates/default/sv-activemq-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 | -------------------------------------------------------------------------------- /mogilefs/templates/default/sv-mogilefsd-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /mogilefs/templates/default/sv-mogstored-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /munin/templates/default/port_munin.erb: -------------------------------------------------------------------------------- 1 | # Munin 2 | -A FWR -p tcp -m tcp --dport 4949 -j ACCEPT -------------------------------------------------------------------------------- /nagios/templates/default/sv-nagios-bot-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 -------------------------------------------------------------------------------- /perlbal/templates/default/sv-perlbal-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /php5/templates/default/php.ini.erb: -------------------------------------------------------------------------------- 1 | date.timezone = 'UTC' 2 | allow_url_include = 1 3 | 4 | -------------------------------------------------------------------------------- /quick_start/attributes/quick_start.rb: -------------------------------------------------------------------------------- 1 | deep_thought "If a tree falls in the forest..." 2 | -------------------------------------------------------------------------------- /redmine/templates/default/sv-redmine-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /bootstrap/templates/default/sv-chef-client-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec svlogd -tt ./main 3 | -------------------------------------------------------------------------------- /bootstrap/templates/default/sv-chef-indexer-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 | -------------------------------------------------------------------------------- /ddclient/templates/default/ddclient.default.erb: -------------------------------------------------------------------------------- 1 | run_daemon="true" 2 | daemon_interval="60" 3 | -------------------------------------------------------------------------------- /jira/templates/default/sv-jira-log-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | umask 0027 3 | exec svlogd -tt ./main 4 | -------------------------------------------------------------------------------- /mogilefs/templates/default/mogilefs.sh.erb: -------------------------------------------------------------------------------- 1 | PATH="${PATH}:<%= @node[:mogilefs][:path] %>/bin" 2 | -------------------------------------------------------------------------------- /quick_start/templates/default/deep_thought.txt.erb: -------------------------------------------------------------------------------- 1 | Todays deep thought: <%= @deep_thought %> 2 | -------------------------------------------------------------------------------- /ssl_certificates/attributes/ssl_certificates.rb: -------------------------------------------------------------------------------- 1 | default.ssl_certificates[:path] = "/etc/ssl_certs" -------------------------------------------------------------------------------- /timezone/attributes/timezone.rb: -------------------------------------------------------------------------------- 1 | timezone Mash.new unless attribute?("timezone") 2 | timezone "UTC" -------------------------------------------------------------------------------- /couchdb/templates/default/port_couchdb.erb: -------------------------------------------------------------------------------- 1 | # CouchDB 2 | -A FWR -p tcp -m tcp --dport 5984 -j ACCEPT -------------------------------------------------------------------------------- /mogilefs/templates/default/mogilefs.conf.erb: -------------------------------------------------------------------------------- 1 | trackers=<%= @node[:mogilefs][:trackers].join(",") %> 2 | -------------------------------------------------------------------------------- /passenger/files/default/shadow-1.4.1/depend: -------------------------------------------------------------------------------- 1 | shadow.o : shadow.c $(hdrdir)/ruby.h $(hdrdir)/rubyio.h 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php5/templates/default/php5.load.erb: -------------------------------------------------------------------------------- 1 | LoadModule php5_module <%= @node[:php5][:module_path] %> 2 | 3 | 4 | -------------------------------------------------------------------------------- /ruby-shadow/files/default/shadow-1.4.1/depend: -------------------------------------------------------------------------------- 1 | shadow.o : shadow.c $(hdrdir)/ruby.h $(hdrdir)/rubyio.h 2 | -------------------------------------------------------------------------------- /ssh/attributes/ssh.rb: -------------------------------------------------------------------------------- 1 | ssh Mash.new unless attribute?(:ssh) 2 | sshd Mash.new unless attribute?(:sshd) 3 | -------------------------------------------------------------------------------- /thin/attributes/thin.rb: -------------------------------------------------------------------------------- 1 | default.thin[:version] = "1.2.5" 2 | default.thin[:persistent_connections] = true -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /kvm/files/default/templates/files/manifest.txt: -------------------------------------------------------------------------------- 1 | /usr/local/share/kvm/files/event.d/ttyS0 /etc/event.d/ttyS0 2 | -------------------------------------------------------------------------------- /logwatch/README.rdoc: -------------------------------------------------------------------------------- 1 | = DESCRIPTION: 2 | 3 | = REQUIREMENTS: 4 | 5 | = ATTRIBUTES: 6 | 7 | = USAGE: 8 | 9 | -------------------------------------------------------------------------------- /ruby-shadow/attributes/ruby-shadow.rb: -------------------------------------------------------------------------------- 1 | set_unless[:ruby_shadow][:site_ruby] = "/usr/local/lib/ruby/site_ruby/1.8" -------------------------------------------------------------------------------- /stompserver/templates/default/port_stompserver.erb: -------------------------------------------------------------------------------- 1 | # Stompserver 2 | -A FWR -p tcp -m tcp --dport 61613 -j ACCEPT -------------------------------------------------------------------------------- /syslog/attributes/default.rb: -------------------------------------------------------------------------------- 1 | syslog_ng Mash.new unless attribute?("syslog_ng") 2 | syslog_ng[:root] = "/u/logs" -------------------------------------------------------------------------------- /syslog/files/default/logsort: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcoury/cookbooks/master/syslog/files/default/logsort -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /mogilefs/templates/default/sv-mogstored-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec /u/apps/mogilefs/bin/mogstored 4 | -------------------------------------------------------------------------------- /passenger/templates/default/passenger.load.erb: -------------------------------------------------------------------------------- 1 | LoadModule passenger_module <%= @node[:passenger][:module_path] %> 2 | -------------------------------------------------------------------------------- /collectd/templates/default/collection.conf.erb: -------------------------------------------------------------------------------- 1 | datadir: "/var/lib/collectd/rrd/" 2 | libdir: "/usr/lib/collectd/" 3 | 4 | -------------------------------------------------------------------------------- /passenger_enterprise/README.rdoc: -------------------------------------------------------------------------------- 1 | = DESCRIPTION: 2 | 3 | = REQUIREMENTS: 4 | 5 | = ATTRIBUTES: 6 | 7 | = USAGE: 8 | 9 | -------------------------------------------------------------------------------- /perlbal/templates/default/sv-perlbal-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec sudo -u app /u/apps/mogilefs/bin/perlbal 4 | -------------------------------------------------------------------------------- /users/templates/default/authorized_keys.erb: -------------------------------------------------------------------------------- 1 | <% @keys.each do |name, key| %> 2 | # <%= name %> 3 | <%= key %> 4 | <% end %> -------------------------------------------------------------------------------- /apache2/templates/default/mods/authopenid.load.erb: -------------------------------------------------------------------------------- 1 | LoadModule authopenid_module /usr/lib/apache2/modules/mod_auth_openid.so 2 | -------------------------------------------------------------------------------- /mogilefs/templates/default/sv-mogilefsd-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec sudo -u app /u/apps/mogilefs/bin/mogilefsd 4 | -------------------------------------------------------------------------------- /nfs/attributes/server.rb: -------------------------------------------------------------------------------- 1 | nfs Mash.new unless attribute?(:nfs) 2 | nfs[:exports] = Mash.new unless nfs.has_key?(:exports) 3 | -------------------------------------------------------------------------------- /passenger_apache2/templates/default/passenger.load.erb: -------------------------------------------------------------------------------- 1 | LoadModule passenger_module <%= @node[:passenger][:module_path] %> 2 | -------------------------------------------------------------------------------- /resolver/attributes/resolver.rb: -------------------------------------------------------------------------------- 1 | set_unless[:resolver][:search] = domain 2 | set_unless[:resolver][:nameservers] = [ "" ] 3 | -------------------------------------------------------------------------------- /ssh_keys/templates/default/authorized_keys.erb: -------------------------------------------------------------------------------- 1 | <% @keys.each do |name, key| %> 2 | # <%= name %> 3 | <%= key %> 4 | <% end %> -------------------------------------------------------------------------------- /dns/templates/default/resolv.conf.erb: -------------------------------------------------------------------------------- 1 | domain <%= @domain %> 2 | <% @nameservers.each do |ns| %> 3 | nameserver <%= ns %> 4 | <% end %> -------------------------------------------------------------------------------- /rsnapshot/recipes/server.rb: -------------------------------------------------------------------------------- 1 | package "rsnapshot" 2 | 3 | template "/etc/rsnapshot.conf" do 4 | source "rsnapshot.conf.erb" 5 | end -------------------------------------------------------------------------------- /xen/create_slice/libraries/default.rb: -------------------------------------------------------------------------------- 1 | def generate_mac_address 2 | "00:16:3E:%X%X:%X%X:%X%X" % Array.new(6) { rand(16) } 3 | end -------------------------------------------------------------------------------- /maatkit/files/default/maatkit-5014.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcoury/cookbooks/master/maatkit/files/default/maatkit-5014.tar.gz -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/README.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcoury/cookbooks/master/openvpn/files/default/easy-rsa/README.gz -------------------------------------------------------------------------------- /passenger/files/default/shadow-1.4.1/MANIFEST: -------------------------------------------------------------------------------- 1 | HISTORY 2 | MANIFEST 3 | README 4 | README.euc 5 | depend 6 | extconf.rb 7 | shadow.c 8 | -------------------------------------------------------------------------------- /ruby-shadow/files/default/shadow-1.4.1/MANIFEST: -------------------------------------------------------------------------------- 1 | HISTORY 2 | MANIFEST 3 | README 4 | README.euc 5 | depend 6 | extconf.rb 7 | shadow.c 8 | -------------------------------------------------------------------------------- /hosts/recipes/default.rb: -------------------------------------------------------------------------------- 1 | template "/etc/hosts" do 2 | source "hosts.erb" 3 | owner "root" 4 | group "root" 5 | mode 0644 6 | end 7 | -------------------------------------------------------------------------------- /kickstart/attributes/kickstart.rb: -------------------------------------------------------------------------------- 1 | set_unless[:kickstart][:rootpw] = nil 2 | set_unless[:kickstart][:virtual_host_name] = "build.#{domain}" 3 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /passenger_enterprise/templates/default/passenger.load.erb: -------------------------------------------------------------------------------- 1 | LoadModule passenger_module <%= @node[:passenger_enterprise][:module_path] %> 2 | -------------------------------------------------------------------------------- /passenger/files/default/shadow-1.4.1/README.euc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcoury/cookbooks/master/passenger/files/default/shadow-1.4.1/README.euc -------------------------------------------------------------------------------- /radiant/libraries/radiant.rb: -------------------------------------------------------------------------------- 1 | class Chef 2 | class Recipe 3 | def radiant_edge? 4 | @node[:radiant][:edge] 5 | end 6 | end 7 | end -------------------------------------------------------------------------------- /ssl_certificates/recipes/default.rb: -------------------------------------------------------------------------------- 1 | directory node[:ssl_certificates][:path] do 2 | mode "0750" 3 | owner "root" 4 | group "www-data" 5 | end -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /kvm/files/default/modules/2.6.27-11-server/kvm.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcoury/cookbooks/master/kvm/files/default/modules/2.6.27-11-server/kvm.ko -------------------------------------------------------------------------------- /maatkit/recipes/default.rb: -------------------------------------------------------------------------------- 1 | package "maatkit" 2 | 3 | remote_file "/usr/bin/mk-query-digest" do 4 | source "mk-query-digest" 5 | mode 0755 6 | end -------------------------------------------------------------------------------- /nagios/templates/default/sv-nagios3-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | exec 2>&1 4 | exec <%= @node[:nagios][:bin_path] %> <%= @node[:nagios][:config_path] %> -------------------------------------------------------------------------------- /ruby-shadow/files/default/shadow-1.4.1/README.euc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcoury/cookbooks/master/ruby-shadow/files/default/shadow-1.4.1/README.euc -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /openvpn/files/default/easy-rsa/openssl-0.9.6.cnf.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcoury/cookbooks/master/openvpn/files/default/easy-rsa/openssl-0.9.6.cnf.gz -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /gitweb/templates/default/projects.conf.erb: -------------------------------------------------------------------------------- 1 | <% @projects.each do |name, conf| %> 2 | <% next if conf[:visible] == false %> 3 | <%= name %> Gitosis+User 4 | <% end %> -------------------------------------------------------------------------------- /kvm/files/default/modules/2.6.27-11-server/kvm-amd.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcoury/cookbooks/master/kvm/files/default/modules/2.6.27-11-server/kvm-amd.ko -------------------------------------------------------------------------------- /memcached/attributes/memcached.rb: -------------------------------------------------------------------------------- 1 | set_unless[:memcached][:memory] = 64 2 | set_unless[:memcached][:port] = 11211 3 | set_unless[:memcached][:user] = "nobody" 4 | -------------------------------------------------------------------------------- /cron/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures cron" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /dns/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures dns" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /gnupg/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures gnupg" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /hosts/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures hosts" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /kvm/files/default/modules/2.6.27-11-server/kvm-intel.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcoury/cookbooks/master/kvm/files/default/modules/2.6.27-11-server/kvm-intel.ko -------------------------------------------------------------------------------- /nfs/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures NFS" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /postfix/templates/default/sasl_passwd.erb: -------------------------------------------------------------------------------- 1 | <%= @node[:postfix][:relayhost] %> <%= @node[:postfix][:smtp_sasl_user_name] %>:<%= @node[:postfix][:smtp_sasl_passwd] %> 2 | -------------------------------------------------------------------------------- /ssh/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures ssh" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /xen/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures xen" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /gitosis/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures Gitosis" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /packages/attributes/packages.rb: -------------------------------------------------------------------------------- 1 | # Toggle for recipes to determine if we should rely on distribution packages 2 | # or gems. 3 | set_unless[:packages][:dist_only] = false 4 | -------------------------------------------------------------------------------- /passenger_apache2/templates/default/passenger.conf.erb: -------------------------------------------------------------------------------- 1 | PassengerRoot <%= @node[:passenger][:root_path] %> 2 | PassengerRuby <%= @node[:languages][:ruby][:ruby_bin] %> 3 | -------------------------------------------------------------------------------- /radiant/templates/default/database.yml.erb: -------------------------------------------------------------------------------- 1 | production: 2 | adapter: sqlite3 3 | database: /srv/<%= @appname %>/shared/sqlite/production.sqlite3 4 | timeout: 5000 5 | -------------------------------------------------------------------------------- /rails/attributes/rails.rb: -------------------------------------------------------------------------------- 1 | set_unless[:rails][:version] = false 2 | set_unless[:rails][:environment] = "production" 3 | set_unless[:rails][:max_pool_size] = 4 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /collectd/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures collectd" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /ddclient/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures ddclient" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /ejabberd/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures ejabberd" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /rsyslog/templates/default/remote.conf.erb: -------------------------------------------------------------------------------- 1 | <% case @protocol -%> 2 | <% when "tcp" -%> 3 | *.* @@<%= @server %> 4 | <% when "udp" -%> 5 | *.* @<%= @server %> 6 | <% end -%> 7 | -------------------------------------------------------------------------------- /timezone/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures timezone" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /timezone/recipes/default.rb: -------------------------------------------------------------------------------- 1 | link "/etc/localtime" do 2 | filename = "/usr/share/zoneinfo/#{node[:timezone]}" 3 | to filename 4 | only_if { File.exists? filename } 5 | end -------------------------------------------------------------------------------- /ganglia/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: ganglia 3 | # Recipe:: default 4 | # 5 | # Copyright 2009, 37signals 6 | # 7 | # All rights reserved - Do Not Redistribute 8 | # 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /rsyslog/templates/ubuntu-9.10/remote.conf.erb: -------------------------------------------------------------------------------- 1 | <% case @protocol -%> 2 | <% when "tcp" -%> 3 | *.* @@<%= @server %> 4 | <% when "udp" -%> 5 | *.* @<%= @server %> 6 | <% end -%> 7 | -------------------------------------------------------------------------------- /simple_rails_app/attributes/simple_rails_app.rb: -------------------------------------------------------------------------------- 1 | set_unless[:nginx][:conf_dir] = "/etc/nginx" 2 | set_unless[:apps] = [{ :name => "enki", :username => "site", :git_branch => "master"}] -------------------------------------------------------------------------------- /users/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures users and groups" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /collectd/libraries/default.rb: -------------------------------------------------------------------------------- 1 | 2 | def format_option(option) 3 | return option if option.instance_of?(Fixnum) || option == true || option == false 4 | "\"#{option}\"" 5 | end 6 | 7 | -------------------------------------------------------------------------------- /php5/templates/default/php5.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | AddType application/x-httpd-php .php .phtml .php3 3 | AddType application/x-httpd-php-source .phps 4 | 5 | -------------------------------------------------------------------------------- /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/varnish.rb: -------------------------------------------------------------------------------- 1 | case platform 2 | when "debian","ubuntu" 3 | set[:varnish][:dir] = "/etc/varnish" 4 | set[:varnish][:default] = "/etc/default/varnish" 5 | end 6 | -------------------------------------------------------------------------------- /kvm/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures KVM virtualization environment" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /nfs/recipes/server.rb: -------------------------------------------------------------------------------- 1 | 2 | package "nfs-kernel-server" 3 | 4 | template "/etc/exports" do 5 | source "exports.erb" 6 | owner "root" 7 | group "root" 8 | mode 0644 9 | end 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php5/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures php5" 4 | version "0.1" 5 | depends "apache2" -------------------------------------------------------------------------------- /ssl_certificates/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures SSL certificate" 4 | version "0.1" 5 | -------------------------------------------------------------------------------- /nagios/definitions/nagios_service_template.rb: -------------------------------------------------------------------------------- 1 | define :nagios_template, :template_type => "service" do 2 | node[:nagios][:templates]["#{params[:name]}-#{params[:template_type]}"] = params 3 | end -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /syslog/recipes/default.rb: -------------------------------------------------------------------------------- 1 | package "syslog-ng" do 2 | action :install 3 | end 4 | 5 | service "syslog-ng" do 6 | supports :restart => true, :reload => true 7 | action [:enable, :start] 8 | end -------------------------------------------------------------------------------- /ganglia/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "ganglia" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures Ganglia" 4 | version "0.1" 5 | depends "apache2" 6 | -------------------------------------------------------------------------------- /passenger/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures passenger" 4 | version "0.1" 5 | depends "apache2" -------------------------------------------------------------------------------- /syslog/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures syslog" 4 | version "0.1" 5 | depends "logrotate" -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /tomcat/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures tomcat" 4 | version "0.1" 5 | depends "java" 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /integrity/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures integrity" 4 | version "0.1" 5 | depends "passenger" -------------------------------------------------------------------------------- /ruby_enterprise_edition/attributes/ree.rb: -------------------------------------------------------------------------------- 1 | default.ree[:version] = "1.8.7-2009.10" 2 | #default.ree[:version] = "1.8.6-20090610" 3 | default.ree[:architecture] = kernel[:machine] == "x86_64" ? "amd64" : "i386" -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /bluepill/attributes/bluepill.rb: -------------------------------------------------------------------------------- 1 | default.bluepill[:config_dir] = "/etc/bluepill" 2 | default.bluepill[:log_dir] = "/var/log/bluepill" 3 | default.bluepill[:pid_dir] = "/var/run/bluepill" 4 | bluepill[:version] = "0.0.30" -------------------------------------------------------------------------------- /cron/recipes/default.rb: -------------------------------------------------------------------------------- 1 | if node[:cron][:jobs] 2 | node[:cron][:jobs].each do |name, config| 3 | cron name do 4 | config.each do |k,v| 5 | send(k.to_sym, v) 6 | end 7 | end 8 | end 9 | end -------------------------------------------------------------------------------- /kvm/files/default/templates/scripts/rename-fstab-devices.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | cp $1/etc/fstab $1/etc/fstab.bak 4 | cat $1/etc/fstab | sed "s/sda/vda/g" > $1/etc/fstab.new 5 | mv $1/etc/fstab.new $1/etc/fstab 6 | -------------------------------------------------------------------------------- /mysql/resources/database.rb: -------------------------------------------------------------------------------- 1 | actions :flush_tables_with_read_lock, :unflush_tables 2 | 3 | attribute :host, :kind_of => String 4 | attribute :username, :kind_of => String 5 | attribute :password, :kind_of => String 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 | -------------------------------------------------------------------------------- /monit/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures monit" 4 | long_description "Configures#{cookbook.name}" 5 | version "0.1" 6 | -------------------------------------------------------------------------------- /djbdns/templates/default/sv-public-dnscache-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec 2>&1 3 | exec /dnscache 6 | ' 7 | -------------------------------------------------------------------------------- /gitweb/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures gitweb" 4 | version "0.1" 5 | depends "apache2" 6 | depends "git" -------------------------------------------------------------------------------- /nagios/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures nagios" 4 | version "0.1" 5 | depends "apache2" 6 | depends "runit" -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /perlbal/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures perlbal" 4 | version "0.1" 5 | depends "mogilefs" 6 | depends "runit" -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /mogilefs/templates/default/mogstored.conf.erb: -------------------------------------------------------------------------------- 1 | httplisten=<%= @node[:mogilefs][:mogstored][:http_listen] %> 2 | mgmtlisten=<%= @node[:mogilefs][:mogstored][:mgmt_listen] %> 3 | docroot=<%= @node[:mogilefs][:mogstored][:doc_root] %> 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /mogilefs/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "37signals" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures mogilefs" 4 | long_description "Configures#{cookbook.name}" 5 | version "0.1" 6 | depends "bluepill" -------------------------------------------------------------------------------- /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.8" 6 | supports "ubuntu" 7 | -------------------------------------------------------------------------------- /bluepill/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Joshua Sierles" 2 | maintainer_email "joshua@37signals.com" 3 | license "Apache 2.0" 4 | description "Installs bluepill and provides definitions and templates for monitoring" 5 | version "0.7" -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /sysctl/templates/default/60-custom-settings.conf.erb: -------------------------------------------------------------------------------- 1 | # Custom kernel parameter settings 2 | # Automatically generated by chef - local changes will be overwritten 3 | # 4 | <% @node[:sysctl][:settings].each do |k, v| %> 5 | <%= k %> = <%= v %> 6 | <% end %> -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /sysctl/recipes/default.rb: -------------------------------------------------------------------------------- 1 | service "procps" 2 | 3 | if node[:sysctl][:settings] 4 | template "/etc/sysctl.d/60-custom-settings.conf" do 5 | source "60-custom-settings.conf.erb" 6 | notifies :restart, resources(:service => "procps") 7 | end 8 | end -------------------------------------------------------------------------------- /ssh/templates/default/ssh_config.erb: -------------------------------------------------------------------------------- 1 | # 2 | # Dynamically generated by Chef - local modifications will be replaced 3 | # 4 | Host * 5 | SendEnv LANG LC_* 6 | GSSAPIAuthentication yes 7 | GSSAPIDelegateCredentials no 8 | GlobalKnownHostsFile /etc/ssh/known_hosts -------------------------------------------------------------------------------- /users/attributes/default.rb: -------------------------------------------------------------------------------- 1 | users Mash.new unless attribute?("users") 2 | 3 | # passwords must be in shadow password format with a salt. To generate: openssl passwd -1 4 | # users[:jose] = {:password => "shadowpass", :comment => "José Amador", :ssh_key => "..." } 5 | -------------------------------------------------------------------------------- /thin/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "thin" 2 | maintainer_email "sysadmins@37signals.com" 3 | description "Configures thin, a Ruby web server" 4 | version "0.1" 5 | depends "ruby" 6 | depends "nginx" 7 | depends "apache2" 8 | -------------------------------------------------------------------------------- /perlbal/attributes/perlbal.rb: -------------------------------------------------------------------------------- 1 | perlbal Mash.new unless attribute?("perlbal") 2 | perlbal[:config_path] = "/etc/perlbal" unless perlbal.has_key?(:config_path) 3 | perlbal[:pools] = [] unless perlbal.has_key?(:pools) 4 | perlbal[:proxies] = [] unless perlbal.has_key?(:proxies) 5 | -------------------------------------------------------------------------------- /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" 6 | depends "apt" 7 | supports "ubuntu" 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" 6 | 7 | %w{ubuntu debian}.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /erlang/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs erlang" 5 | version "0.7" 6 | 7 | %w{ ubuntu debian }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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" 6 | 7 | %w{ debian ubuntu }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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" 6 | 7 | %w{ubuntu debian}.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /bootstrap/templates/default/sv-chef-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-indexer 5 | -------------------------------------------------------------------------------- /ddclient/templates/default/ddclient.conf.erb: -------------------------------------------------------------------------------- 1 | pid=/var/run/ddclient.pid 2 | protocol=dyndns2 3 | server=update.dynect.net 4 | use=web 5 | login=<%= @node[:ddclient][:dyndns_login] %> 6 | password=<%= @node[:ddclient][:dyndns_password] %> 7 | <%= "#{@node[:public_fqdn]|| @node[:fqdn]}" %> -------------------------------------------------------------------------------- /nagios/templates/default/hosts.cfg.erb: -------------------------------------------------------------------------------- 1 | # host definitions 2 | 3 | <% @hosts.each do |host| %> 4 | define host { 5 | use server 6 | address <%= host['ipaddress'] %> 7 | host_name <%= host['hostname'] %> 8 | hostgroups <%= hostgroups_for(host) %> 9 | } 10 | 11 | <% end %> -------------------------------------------------------------------------------- /passenger_apache2/attributes/passenger.rb: -------------------------------------------------------------------------------- 1 | set_unless[:passenger][:version] = "2.2.8" 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 | -------------------------------------------------------------------------------- /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" 6 | 7 | %w{ debian ubuntu }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | %w{ debian ubuntu }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /tomcat6/templates/default/tomcat-users.xml.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /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 | %w{ ubuntu debian redhat centos }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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.7" 6 | 7 | %w{ debian ubuntu }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /nagios/templates/default/sv-nagios-bot-run.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # set memory limit to 30MB 3 | exec 2>&1 4 | exec chpst -u nagios -U nagios -m 31457280 <%= @node[:nagios][:bot_path] %> <%= @node[:nagios][:bot_username]%> <%= @node[:nagios][:bot_password] %> <%= @node[:nagios][:bot_authorized_jids] %> -------------------------------------------------------------------------------- /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" 6 | 7 | %w{ ubuntu debian }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /logrotate/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs logrotate" 5 | version "0.7" 6 | 7 | %w{ redhat centos debian ubuntu }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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" 6 | 7 | %w{ redhat centos debian ubuntu }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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" 6 | 7 | %w{ centos fedora redhat ubuntu debian }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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.7" 6 | 7 | %w{ubuntu debian}.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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 | 8 | supports "ubuntu" 9 | -------------------------------------------------------------------------------- /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.7" 6 | 7 | %w{ redhat centos fedora ubuntu debian }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /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" 6 | 7 | %w{ redhat centos fedora ubuntu debian }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ruby/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs ruby packages" 5 | version "0.7" 6 | 7 | %w{ centos redhat fedora ubuntu debian }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /ruby_enterprise_edition/recipes/default.rb: -------------------------------------------------------------------------------- 1 | ree_filename = ["ruby-enterprise", node[:ree][:version], node[:ree][:architecture]].join("_")+".deb" 2 | 3 | remote_file "/tmp/#{ree_filename}" do 4 | source ree_filename 5 | end 6 | 7 | dpkg_package "ruby-enterprise" do 8 | source "/tmp/#{ree_filename}" 9 | end -------------------------------------------------------------------------------- /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.7" 6 | 7 | %w{ redhat centos fedora ubuntu debian }.each do |os| 8 | supports os 9 | end 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]) 9 | exit 0 10 | else 11 | exit 1 12 | end 13 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /mogilefs/recipes/tracker.rb: -------------------------------------------------------------------------------- 1 | require_recipe "mogilefs" 2 | require_recipe "runit" 3 | 4 | template "#{node[:mogilefs][:path]}/etc/mogilefsd.conf" do 5 | source "mogilefsd.conf.erb" 6 | owner "app" 7 | group "app" 8 | mode 0600 9 | end 10 | 11 | bluepill_monitor "mogilefsd" 12 | #runit_service "mogilefsd" 13 | -------------------------------------------------------------------------------- /ntp/attributes/ntp.rb: -------------------------------------------------------------------------------- 1 | case platform 2 | when "ubuntu","debian" 3 | set_unless[:ntp][:service] = "ntp" 4 | when "redhat","centos","fedora" 5 | set_unless[:ntp][:service] = "ntpd" 6 | end 7 | 8 | set_unless[:ntp][:is_server] = false 9 | set_unless[:ntp][:servers] = ["0.us.pool.ntp.org", "1.us.pool.ntp.org"] 10 | -------------------------------------------------------------------------------- /passenger/definitions/passenger_monitor.rb: -------------------------------------------------------------------------------- 1 | define :passenger_monitor do 2 | remote_file "/usr/local/bin/passenger_monitor" do 3 | source "passenger_monitor" 4 | cookbook "passenger" 5 | end 6 | cron "passenger memory monitor" do 7 | command "" 8 | hour "5" 9 | user "app" 10 | end 11 | end -------------------------------------------------------------------------------- /rabbitmq/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs the RabbitMQ AMQP Broker" 5 | version "0.8" 6 | 7 | %w{ centos redhat fedora ubuntu debian }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /dns/recipes/client.rb: -------------------------------------------------------------------------------- 1 | if node[:nameservers] 2 | template "/etc/resolv.conf" do 3 | source "resolv.conf.erb" 4 | variables ({:domain => node[:domain], :nameservers => node[:nameservers], :search => node[:domain]}) 5 | not_if { node[:nameservers].include?(node[:ipaddress]) || node.role?("development") } 6 | end 7 | end -------------------------------------------------------------------------------- /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" 6 | depends "lvm" 7 | 8 | %w{ ubuntu debian}.each do |os| 9 | supports os 10 | end 11 | -------------------------------------------------------------------------------- /gems/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Prodigus Consulting" 2 | maintainer_email "fabioakita@gmail.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures gems" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.1" 7 | depends "ruby_enterprise" 8 | -------------------------------------------------------------------------------- /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.7" 6 | 7 | %w{ redhat centos debian ubuntu}.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /syslog/recipes/client.rb: -------------------------------------------------------------------------------- 1 | require_recipe "syslog" 2 | 3 | template "/etc/syslog-ng/syslog-ng.conf" do 4 | source "syslog-ng-client.conf.erb" 5 | owner "root" 6 | group "root" 7 | mode 0644 8 | notifies :restart, resources(:service => "syslog-ng") 9 | not_if { @node.recipes.include?("syslog::server") } 10 | end -------------------------------------------------------------------------------- /ganglia/attributes/ganglia.rb: -------------------------------------------------------------------------------- 1 | default[:ganglia][:grid_name] = 'Ganglia' 2 | default[:ganglia][:server_fqdn] = 'ganglia' 3 | default[:ganglia][:cluster_name] = 'Default' 4 | default[:ganglia][:servers] = [ '1.2.3.4:3737', '5.6.7.8:3737' ] 5 | default[:ganglia][:clusters] = [ { :name => 'Default', :port => 1234, :interval => 15 } ] 6 | -------------------------------------------------------------------------------- /ganglia/templates/default/ganglia-vhost.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | ServerName <%= @node[:ganglia][:server_fqdn] %> 3 | ServerAlias <%= @node[:ganglia][:server_fqdn].split('.').first %> 4 | DocumentRoot /usr/share/ganglia-webfrontend 5 | ErrorLog /var/log/apache2/ganglia_error.log 6 | 7 | -------------------------------------------------------------------------------- /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 | %w{ redhat centos debian ubuntu }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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 | %w{ debian ubuntu }.each do |os| 9 | supports os 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" 7 | supports "ubuntu" 8 | -------------------------------------------------------------------------------- /php5/attributes/php5.rb: -------------------------------------------------------------------------------- 1 | php5 Mash.new unless attribute?("php5") 2 | default[:php5][:version] = "5.3.0" 3 | default[:php5][:path] = "/usr/local/php" 4 | default[:php5][:tar_pkg] = "php-#{php5[:version]}-#{platform}-#{platform_version}-#{kernel[:machine]}.tar.bz2" 5 | default[:php5][:dist_url] = "http://dist/packages/#{php5[:tar_pkg]}" 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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" 7 | depends "ruby" 8 | depends "rubygems" 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 -c2 -P <%= @node[:bootstrap][:chef][:run_path] %>/server.%s.pid 5 | -------------------------------------------------------------------------------- /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.1" 9 | recipe "rubygems", "Configures rubygems" 10 | -------------------------------------------------------------------------------- /java/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs java" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.9" 7 | 8 | %w{ debian ubuntu }.each do |os| 9 | supports os 10 | end 11 | -------------------------------------------------------------------------------- /kickstart/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode" 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs/Configures kickstart" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.2" 7 | depends "apache2" 8 | supports "redhat" 9 | supports "centos" 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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.1" 7 | 8 | depends "build-essential" 9 | supports "ubuntu" 10 | -------------------------------------------------------------------------------- /nagios/templates/default/hostgroups.cfg.erb: -------------------------------------------------------------------------------- 1 | # Hostgroup definitions 2 | # Automatically generated by Chef 3 | 4 | define hostgroup { 5 | hostgroup_name servers 6 | alias servers 7 | } 8 | 9 | <% @roles.each do |name, conf| %> 10 | define hostgroup { 11 | hostgroup_name <%= name %> 12 | alias <%= conf[:alias] || name %> 13 | } 14 | 15 | <% end %> 16 | 17 | -------------------------------------------------------------------------------- /simple_rails_app/templates/default/rails_app_conf.erb: -------------------------------------------------------------------------------- 1 | server { 2 | server_name <%= @server_name %>; 3 | listen 80; 4 | 5 | location / { 6 | root <%= @root_dir %>/public; 7 | passenger_enabled on; 8 | 9 | if (-f $document_root/system/maintenance.html) { 10 | rewrite ^(.*)$ /system/maintenance.html break; 11 | } 12 | } 13 | } 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" 7 | 8 | %w{ debian ubuntu }.each do |os| 9 | supports os 10 | end 11 | -------------------------------------------------------------------------------- /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.7" 7 | 8 | %w{ debian ubuntu }.each do |os| 9 | supports os 10 | end 11 | -------------------------------------------------------------------------------- /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 | <% if n.has_key?('keys_ssh_host_rsa_public') && n['keys_ssh_host_rsa_public'].length > 0 -%> 4 | <%= n['hostname'] %>,<%= n['ipaddress'] %> ssh-rsa <%= n['keys_ssh_host_rsa_public'] %> 5 | <% end -%> 6 | <% end -%> 7 | -------------------------------------------------------------------------------- /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" 6 | 7 | %w{ packages runit }.each do |cb| 8 | depends cb 9 | end 10 | 11 | %w{ ubuntu debian }.each do |os| 12 | supports os 13 | end 14 | -------------------------------------------------------------------------------- /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.1" 7 | 8 | %w{fedora centos rhel ubuntu debian}.each do |os| 9 | supports os 10 | end 11 | -------------------------------------------------------------------------------- /kvm/files/default/templates/scripts/postinstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "Enabling ttyS0 console..." 4 | sh /usr/local/share/kvm/scripts/grub-console.sh $1 5 | 6 | echo "Renaming sda[12] to vda[12] in fstab..." 7 | sh /usr/local/share/kvm/scripts/rename-fstab-devices.sh $1 8 | 9 | echo "Setup private 172.28 network on eth1..." 10 | sh /usr/local/share/kvm/scripts/add-172-net.sh $1 11 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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.1" 7 | 8 | supports "ubuntu" 9 | 10 | %w{ ruby git erlang runit }.each do |cb| 11 | depends cb 12 | end 13 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /mogilefs/recipes/storenode.rb: -------------------------------------------------------------------------------- 1 | require_recipe "mogilefs" 2 | require_recipe "runit" 3 | 4 | template "#{node[:mogilefs][:path]}/etc/mogstored.conf" do 5 | source "mogstored.conf.erb" 6 | owner "root" 7 | mode 0644 8 | end 9 | 10 | directory "#{node[:mogilefs][:mogstored][:doc_root]}" do 11 | owner "app" 12 | group "app" 13 | mode 0755 14 | end 15 | 16 | bluepill_monitor "mogstored" 17 | -------------------------------------------------------------------------------- /tomcat/attributes/default.rb: -------------------------------------------------------------------------------- 1 | tomcat Mash.new unless attribute?(:tomcat) 2 | tomcat[:user] = "tomcat6" unless tomcat.has_key?(:user) 3 | tomcat[:port] = "8080" unless tomcat.has_key?(:port) 4 | tomcat[:java_home] = "/usr/lib/jvm/java-6-sun" unless tomcat.has_key?(:java_home) 5 | tomcat[:heap_size] = "128M" unless tomcat.has_key?(:heap_size) 6 | tomcat[:stack_size] = "16M" unless tomcat.has_key?(:stack_size) 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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.8" 6 | recipe "apt::cacher", "Set up an APT cache" 7 | recipe "apt::proxy", "Set up an APT proxy" 8 | 9 | %w{ ubuntu debian }.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /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" 7 | 8 | depends "perl" 9 | 10 | %w{ redhat centos debian ubuntu }.each do |os| 11 | supports os 12 | end 13 | -------------------------------------------------------------------------------- /monit/recipes/default.rb: -------------------------------------------------------------------------------- 1 | package "monit" do 2 | action :install 3 | end 4 | 5 | template "/etc/monitrc" do 6 | owner "root" 7 | group "root" 8 | mode 0700 9 | source 'monitrc.erb' 10 | end 11 | 12 | directory "/var/monit" do 13 | owner "root" 14 | group "root" 15 | mode 0700 16 | end 17 | 18 | execute "restart-monit" do 19 | command "pkill -9 monit && monit" 20 | action :nothing 21 | end -------------------------------------------------------------------------------- /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" 7 | 8 | supports "ubuntu" 9 | 10 | %w{ build-essential boost java subversion }.each do |cb| 11 | depends cb 12 | end 13 | -------------------------------------------------------------------------------- /gitweb/recipes/default.rb: -------------------------------------------------------------------------------- 1 | require_recipe "git::server" 2 | 3 | package "gitweb" 4 | 5 | directory node[:gitweb][:config_path] do 6 | mode 0755 7 | recursive true 8 | end 9 | 10 | template "/etc/gitweb/apache.conf" 11 | 12 | template "/etc/gitweb/projects.conf" do 13 | variables :projects => node[:git][:repos] 14 | end 15 | 16 | apache_site "gitweb" do 17 | config_path "/etc/gitweb/apache.conf" 18 | end -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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.8" 7 | 8 | %w{ ubuntu debian centos redhat }.each do |os| 9 | supports os 10 | end 11 | -------------------------------------------------------------------------------- /rails_enterprise/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "ops@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs Ruby on Rails with Ruby Enterprise Edition" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.1" 7 | 8 | %w{ ruby_enterprise }.each do |cb| 9 | depends cb 10 | end 11 | 12 | supports "ubuntu" 13 | -------------------------------------------------------------------------------- /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 | attribute "ec2_metadata", 12 | :display_name => "EC2 Metadata", 13 | :description => "Retrieve EC2 instance metadata" 14 | -------------------------------------------------------------------------------- /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.1" 7 | 8 | %w{ apache2 passenger_apache2 sqlite rails }.each do |cb| 9 | depends cb 10 | end 11 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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.7" 7 | 8 | %w{ ubuntu debian }.each do |os| 9 | supports os 10 | end 11 | 12 | %w{ apache2 python}.each do |cb| 13 | depends cb 14 | end 15 | -------------------------------------------------------------------------------- /kvm/files/default/templates/files/event.d/ttyS0: -------------------------------------------------------------------------------- 1 | # ttyS0 - getty 2 | # 3 | # This service maintains a getty on ttyS0 from the point the system is 4 | # started until it is shut down again. 5 | 6 | start on runlevel 2 7 | start on runlevel 3 8 | start on runlevel 4 9 | start on runlevel 5 10 | 11 | stop on runlevel 0 12 | stop on runlevel 1 13 | stop on runlevel 6 14 | 15 | respawn 16 | exec /sbin/getty 115200 ttyS0 17 | -------------------------------------------------------------------------------- /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.9" 6 | 7 | %w{ apache2 rails passenger_apache2 mysql sqlite }.each do |cb| 8 | depends cb 9 | end 10 | 11 | %w{ ubuntu debian }.each do |os| 12 | supports os 13 | end 14 | -------------------------------------------------------------------------------- /collectd/recipes/default.rb: -------------------------------------------------------------------------------- 1 | package "collectd" 2 | 3 | service "collectd" do 4 | supports :restart => true, :status => true 5 | end 6 | 7 | %w(collectd collection thresholds).each do |file| 8 | template "/etc/collectd/#{file}.conf" do 9 | source "#{file}.conf.erb" 10 | owner "root" 11 | group "root" 12 | mode "644" 13 | notifies :restart, resources(:service => "collectd") 14 | end 15 | end 16 | 17 | -------------------------------------------------------------------------------- /mysql/providers/database.rb: -------------------------------------------------------------------------------- 1 | include Opscode::Mysql::Database 2 | 3 | action :flush_tables_with_read_lock do 4 | Chef::Log.info "mysql_database: flushing tables with read lock" 5 | db.query "flush tables with read lock" 6 | new_resource.updated = true 7 | end 8 | 9 | action :unflush_tables do 10 | Chef::Log.info "mysql_database: unlocking tables" 11 | db.query "unlock tables" 12 | new_resource.updated = true 13 | end 14 | -------------------------------------------------------------------------------- /nagios/attributes/client.rb: -------------------------------------------------------------------------------- 1 | default.nagios[:plugins_dir] = "/u/nagios/plugins" 2 | 3 | default.nagios[:checks][:memory][:critical] = 150 4 | default.nagios[:checks][:memory][:warning] = 250 5 | 6 | default.nagios[:checks][:load][:critical] = "30,20,10" 7 | default.nagios[:checks][:load][:warning] = "15,10,7" 8 | 9 | default.nagios[:checks][:haproxy_queue][:critical] = "10" 10 | default.nagios[:checks][:haproxy_queue][:warning] = "1" -------------------------------------------------------------------------------- /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" 6 | recipe "capistrano", "Installs Capistrano gem" 7 | %w{ ubuntu debian redhat centos fedora freebsd openbsd }.each do |os| 8 | supports os 9 | end 10 | -------------------------------------------------------------------------------- /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" 7 | depends "java" 8 | 9 | %w{ debian ubuntu }.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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.1" 7 | recipe "glassfish", "Main Glassfish configuration" 8 | 9 | %w{redhat centos debian ubuntu}.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /perlbal/recipes/default.rb: -------------------------------------------------------------------------------- 1 | require_recipe "mogilefs" 2 | require_recipe "bluepill" 3 | 4 | directory "#{node[:perlbal][:config_path]}" do 5 | owner "root" 6 | group "root" 7 | end 8 | 9 | bluepill_monitor 'perlbal' 10 | 11 | template "#{node[:perlbal][:config_path]}/perlbal.conf" do 12 | source "perlbal.conf.erb" 13 | owner "app" 14 | mode 0600 15 | notifies :run, resources("execute[restart-bluepill-perlbal]") 16 | end 17 | 18 | -------------------------------------------------------------------------------- /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.2" 7 | 8 | %w{ubuntu debian}.each do |os| 9 | supports os 10 | end 11 | 12 | %w{java runit}.each do |cb| 13 | depends cb 14 | end 15 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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.2" 7 | 8 | %w{ ruby_enterprise nginx apache2 }.each do |cb| 9 | depends cb 10 | end 11 | 12 | supports "ubuntu" 13 | -------------------------------------------------------------------------------- /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" 7 | 8 | %w{debian ubuntu}.each do |os| 9 | supports os 10 | end 11 | 12 | %w{ ruby runit }.each do |cb| 13 | depends cb 14 | end 15 | -------------------------------------------------------------------------------- /gitosis/recipes/default.rb: -------------------------------------------------------------------------------- 1 | 2 | package "gitosis" 3 | 4 | user "gitosis" do 5 | action :remove 6 | end 7 | 8 | group "gitosis" do 9 | action :remove 10 | end 11 | 12 | # Install local modifications to Gitosis 13 | %W(access.py serve.py).each do |patched| 14 | remote_file "/usr/share/python-support/gitosis/gitosis-0.2-py2.5.egg/gitosis/#{patched}" do 15 | source "#{patched}" 16 | owner "root" 17 | group "root" 18 | mode 0755 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /users/recipes/default.rb: -------------------------------------------------------------------------------- 1 | include_recipe "ruby-shadow" 2 | 3 | if node[:users] 4 | node[:users].keys.each do |username| 5 | config = node[:users][username] 6 | user username do 7 | comment config[:comment] 8 | home "/home/#{username}" 9 | shell "/bin/bash" 10 | password config[:password] 11 | supports :manage_home => true 12 | action [:create, :manage] 13 | end 14 | 15 | add_keys username 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /users/libraries/roles.rb: -------------------------------------------------------------------------------- 1 | def user_is_in_role?(username) 2 | return false if !@node[:role] 3 | Chef::Log.info role[:groups].inspect 4 | role[:groups].include? get_user(username)[:group] 5 | end 6 | 7 | def role 8 | @node[:roles][@node[:role]] 9 | end 10 | 11 | # method name 'user' conflicts with chef, so we use 'get_user' 12 | def get_user(username) 13 | Chef::Log.info username 14 | user = @node[:users][username] 15 | Chef::Log.info user.inspect 16 | user 17 | end 18 | -------------------------------------------------------------------------------- /bootstrap/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Configures RubyGems-installed Chef" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.2" 7 | 8 | %w{ ubuntu debian redhat centos fedora freebsd openbsd }.each do |os| 9 | supports os 10 | end 11 | 12 | %w{ runit couchdb stompserver apache2 }.each do |cb| 13 | depends cb 14 | end 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /integrity/templates/default/vhost.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | ServerName <%= @node[:integrity][:server_name] %> 3 | DocumentRoot <%= @node[:integrity][:path] %>/public 4 | ErrorLog <%= @node[:integrity][:path] %>/log/error.log 5 | CustomLog <%= @node[:integrity][:path] %>/log/access.log combined 6 | 7 | /public"> 8 | AllowOverride None 9 | Order allow,deny 10 | Allow from all 11 | 12 | -------------------------------------------------------------------------------- /kvm/files/default/templates/scripts/add-172-net.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | LAST_OCTET=`grep address $1/etc/network/interfaces | awk -F. '{ print $4 }'` 4 | PRIV_IP="172.28.5.${LAST_OCTET}" 5 | 6 | cp $1/etc/network/interfaces $1/etc/network/interfaces.bak 7 | cat >> $1/etc/network/interfaces < 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 | -------------------------------------------------------------------------------- /ssh_keys/definitions/add_keys.rb: -------------------------------------------------------------------------------- 1 | define :add_keys, :conf => {} do 2 | 3 | config = params[:conf] 4 | name = params[:name] 5 | keys = Mash.new 6 | keys[name] = node[:ssh_keys][name] 7 | 8 | template "/home/#{name}/.ssh/authorized_keys" do 9 | source "authorized_keys.erb" 10 | action :create 11 | cookbook "ssh_keys" 12 | owner name 13 | group config[:group] ? config[:group].to_s : name 14 | variables(:keys => keys) 15 | mode 0600 16 | end 17 | end -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /monit/libraries/monitrc.rb: -------------------------------------------------------------------------------- 1 | class Chef 2 | class Recipe 3 | def monitrc(name, variables={}) 4 | Chef::Log.info("Making monitrc for: #{name}") 5 | template "/etc/monit.d/#{name}.#{variables[:app_name]}.monitrc" do 6 | owner "root" 7 | group "root" 8 | mode 0644 9 | source "#{name}.monitrc.erb" 10 | variables variables 11 | notifies :run, resources(:execute => "restart-monit") 12 | action :create 13 | end 14 | end 15 | end 16 | end -------------------------------------------------------------------------------- /xen/create_slice/templates/default/slice_config.xen.erb: -------------------------------------------------------------------------------- 1 | kernel = "/boot/vmlinuz-2.6.18-92.1.6.el5xen" 2 | ramdisk = "/boot/initrd-2.6.18-92.1.6.el5xen.img" 3 | extra = "xencons=tty maxmem=<%= @maxmem %>M" 4 | name = "<%= @name %>" 5 | disk = [ 'phy:mapper/VolGroupXen-<%= @name %>_root,xvda,w', 'phy:mapper/VolGroupXen-<%= @name %>_swap,xvdb,w' ] 6 | vif = [ 'mac=<%= @mac_address %>, bridge=br0' ] 7 | bootloader="/usr/bin/pygrub" 8 | vcpus=<%= @vcpus %> 9 | memory="<%= @memory %>" 10 | maxmem="<%= @maxmem %>" 11 | -------------------------------------------------------------------------------- /integrity/templates/default/config.ru.erb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require "rubygems" 3 | require "integrity" 4 | require 'notifier/campfire' 5 | 6 | # Load configuration and initialize Integrity 7 | Integrity.new(File.dirname(__FILE__) + "/config.yml") 8 | Integrity::Notifier.register(Integrity::Notifier::Campfire) 9 | 10 | # You probably don't want to edit anything below 11 | Integrity::App.set :environment, ENV["RACK_ENV"] || :production 12 | Integrity::App.set :port, 8910 13 | 14 | run Integrity::App 15 | -------------------------------------------------------------------------------- /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.7" 7 | recipe "git::server", "Sets up a runit_service for git daemon" 8 | 9 | %w{ ubuntu debian }.each do |os| 10 | supports os 11 | end 12 | 13 | %w{ apache2 runit }.each do |cb| 14 | depends cb 15 | end 16 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /perlbal/templates/default/bluepill_perlbal.conf.erb: -------------------------------------------------------------------------------- 1 | Bluepill.application("perlbal") do |app| 2 | app.process("perlbal") do |process| 3 | process.start_command = "/u/apps/mogilefs/bin/perlbal" 4 | process.pid_file = "/var/run/bluepill/perlbal.pid" 5 | process.stdout = process.stderr = "/var/log/bluepill/perlbal.log" 6 | process.uid = "app" 7 | process.gid = "app" 8 | process.daemonize = true 9 | process.checks :mem_usage, :every => 10.seconds, :below => 1600.megabytes, :times => [3,5] 10 | end 11 | end 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.1" 7 | recipe "ssh_known_hosts::default", "Dyanmically generates /etc/ssh/known_hosts based on search indexes" 8 | 9 | %w{ redhat centos fedora ubuntu debian }.each do |os| 10 | supports os 11 | end 12 | -------------------------------------------------------------------------------- /nagios/definitions/nagios_conf.rb: -------------------------------------------------------------------------------- 1 | define :nagios_conf, :variables => {}, :config_subdir => true do 2 | 3 | subdir = if params[:config_subdir] 4 | "/#{node[:nagios][:config_subdir]}/" 5 | else 6 | "/" 7 | end 8 | 9 | template "#{node[:nagios][:root]}#{subdir}#{params[:name]}.cfg" do 10 | owner "nagios" 11 | group "nagios" 12 | source "#{params[:name]}.cfg.erb" 13 | mode 0644 14 | variables params[:variables] 15 | notifies :restart, resources(:service => "nagios3") 16 | backup 0 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /nfs/templates/default/exports.erb: -------------------------------------------------------------------------------- 1 | # /etc/exports: the access control list for filesystems which may be exported 2 | # to NFS clients. See exports(5). 3 | # 4 | # Example for NFSv2 and NFSv3: 5 | # /srv/homes hostname1(rw,sync) hostname2(ro,sync) 6 | # 7 | # Example for NFSv4: 8 | # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt) 9 | # /srv/nfs4/homes gss/krb5i(rw,sync) 10 | # 11 | 12 | <% @node[:nfs][:exports].each_key do |mount_point| -%> 13 | <%= mount_point %> <%= @node[:nfs][:exports][mount_point][:nfs_options] %> 14 | <% end %> 15 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | ========================= 2 | Opscode Cookbooks Notices 3 | ========================= 4 | 5 | Developed at Opscode (http://www.opscode.com). 6 | 7 | Contributors and Copyright holders: 8 | 9 | * Copyright 2008-2009, Opscode 10 | * Copyright 2008-2009, Adam Jacob 11 | * Copyright 2008-2009, Joshua Timberman 12 | * Copyright 2009, Joe Williams 13 | * Copyright 2009, Joshua Sierles 14 | * Copyright 2009, Matthew Kent 15 | -------------------------------------------------------------------------------- /ruby-shadow/recipes/default.rb: -------------------------------------------------------------------------------- 1 | remote_directory "/usr/local/src/shadow-1.4.1" do 2 | source 'shadow-1.4.1' 3 | not_if { File.exists?(File.join(node[:ruby_shadow][:site_ruby], "#{node[:languages][:ruby][:platform]}/shadow.so")) } 4 | end 5 | 6 | bash "install ruby shadow library" do 7 | user "root" 8 | cwd "/usr/local/src" 9 | code <<-EOH 10 | cd shadow-1.4.1 11 | ruby extconf.rb 12 | make install 13 | EOH 14 | not_if { File.exists?(File.join(node[:ruby_shadow][:site_ruby], "/#{node[:languages][:ruby][:platform]}/shadow.so")) } 15 | end -------------------------------------------------------------------------------- /monit/templates/default/monitrc.erb: -------------------------------------------------------------------------------- 1 | set daemon 20 2 | set logfile syslog facility log_daemon 3 | set mailserver <%= @node[:mailserver] %>, localhost 4 | set eventqueue 5 | basedir /var/monit # set the base directory where events will be stored 6 | slots 100 # optionaly limit the queue size 7 | set mail-format { from: monit@37signals.com } 8 | 9 | set alert <%= @node[:alert_email] %> # receive all alerts 10 | 11 | set httpd port 3737 and 12 | use address localhost 13 | allow localhost 14 | allow admin:m0nit0rz -------------------------------------------------------------------------------- /bluepill/recipes/default.rb: -------------------------------------------------------------------------------- 1 | gem_package "bluepill" do 2 | version node[:bluepill][:version] 3 | end 4 | 5 | directory node[:bluepill][:config_dir] do 6 | owner "root" 7 | group "root" 8 | end 9 | 10 | directory node[:bluepill][:log_dir] do 11 | owner "root" 12 | group "root" 13 | end 14 | 15 | directory node[:bluepill][:pid_dir] do 16 | owner "root" 17 | group "root" 18 | end 19 | 20 | template "/etc/init.d/bluepill" do 21 | source "init.sh.erb" 22 | mode 0755 23 | end 24 | 25 | service "bluepill" do 26 | action [:enable, :start] 27 | end 28 | -------------------------------------------------------------------------------- /ddclient/recipes/default.rb: -------------------------------------------------------------------------------- 1 | package "ddclient" 2 | 3 | service "ddclient" do 4 | supports :restart => true 5 | action :enable 6 | end 7 | 8 | template "/etc/default/ddclient" do 9 | source "ddclient.default.erb" 10 | mode 0644 11 | owner "root" 12 | notifies :restart, resources(:service => "ddclient") 13 | end 14 | 15 | template "/etc/ddclient.conf" do 16 | source "ddclient.conf.erb" 17 | mode 0600 18 | owner "root" 19 | notifies :restart, resources(:service => "ddclient") 20 | end 21 | 22 | service "ddclient" do 23 | action :start 24 | end -------------------------------------------------------------------------------- /kvm/files/default/templates/scripts/grub-console.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | cp $1/boot/grub/menu.lst $1/boot/grub/menu.lst.bak 4 | 5 | cat > $1/boot/grub/menu.lst.new <> $1/boot/grub/menu.lst.new 13 | cat $1/boot/grub/menu.lst.new | sed "s/^\(kernel.*\)/\\1 console=tty0 console=ttyS0,115200n8/g" > $1/boot/grub/menu.lst 14 | -------------------------------------------------------------------------------- /ejabberd/recipes/default.rb: -------------------------------------------------------------------------------- 1 | package "ejabberd" 2 | 3 | service "ejabberd" do 4 | action :enable 5 | supports :restart => true 6 | end 7 | 8 | template "/etc/ejabberd/ejabberd.cfg" do 9 | source "ejabberd.cfg.erb" 10 | variables(:jabber_domain => node[:jabber_domain]) 11 | notifies :restart, resources(:service => "ejabberd") 12 | end 13 | 14 | # execute "add ejabberd admin user" do 15 | # command "ejabberdctl register admin #{node[:base][:jabber_domain]} #{node[:base][:jabber_admin_password]}" 16 | # end 17 | 18 | service "ejabberd" do 19 | action :start 20 | end 21 | -------------------------------------------------------------------------------- /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.7" 6 | 7 | %w{ 8 | redhat fedora centos 9 | ubuntu debian 10 | macosx freebsd openbsd 11 | solaris 12 | }.each do |os| 13 | supports os 14 | end 15 | 16 | attribute "quick_start/deep_thought", 17 | :display_name => "Quick Start Deep Thought", 18 | :description => "A deep thought", 19 | :default => "If a tree falls in the forest..." 20 | -------------------------------------------------------------------------------- /rabbitmq/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # Is this valid for all platforms? Is it not just rabbitmq on some platform? 2 | # Valid for ubuntu, *probably* debian and EL5 3 | # http://download.fedora.redhat.com/pub/epel/5/x86_64/repoview/letter_r.group.html 4 | package "rabbitmq-server" 5 | 6 | service "rabbitmq-server" do 7 | if platform?("centos","redhat","fedora") 8 | start_command "/sbin/service rabbitmq-server start &> /dev/null" 9 | stop_command "/sbin/service rabbitmq-server stop &> /dev/null" 10 | end 11 | supports [ :restart, :status ] 12 | action [ :enable, :start ] 13 | end 14 | -------------------------------------------------------------------------------- /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 -%> -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /xen/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures xen", 31 | "version": "0.1.0", 32 | "name": "xen", 33 | "providing": { 34 | 35 | } 36 | } -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /ssh/recipes/server.rb: -------------------------------------------------------------------------------- 1 | service "ssh" do 2 | supports :restart => true, :reload => true 3 | action :enable 4 | end 5 | 6 | remote_file "/etc/ssh/known_hosts" do 7 | source "known_hosts" 8 | mode 0644 9 | end 10 | 11 | template "/etc/ssh/ssh_config" do 12 | source "ssh_config.erb" 13 | mode 0644 14 | owner "root" 15 | group "root" 16 | end 17 | 18 | template "/etc/ssh/sshd_config" do 19 | source "sshd_config.erb" 20 | mode 0644 21 | owner "root" 22 | group "root" 23 | notifies :restart, resources(:service => "ssh") 24 | end 25 | 26 | 27 | service "ssh" do 28 | action :start 29 | end -------------------------------------------------------------------------------- /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.7" 6 | 7 | %w{ ubuntu debian }.each do |os| 8 | supports os 9 | end 10 | 11 | attribute "maradns", 12 | :display_name => "MaraDNS", 13 | :description => "Hash of MaraDNS attributes", 14 | :type => "hash" 15 | 16 | attribute "maradns/recursive_acl", 17 | :display_name => "MaraDNS Recursive ACL", 18 | :description => "Sets the recursive_acl setting in mararc.erb", 19 | :default => "" 20 | -------------------------------------------------------------------------------- /nagios/libraries/default.rb: -------------------------------------------------------------------------------- 1 | def nagios_boolean(true_or_false) 2 | true_or_false ? "1" : "0" 3 | end 4 | 5 | def nagios_interval(seconds) 6 | if seconds.to_i < @node[:nagios][:interval_length].to_i 7 | raise ArgumentError, "Specified nagios interval of #{seconds} seconds must be equal to or greater than the default interval length of #{@node[:nagios][:interval_length]}" 8 | end 9 | interval = seconds / @node[:nagios][:interval_length] 10 | interval 11 | end 12 | 13 | def nagios_attr(name) 14 | @node[:nagios][name] 15 | end 16 | 17 | def hostgroups_for(host) 18 | "servers, #{host['role']}" 19 | end 20 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /mogilefs/templates/default/mogilefsd.conf.erb: -------------------------------------------------------------------------------- 1 | db_dsn = <%= @node[:mogilefs][:mogilefsd][:db_dsn] %> 2 | db_user = <%= @node[:mogilefs][:mogilefsd][:db_user] %> 3 | db_pass = <%= @node[:mogilefs][:mogilefsd][:db_pass] %> 4 | conf_port = <%= @node[:mogilefs][:mogilefsd][:conf_port] %> 5 | listener_jobs = <%= @node[:mogilefs][:mogilefsd][:listener_jobs] %> 6 | delete_jobs = <%= @node[:mogilefs][:mogilefsd][:delete_jobs] %> 7 | replicate_jobs = <%= @node[:mogilefs][:mogilefsd][:replicate_jobs] %> 8 | reaper_jobs = <%= @node[:mogilefs][:mogilefsd][:reaper_jobs] %> 9 | mog_root = <%= @node[:mogilefs][:mogilefsd][:mog_root] %> 10 | -------------------------------------------------------------------------------- /nfs/recipes/client.rb: -------------------------------------------------------------------------------- 1 | package "nfs-common" 2 | 3 | if node[:nfs_mounts] 4 | node[:nfs_mounts].each do |target, config| 5 | directory target do 6 | recursive true 7 | owner config[:owner] 8 | group config[:owner] 9 | end 10 | mount target do 11 | fstype "nfs" 12 | options %w(rw,soft,intr) 13 | device config[:device] 14 | dump 0 15 | pass 0 16 | # mount and add to fstab. set to 'disable' to remove it 17 | action [:enable, :mount] 18 | end 19 | end 20 | else 21 | Chef::Log.warn "You included the NFS client recipe without defining nfs mounts." 22 | end -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /passenger/files/default/shadow-1.4.1/extconf.rb: -------------------------------------------------------------------------------- 1 | # -*- ruby -*- 2 | # extconf.rb 3 | # 4 | # Modified at: <1999/8/19 06:38:55 by ttate> 5 | # 6 | 7 | require 'mkmf' 8 | 9 | $CFLAGS = "" 10 | $LDFLAGS = "-lshadow" 11 | 12 | if( ! (ok = have_library("shadow","getspent")) ) 13 | $LDFLAGS = "" 14 | ok = have_func("getspent") 15 | end 16 | 17 | ok &= have_func("sgetspent") 18 | ok &= have_func("fgetspent") 19 | ok &= have_func("setspent") 20 | ok &= have_func("endspent") 21 | ok &= have_func("lckpwdf") 22 | ok &= have_func("ulckpwdf") 23 | 24 | if ok 25 | create_makefile("shadow") 26 | end 27 | -------------------------------------------------------------------------------- /ruby-shadow/files/default/shadow-1.4.1/extconf.rb: -------------------------------------------------------------------------------- 1 | # -*- ruby -*- 2 | # extconf.rb 3 | # 4 | # Modified at: <1999/8/19 06:38:55 by ttate> 5 | # 6 | 7 | require 'mkmf' 8 | 9 | $CFLAGS = "" 10 | $LDFLAGS = "-lshadow" 11 | 12 | if( ! (ok = have_library("shadow","getspent")) ) 13 | $LDFLAGS = "" 14 | ok = have_func("getspent") 15 | end 16 | 17 | ok &= have_func("sgetspent") 18 | ok &= have_func("fgetspent") 19 | ok &= have_func("setspent") 20 | ok &= have_func("endspent") 21 | ok &= have_func("lckpwdf") 22 | ok &= have_func("ulckpwdf") 23 | 24 | if ok 25 | create_makefile("shadow") 26 | end 27 | -------------------------------------------------------------------------------- /cron/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "cron": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures cron", 31 | "version": "0.1.0", 32 | "name": "cron", 33 | "providing": { 34 | "cron": [ 35 | 36 | ] 37 | } 38 | } -------------------------------------------------------------------------------- /passenger/attributes/passenger.rb: -------------------------------------------------------------------------------- 1 | default.passenger[:version] = '2.2.7' 2 | default.passenger[:root_path] = "#{languages[:ruby][:gems_dir]}/gems/passenger-#{passenger[:version]}" 3 | default.passenger[:module_path] = "#{passenger[:root_path]}/ext/apache2/mod_passenger.so" 4 | default.passenger[:apache_load_path] = '/etc/apache2/mods-available/passenger.load' 5 | default.passenger[:apache_conf_path] = '/etc/apache2/mods-available/passenger.conf' 6 | 7 | default.passenger[:soft_memory_limit] = 230 unless passenger.has_key?(:soft_memory_limit) 8 | default.passenger[:hard_memory_limit] = 500 unless passenger.has_key?(:hard_memory_limit) 9 | -------------------------------------------------------------------------------- /gnupg/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "gnupg": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures gnupg", 31 | "version": "0.1.0", 32 | "name": "gnupg", 33 | "providing": { 34 | "gnupg": [ 35 | 36 | ] 37 | } 38 | } -------------------------------------------------------------------------------- /hosts/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "hosts": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures hosts", 31 | "version": "0.1.0", 32 | "name": "hosts", 33 | "providing": { 34 | "hosts": [ 35 | 36 | ] 37 | } 38 | } -------------------------------------------------------------------------------- /ganglia/recipes/client.rb: -------------------------------------------------------------------------------- 1 | 2 | package "ganglia-monitor" 3 | 4 | service "ganglia-monitor" do 5 | enabled true 6 | running true 7 | pattern "gmond" 8 | end 9 | 10 | template "/etc/ganglia/gmond.conf" do 11 | source "gmond.conf.erb" 12 | backup false 13 | owner "ganglia" 14 | group "ganglia" 15 | mode 0644 16 | variables(:server => false, 17 | :cluster => { 18 | :name => @node[:ganglia][:cluster_name], 19 | :port => @node[:ganglia][:clusters].find { |c| c[:name] == @node[:ganglia][:cluster_name] }[:port] 20 | }) 21 | notifies :restart, resources(:service => "ganglia-monitor") 22 | end 23 | -------------------------------------------------------------------------------- /ssh/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "ssh::server": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures ssh", 31 | "version": "0.1.0", 32 | "name": "ssh", 33 | "providing": { 34 | "ssh::server": [ 35 | 36 | ] 37 | } 38 | } -------------------------------------------------------------------------------- /gitosis/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "gitosis": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures Gitosis", 31 | "version": "0.1.0", 32 | "name": "gitosis", 33 | "providing": { 34 | "gitosis": [ 35 | 36 | ] 37 | } 38 | } -------------------------------------------------------------------------------- /users/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "users": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures users and groups", 31 | "version": "0.1.0", 32 | "name": "users", 33 | "providing": { 34 | "users": [ 35 | 36 | ] 37 | } 38 | } -------------------------------------------------------------------------------- /collectd/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "collectd": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures collectd", 31 | "version": "0.1.0", 32 | "name": "collectd", 33 | "providing": { 34 | "collectd": [ 35 | 36 | ] 37 | } 38 | } -------------------------------------------------------------------------------- /ddclient/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "ddclient": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures ddclient", 31 | "version": "0.1.0", 32 | "name": "ddclient", 33 | "providing": { 34 | "ddclient": [ 35 | 36 | ] 37 | } 38 | } -------------------------------------------------------------------------------- /ejabberd/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "ejabberd": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures ejabberd", 31 | "version": "0.1.0", 32 | "name": "ejabberd", 33 | "providing": { 34 | "ejabberd": [ 35 | 36 | ] 37 | } 38 | } -------------------------------------------------------------------------------- /monit/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "Configuresmonit", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "monit": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures monit", 31 | "version": "0.1.0", 32 | "name": "monit", 33 | "providing": { 34 | "monit": [ 35 | 36 | ] 37 | } 38 | } -------------------------------------------------------------------------------- /timezone/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "timezone": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures timezone", 31 | "version": "0.1.0", 32 | "name": "timezone", 33 | "providing": { 34 | "timezone": [ 35 | 36 | ] 37 | } 38 | } -------------------------------------------------------------------------------- /kvm/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "kvm": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures KVM virtualization environment", 31 | "version": "0.1.0", 32 | "name": "kvm", 33 | "providing": { 34 | "kvm": [ 35 | 36 | ] 37 | } 38 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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.8" 6 | 7 | %w{redhat centos}.each do |os| 8 | supports os 9 | end 10 | 11 | attribute "packages", 12 | :display_name => "Packages", 13 | :description => "Hash of Packages attributes", 14 | :type => "hash" 15 | 16 | attribute "packages/dist_only", 17 | :display_name => "Packages Distribution Only?", 18 | :description => "Set to only use distribution-provided packages", 19 | :default => "false" 20 | 21 | -------------------------------------------------------------------------------- /tomcat/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "tomcat": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | "java": [ 23 | 24 | ] 25 | }, 26 | "conflicting": { 27 | 28 | }, 29 | "platforms": { 30 | 31 | }, 32 | "description": "Configures tomcat", 33 | "version": "0.1.0", 34 | "name": "tomcat", 35 | "providing": { 36 | "tomcat": [ 37 | 38 | ] 39 | } 40 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /integrity/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "integrity": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | "passenger": [ 23 | 24 | ] 25 | }, 26 | "conflicting": { 27 | 28 | }, 29 | "platforms": { 30 | 31 | }, 32 | "description": "Configures integrity", 33 | "version": "0.1.0", 34 | "name": "integrity", 35 | "providing": { 36 | "integrity": [ 37 | 38 | ] 39 | } 40 | } -------------------------------------------------------------------------------- /passenger/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "passenger": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | "apache2": [ 23 | 24 | ] 25 | }, 26 | "conflicting": { 27 | 28 | }, 29 | "platforms": { 30 | 31 | }, 32 | "description": "Configures passenger", 33 | "version": "0.1.0", 34 | "name": "passenger", 35 | "providing": { 36 | "passenger": [ 37 | 38 | ] 39 | } 40 | } -------------------------------------------------------------------------------- /ssl_certificates/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "ssl_certificates": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | 23 | }, 24 | "conflicting": { 25 | 26 | }, 27 | "platforms": { 28 | 29 | }, 30 | "description": "Configures SSL certificate", 31 | "version": "0.1.0", 32 | "name": "ssl_certificates", 33 | "providing": { 34 | "ssl_certificates": [ 35 | 36 | ] 37 | } 38 | } -------------------------------------------------------------------------------- /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.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 | -------------------------------------------------------------------------------- /zsh/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Installs zsh", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "zsh": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ], 18 | "debian": [ 19 | 20 | ] 21 | }, 22 | "version": "0.7.0", 23 | "name": "zsh", 24 | "conflicting": { 25 | 26 | }, 27 | "attributes": { 28 | 29 | }, 30 | "providing": { 31 | "zsh": [ 32 | 33 | ] 34 | }, 35 | "license": "Apache 2.0", 36 | "long_description": "", 37 | "replacing": { 38 | 39 | }, 40 | "dependencies": { 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /apparmor/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Disables apparmor service on Ubuntu", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "apparmor": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ] 18 | }, 19 | "version": "0.7.0", 20 | "name": "apparmor", 21 | "conflicting": { 22 | 23 | }, 24 | "attributes": { 25 | 26 | }, 27 | "providing": { 28 | "apparmor": [ 29 | 30 | ] 31 | }, 32 | "license": "Apache 2.0", 33 | "long_description": "", 34 | "replacing": { 35 | 36 | }, 37 | "dependencies": { 38 | 39 | } 40 | } -------------------------------------------------------------------------------- /dns/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "dns::client": "", 16 | "dns": "" 17 | }, 18 | "maintainer_email": "sysadmins@37signals.com", 19 | "suggestions": { 20 | 21 | }, 22 | "dependencies": { 23 | 24 | }, 25 | "conflicting": { 26 | 27 | }, 28 | "platforms": { 29 | 30 | }, 31 | "description": "Configures dns", 32 | "version": "0.1.0", 33 | "name": "dns", 34 | "providing": { 35 | "dns::client": [ 36 | 37 | ], 38 | "dns": [ 39 | 40 | ] 41 | } 42 | } -------------------------------------------------------------------------------- /java/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Installs java", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "java": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ], 18 | "debian": [ 19 | 20 | ] 21 | }, 22 | "version": "0.7.0", 23 | "name": "java", 24 | "conflicting": { 25 | 26 | }, 27 | "attributes": { 28 | 29 | }, 30 | "providing": { 31 | "java": [ 32 | 33 | ] 34 | }, 35 | "license": "Apache 2.0", 36 | "long_description": "", 37 | "replacing": { 38 | 39 | }, 40 | "dependencies": { 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /man/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Installs man-db", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "man": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ], 18 | "debian": [ 19 | 20 | ] 21 | }, 22 | "version": "0.7.0", 23 | "name": "man", 24 | "conflicting": { 25 | 26 | }, 27 | "attributes": { 28 | 29 | }, 30 | "providing": { 31 | "man": [ 32 | 33 | ] 34 | }, 35 | "license": "Apache 2.0", 36 | "long_description": "", 37 | "replacing": { 38 | 39 | }, 40 | "dependencies": { 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /nagios/recipes/client.rb: -------------------------------------------------------------------------------- 1 | package "nagios-nrpe-server" 2 | 3 | gem_package "choice" 4 | 5 | service "nagios-nrpe-server" do 6 | action :enable 7 | supports :restart => true, :reload => true 8 | end 9 | 10 | directory "/u/nagios" do 11 | owner "nagios" 12 | group "nagios" 13 | recursive true 14 | end 15 | 16 | remote_directory node[:nagios][:plugins_dir] do 17 | source "plugins" 18 | files_backup 5 19 | files_owner "nagios" 20 | files_group "nagios" 21 | files_mode 0755 22 | owner "nagios" 23 | group "nagios" 24 | mode 0755 25 | end 26 | 27 | template "/etc/nagios/nrpe.cfg" do 28 | source "nrpe.cfg.erb" 29 | notifies :restart, resources(:service => "nagios-nrpe-server") 30 | end 31 | -------------------------------------------------------------------------------- /erlang/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Installs erlang", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "erlang": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ], 18 | "debian": [ 19 | 20 | ] 21 | }, 22 | "version": "0.7.0", 23 | "name": "erlang", 24 | "conflicting": { 25 | 26 | }, 27 | "attributes": { 28 | 29 | }, 30 | "providing": { 31 | "erlang": [ 32 | 33 | ] 34 | }, 35 | "license": "Apache 2.0", 36 | "long_description": "", 37 | "replacing": { 38 | 39 | }, 40 | "dependencies": { 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /gitweb/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "gitweb": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | "git": [ 23 | 24 | ], 25 | "apache2": [ 26 | 27 | ] 28 | }, 29 | "conflicting": { 30 | 31 | }, 32 | "platforms": { 33 | 34 | }, 35 | "description": "Configures gitweb", 36 | "version": "0.1.0", 37 | "name": "gitweb", 38 | "providing": { 39 | "gitweb": [ 40 | 41 | ] 42 | } 43 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /passenger/templates/default/passenger.conf.erb: -------------------------------------------------------------------------------- 1 | PassengerRoot <%= @node[:passenger][:root_path] %> 2 | PassengerRuby <%= @node[:passenger][:tune_gc] ? "/usr/local/bin/ruby_gc_wrapper" : @node[:languages][:ruby][:ruby_bin] %> 3 | <% if @node[:passenger].has_key?(:max_pool_size) %>PassengerMaxPoolSize <%= @node[:passenger][:max_pool_size] %><% end %> 4 | <% if @node[:passenger].has_key?(:max_instances_per_app) %>PassengerMaxInstancesPerApp <%= @node[:passenger][:max_instances_per_app] %><% end %> 5 | <% if @node[:passenger].has_key?(:use_global_queue) %>PassengerUseGlobalQueue <%= @node[:passenger][:use_global_queue] %><% end %> 6 | <% if @node[:passenger].has_key?(:rails_env) %>RailsEnv <%= @node[:passenger][:rails_env] %><% end %> 7 | -------------------------------------------------------------------------------- /sqlite/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Installs sqlite", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "sqlite": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ], 18 | "debian": [ 19 | 20 | ] 21 | }, 22 | "version": "0.7.0", 23 | "name": "sqlite", 24 | "conflicting": { 25 | 26 | }, 27 | "attributes": { 28 | 29 | }, 30 | "providing": { 31 | "sqlite": [ 32 | 33 | ] 34 | }, 35 | "license": "Apache 2.0", 36 | "long_description": "", 37 | "replacing": { 38 | 39 | }, 40 | "dependencies": { 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /ubuntu/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Sets up sources for ubuntu", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "ubuntu": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ] 18 | }, 19 | "version": "0.7.0", 20 | "name": "ubuntu", 21 | "conflicting": { 22 | 23 | }, 24 | "attributes": { 25 | 26 | }, 27 | "providing": { 28 | "ubuntu": [ 29 | 30 | ] 31 | }, 32 | "license": "Apache 2.0", 33 | "long_description": "", 34 | "replacing": { 35 | 36 | }, 37 | "dependencies": { 38 | "apt": [ 39 | 40 | ] 41 | } 42 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /nagios/files/default/notifiers/send_passive_check: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'erb' 4 | require 'optparse' 5 | 6 | 7 | options = {} 8 | 9 | OptionParser.new do |opts| 10 | opts.on('-s', '--service_name NAME', 'Nagios service description') { |name| options[:service_name] = name } 11 | opts.on('-c', '--command COMMAND', 'Plugin command line') { |command| options[:command] = command } 12 | end.parse! 13 | 14 | result = `#{options[:command]}` 15 | exit_status = $? 16 | time = Time.now.to_i 17 | hostname = `hostname -s`.chomp 18 | command = "[#{time}] PROCESS_SERVICE_CHECK_RESULT;#{hostname};#{options[:service_name]};#{exit_status};#{result}" 19 | `ssh nagios@noc "echo '#{command}' >> /usr/local/nagios/var/rw/nagios.cmd"` -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /munin/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Instsalls and configures munin", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "munin": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ], 18 | "debian": [ 19 | 20 | ] 21 | }, 22 | "version": "0.7.0", 23 | "name": "munin", 24 | "conflicting": { 25 | 26 | }, 27 | "attributes": { 28 | 29 | }, 30 | "providing": { 31 | "munin": [ 32 | 33 | ] 34 | }, 35 | "license": "Apache 2.0", 36 | "long_description": "", 37 | "replacing": { 38 | 39 | }, 40 | "dependencies": { 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /perlbal/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "perlbal": "" 16 | }, 17 | "maintainer_email": "sysadmins@37signals.com", 18 | "suggestions": { 19 | 20 | }, 21 | "dependencies": { 22 | "runit": [ 23 | 24 | ], 25 | "mogilefs": [ 26 | 27 | ] 28 | }, 29 | "conflicting": { 30 | 31 | }, 32 | "platforms": { 33 | 34 | }, 35 | "description": "Configures perlbal", 36 | "version": "0.1.0", 37 | "name": "perlbal", 38 | "providing": { 39 | "perlbal": [ 40 | 41 | ] 42 | } 43 | } -------------------------------------------------------------------------------- /python/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Installs python packages", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "python": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ], 18 | "debian": [ 19 | 20 | ] 21 | }, 22 | "version": "0.7.0", 23 | "name": "python", 24 | "conflicting": { 25 | 26 | }, 27 | "attributes": { 28 | 29 | }, 30 | "providing": { 31 | "python": [ 32 | 33 | ] 34 | }, 35 | "license": "Apache 2.0", 36 | "long_description": "", 37 | "replacing": { 38 | 39 | }, 40 | "dependencies": { 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /mercurial/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Installs mercurial", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "mercurial": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ], 18 | "debian": [ 19 | 20 | ] 21 | }, 22 | "version": "0.7.0", 23 | "name": "mercurial", 24 | "conflicting": { 25 | 26 | }, 27 | "attributes": { 28 | 29 | }, 30 | "providing": { 31 | "mercurial": [ 32 | 33 | ] 34 | }, 35 | "license": "Apache 2.0", 36 | "long_description": "", 37 | "replacing": { 38 | 39 | }, 40 | "dependencies": { 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /varnish/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Instsalls and configures varnish", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "varnish": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ], 18 | "debian": [ 19 | 20 | ] 21 | }, 22 | "version": "0.7.0", 23 | "name": "varnish", 24 | "conflicting": { 25 | 26 | }, 27 | "attributes": { 28 | 29 | }, 30 | "providing": { 31 | "varnish": [ 32 | 33 | ] 34 | }, 35 | "license": "Apache 2.0", 36 | "long_description": "", 37 | "replacing": { 38 | 39 | }, 40 | "dependencies": { 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /fail2ban/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Installs and configures fail2ban", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "fail2ban": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ], 18 | "debian": [ 19 | 20 | ] 21 | }, 22 | "version": "0.7.0", 23 | "name": "fail2ban", 24 | "conflicting": { 25 | 26 | }, 27 | "attributes": { 28 | 29 | }, 30 | "providing": { 31 | "fail2ban": [ 32 | 33 | ] 34 | }, 35 | "license": "Apache 2.0", 36 | "long_description": "", 37 | "replacing": { 38 | 39 | }, 40 | "dependencies": { 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /php5/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "php5::sites": "", 16 | "php5": "" 17 | }, 18 | "maintainer_email": "sysadmins@37signals.com", 19 | "suggestions": { 20 | 21 | }, 22 | "dependencies": { 23 | "apache2": [ 24 | 25 | ] 26 | }, 27 | "conflicting": { 28 | 29 | }, 30 | "platforms": { 31 | 32 | }, 33 | "description": "Configures php5", 34 | "version": "0.1.0", 35 | "name": "php5", 36 | "providing": { 37 | "php5::sites": [ 38 | 39 | ], 40 | "php5": [ 41 | 42 | ] 43 | } 44 | } -------------------------------------------------------------------------------- /teamspeak/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Installs teamspeak and enables service", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "teamspeak": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ] 18 | }, 19 | "version": "0.8.0", 20 | "name": "teamspeak", 21 | "conflicting": { 22 | 23 | }, 24 | "attributes": { 25 | 26 | }, 27 | "providing": { 28 | "teamspeak": [ 29 | 30 | ] 31 | }, 32 | "license": "Apache 2.0", 33 | "long_description": "", 34 | "replacing": { 35 | 36 | }, 37 | "dependencies": { 38 | "php": [ 39 | 40 | ] 41 | } 42 | } -------------------------------------------------------------------------------- /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." -------------------------------------------------------------------------------- /integrity/files/default/integrity_build.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | # Integrity periodic build script. 4 | # Original: http://gist.github.com/88432 5 | 6 | ENV["RAILS_ENV"] = "test" 7 | ENV["PATH"] = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" 8 | 9 | require 'rubygems' 10 | require 'integrity' 11 | require 'notifier/campfire' 12 | 13 | Integrity::Notifier.register(Integrity::Notifier::Campfire) 14 | 15 | Integrity.new(File.dirname(__FILE__) + "/config.yml") 16 | 17 | Integrity::Project.all.each do |project| 18 | last_commit = project.commits.last 19 | build = last_commit ? project.send(:head_of_remote_repo) != last_commit.identifier : false 20 | project.build if build || project.commits.last.nil? 21 | end 22 | 23 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /gitweb/templates/default/gitweb.conf.erb: -------------------------------------------------------------------------------- 1 | # path to git projects (.git) 2 | $projectroot = "<%= @node[:git][:repo_root] %>"; 3 | 4 | # directory to use for temp files 5 | $git_temp = "/tmp"; 6 | 7 | # target of the home link on top of all pages 8 | #$home_link = $my_uri || "/"; 9 | 10 | # html text to include at home page 11 | $home_text = "indextext.html"; 12 | 13 | # file with project list; by default, simply scan the projectroot dir. 14 | $projects_list = "/etc/gitweb/projects.conf"; 15 | 16 | # stylesheet to use 17 | $stylesheet = "/gitweb.css"; 18 | 19 | # logo to use 20 | $logo = "/git-logo.png"; 21 | 22 | # the 'favicon' 23 | $favicon = "/git-favicon.png"; 24 | 25 | # restrict access to projects on visible overview page 26 | $strict_export = true; -------------------------------------------------------------------------------- /perlbal/templates/default/perlbal.conf.erb: -------------------------------------------------------------------------------- 1 | CREATE SERVICE mgmt 2 | SET role = management 3 | SET listen = 127.0.0.1:8065 4 | ENABLE mgmt 5 | 6 | <% @node[:perlbal][:pools].each do |pool| %> 7 | CREATE POOL <%= pool[:name] %> 8 | <% pool[:backends].each do |backend| %> 9 | POOL <%= pool[:name] %> ADD <%= backend[:ip] %>:<%= backend[:port] %> 10 | <% end %> 11 | <% end %> 12 | 13 | <% @node[:perlbal][:proxies].each do |proxy| %> 14 | CREATE SERVICE <%= proxy[:name] %> 15 | SET role = <%= proxy[:role] %> 16 | SET pool = <%= proxy[:pool] %> 17 | SET enable_reproxy = <%= proxy[:reproxy] %> 18 | SET listen = <%= proxy[:ip] %>:<%= proxy[:port] %> 19 | SET always_trusted = <%= proxy[:always_trusted] %> 20 | ENABLE <%= proxy[:name] %> 21 | <% end %> 22 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /drbd/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "maintainer": "Opscode, Inc.", 3 | "description": "Installs but does not configure drbd", 4 | "recommendations": { 5 | 6 | }, 7 | "maintainer_email": "cookbooks@opscode.com", 8 | "recipes": { 9 | "drbd": "" 10 | }, 11 | "suggestions": { 12 | 13 | }, 14 | "platforms": { 15 | "ubuntu": [ 16 | 17 | ], 18 | "debian": [ 19 | 20 | ] 21 | }, 22 | "version": "0.7.0", 23 | "name": "drbd", 24 | "conflicting": { 25 | 26 | }, 27 | "attributes": { 28 | 29 | }, 30 | "providing": { 31 | "drbd": [ 32 | 33 | ] 34 | }, 35 | "license": "Apache 2.0", 36 | "long_description": "", 37 | "replacing": { 38 | 39 | }, 40 | "dependencies": { 41 | "lvm": [ 42 | 43 | ] 44 | } 45 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /postfix/attributes/postfix.rb: -------------------------------------------------------------------------------- 1 | set_unless[:postfix][:mail_type] = "client" 2 | set_unless[:postfix][:myhostname] = fqdn 3 | set_unless[:postfix][:mydomain] = domain 4 | set_unless[:postfix][:myorigin] = "$myhostname" 5 | set_unless[:postfix][:relayhost] = "" 6 | set_unless[:postfix][:mail_relay_networks] = "127.0.0.0/8" 7 | 8 | set_unless[:postfix][:smtp_sasl_auth_enable] = "no" 9 | set_unless[:postfix][:smtp_sasl_password_maps] = "hash:/etc/postfix/sasl_passwd" 10 | set_unless[:postfix][:smtp_sasl_security_options] = "noanonymous" 11 | set_unless[:postfix][:smtp_tls_cafile] = "/etc/postfix/cacert.pem" 12 | set_unless[:postfix][:smtp_use_tls] = "yes" 13 | set_unless[:postfix][:smtp_sasl_user_name] = "" 14 | set_unless[:postfix][:smtp_sasl_passwd] = "" 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /postgresql/metadata.rb: -------------------------------------------------------------------------------- 1 | maintainer "Opscode, Inc." 2 | maintainer_email "cookbooks@opscode.com" 3 | license "Apache 2.0" 4 | description "Installs and configures postgresql for clients or servers" 5 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) 6 | version "0.7" 7 | recipe "postgresql::client", "Installs postgresql client package(s)" 8 | recipe "postgresql::server", "Installs postgresql server packages, templates" 9 | 10 | %w{rhel centos ubuntu debian}.each do |os| 11 | supports os 12 | end 13 | 14 | attribute "postgresql/dir", 15 | :display_name => "PostgreSQL Directory", 16 | :description => "Location of the PostgreSQL databases", 17 | :default => "/etc/postgresql/8.3/main" 18 | 19 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /nfs/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "replacing": { 3 | 4 | }, 5 | "long_description": "", 6 | "attributes": { 7 | 8 | }, 9 | "maintainer": "37signals", 10 | "recommendations": { 11 | 12 | }, 13 | "license": "Apache v2.0", 14 | "recipes": { 15 | "nfs": "", 16 | "nfs::client": "", 17 | "nfs::server": "" 18 | }, 19 | "maintainer_email": "sysadmins@37signals.com", 20 | "suggestions": { 21 | 22 | }, 23 | "dependencies": { 24 | 25 | }, 26 | "conflicting": { 27 | 28 | }, 29 | "platforms": { 30 | 31 | }, 32 | "description": "Configures NFS", 33 | "version": "0.1.0", 34 | "name": "nfs", 35 | "providing": { 36 | "nfs": [ 37 | 38 | ], 39 | "nfs::client": [ 40 | 41 | ], 42 | "nfs::server": [ 43 | 44 | ] 45 | } 46 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /mogilefs/templates/default/bluepill_mogilefsd.conf.erb: -------------------------------------------------------------------------------- 1 | Bluepill.application("mogilefsd", :log_file => "/var/log/bluepill/bluepill_mogilefsd.log") do |app| 2 | app.process("mogilefsd") do |process| 3 | process.start_command = "/u/apps/mogilefs/bin/mogilefsd" 4 | process.stdout = process.stderr = "/var/log/bluepill/mogilefsd.log" 5 | process.uid = "app" 6 | process.gid = "app" 7 | process.pid_file = "/var/run/bluepill/mogilefsd.pid" 8 | process.daemonize = true 9 | process.checks :mem_usage, :every => 10, :below => 200.megabytes, :times => [3, 5] 10 | 11 | process.monitor_children do |cp| 12 | cp.checks :mem_usage, :every => 10, :below => 30.megabytes, :times => [3, 5] 13 | cp.stop_command = "kill -QUIT {{PID}}" 14 | end 15 | end 16 | end -------------------------------------------------------------------------------- /mogilefs/templates/default/bluepill_mogstored.conf.erb: -------------------------------------------------------------------------------- 1 | Bluepill.application("mogstored", :log_file => "/var/log/bluepill/bluepill_mogstored.log") do |app| 2 | app.process("mogstored") do |process| 3 | process.start_command = "/u/apps/mogilefs/bin/mogstored" 4 | process.stdout = process.stderr = "/var/log/bluepill/mogstored.log" 5 | process.uid = "root" 6 | process.gid = "root" 7 | process.pid_file = "/var/run/bluepill/mogstored.pid" 8 | process.daemonize = true 9 | process.checks :mem_usage, :every => 10, :below => 100.megabytes, :times => [3, 5] 10 | 11 | process.monitor_children do |cp| 12 | cp.checks :mem_usage, :every => 10, :below => 30.megabytes, :times => [3, 5] 13 | cp.stop_command = "kill -QUIT {{PID}}" 14 | end 15 | end 16 | end -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------