This file contains hidden or 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
## http://brainspl.at/nginx.conf.txt | |
#user and group to run as | |
user nginx nginx; | |
# number of nginx workers | |
worker_processes 4; | |
# pid of nginx master process | |
# pid /var/run/nginx.pid |
This file contains hidden or 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
gemcount=`gem list --local something | wc -l` | |
if [ "${gemcount}" = "1" ] | |
then | |
echo "OK: it's installed" | |
exit 0 | |
else | |
echo "I am sorry but #{gemcount} != 1" | |
exit 1 | |
fi | |
else |
This file contains hidden or 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
upstream unicorn { | |
server unix:/u/apps/something/shared/sockets/unicorn.sock; | |
} | |
server { | |
listen 80; | |
server_name something.com; | |
access_log /u/apps/something/current/log/access.log main; | |
error_log /u/apps/something/current/log/error.log error; | |
This file contains hidden or 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
ruby_block "apache_version" do | |
block do | |
@apache_version_temp1=IO.popen("/usr/local/apache/bin/httpd -V | grep 'Server version' | awk '{print $3}' | cut -d / -f 2-2") | |
@apache_version=@apache_version_temp1.readline.chomp.to_i | |
end | |
end | |
remote_file "/usr/src/httpd-2.2.14.tar.bz2" do | |
source "http://archive.apache.org/dist/httpd/httpd-2.2.14.tar.bz2" | |
owner "root" |
This file contains hidden or 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
# | |
# Cookbook Name:: users | |
# Recipe:: default | |
# | |
# Copyright 2009, Opscode, Inc | |
package "libshadow-ruby1.8" | |
group "sysadmin" do | |
gid 4242 |
This file contains hidden or 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
remote_file "/usr/src/nagios-3.2.0.tar.gz" do | |
source "http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.0.tar.gz" | |
checksum "7cbf35ba0319f24fa085982c038437c4515003b27863c4897dc86b197a50a5e7" | |
not_if { FileTest.exists?("/usr/src/nagios-3.2.0.tar.gz") } | |
end | |
execute "un-unarchive nagios" do | |
command "cd /usr/src;tar zxfv nagios-3.2.0.tar.gz" | |
only_if { FileTest.exists?("/usr/src/nagios-3.2.0.tar.gz") } | |
not_if { FileTest.directory?("/usr/src/nagios-3.2.0") } |
This file contains hidden or 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
# Joshua Timberman <[email protected]> | |
# My .zshrc, modified from: | |
# | |
# $Id: .zshrc,v 1.1 2006/04/19 22:08:04 adam Exp $ | |
# | |
# Adam's zshrc - <[email protected]> | |
# | |
# Stolen entirely from -- | |
# | |
# Andy's zshrc <[email protected]> |
This file contains hidden or 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
# | |
# Cookbook Name:: scaffold | |
# Recipe:: network | |
# | |
# Copyright 2009, IGN Entertainment | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
execute "set_hostname" do |
This file contains hidden or 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
# Joshua Timberman <[email protected]> | |
# My .zshrc, modified from: | |
# | |
# $Id: .zshrc,v 1.1 2006/04/19 22:08:04 adam Exp $ | |
# | |
# Adam's zshrc - <[email protected]> | |
# | |
# Stolen entirely from -- | |
# | |
# Andy's zshrc <[email protected]> |
This file contains hidden or 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
15:28 <Damm> sigmonsays, http://seattlerb.rubyforge.org/SyslogLogger/ | |
15:28 <holoway> sigmonsays: in theory, you can drop in that SyslogLogger for Chef::Log.logger | |
15:29 <holoway> sigmonsays: something like Chef::Log.logger = SyslogLogger.new("chef") | |
15:31 >>> bleything <3 SyslogLogger |