This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash -c ' | |
if [ ! -f /usr/local/bin/chef-client ]; then | |
apt-get update | |
sudo apt-get install -y build-essential zlib1g zlib1g-dev openssl libssl-dev libyaml-dev | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.3-p125.tar.gz | |
tar xvf ruby-1.9.3-p125.tar.gz | |
cd ruby-1.9.3-p125 | |
./configure | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name "webserver" | |
description "Systems that serve HTTP" | |
run_list( | |
"recipe[chef-client]", | |
"recipe[ssh_known_hosts]", | |
"recipe[apt]", | |
"recipe[git]", | |
"recipe[nginx]", | |
"recipe[unicorn]" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "github", | |
"fqdn": "github.com", | |
"rsa": "use value from cat ~/.ssh/known_hosts | grep git" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nginx | |
check process nginx with pidfile /var/run/nginx.pid | |
start program = "/etc/init.d/nginx start" | |
stop program = "/etc/init.d/nginx stop" | |
if failed host 127.0.0.1 port 80 then restart | |
if cpu is greater than 40% for 2 cycles then alert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
monitrc("nginx-monit") \ | |
if node.recipes.include?('monit') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name "production" | |
description "Nodes in production" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name "muninserver" | |
description "Munin server" | |
run_list( | |
"recipe[chef-client]", | |
"recipe[munin::server]" | |
) | |
default_attributes( | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default['munin']['sysadmin_email'] = "your@email.com" | |
default['munin']['server_role'] = 'muninserver' | |
default['munin']['server_auth_method'] = 'htauth' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
require 'hardware' | |
class Postgresql <Formula | |
homepage 'http://www.postgresql.org/' | |
url 'http://ftp2.uk.postgresql.org/sites/ftp.postgresql.org/source/v8.4.11/postgresql-8.4.11.tar.bz2' | |
md5 'f9b731a1162b177a173640efab2275d0' | |
depends_on 'readline' | |
depends_on 'libxml2' if MACOS_VERSION < 10.6 # Leopard libxml is too old |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
def build_gui? | |
ARGV.include? '--with-gui' | |
end | |
class Postgis < Formula | |
homepage 'http://postgis.refractions.net' | |
url 'http://postgis.org/download/postgis-1.5.1.tar.gz' | |
md5 '8353b38c38282b2192f01693f71b8d28' |
OlderNewer