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 "something" do | |
block do | |
require 'expect' | |
require 'pty' | |
PTY.spawn( 'dnscache-setup' ) do |read,write,pid| | |
write.sync = true | |
$expect_verbose = false | |
read.expect( '(press enter to begin setup, or press control-C to abort)', 30 ) do |response| |
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:: nginx | |
# Recipe:: src | |
# Author:: Scott M. Likens <[email protected]> | |
%w(build-essential libxslt1-dev libxml2-dev libpcre3-dev libperl-dev libssl-dev).each do |p| | |
package(p) | |
end | |
bash "install_nginx" 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
[Mon, 14 Sep 2009 18:15:03 -0400] INFO: Creating remote_file[/usr/src/memcached-1.4.1.tar.gz] at /usr/src/memcached-1.4.1.tar.gz | |
[Mon, 14 Sep 2009 18:15:03 -0400] INFO: Setting owner to 0 for remote_file[/usr/src/memcached-1.4.1.tar.gz] | |
[Mon, 14 Sep 2009 18:15:03 -0400] INFO: Setting group to 0 for remote_file[/usr/src/memcached-1.4.1.tar.gz] | |
[Mon, 14 Sep 2009 18:15:03 -0400] INFO: Setting mode to 644 for remote_file[/usr/src/memcached-1.4.1.tar.gz] | |
[Mon, 14 Sep 2009 18:15:03 -0400] INFO: Ran execute[unarchive-memcached] successfully | |
[Mon, 14 Sep 2009 18:15:08 -0400] INFO: Ran execute[configure-memcached] successfully | |
[Mon, 14 Sep 2009 18:15:10 -0400] INFO: Ran execute[make-memcached] successfully | |
[Mon, 14 Sep 2009 18:15:10 -0400] INFO: Ran execute[install-memcached] successfully | |
[Mon, 14 Sep 2009 18:15:10 -0400] INFO: Creating remote_file[/etc/init.d/memcached] at /etc/init.d/memcached | |
[Mon, 14 Sep 2009 18:15:10 -0400] INFO: Setting owner to 0 for remote_file[/etc/init.d/memcached] |
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
#!/sbin/runscript | |
# Copyright 1999-2009 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/files/postgresql.init-8.4,v 1.1 2009/09/09 21:41:25 patrick Exp $ | |
opts="${opts} reload" | |
depend() { | |
use net | |
if [ -L /etc/eselect/postgresql/service ] ; then |
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
if Gem.const_get "RubyGemsVersion" < "1.3.5" | |
%w{ | |
rubygems | |
rubygems-doc | |
rubygems1.8 | |
rubygems1.9 | |
}.each do |p| | |
apt_package(p) { action :purge } | |
end | |
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
#!/bin/sh | |
# Copyright: Nobody | |
# Author: Noone | |
# Year: ? | |
# License: Free | |
start() { | |
chef-client -i 1800 --splay 60 & | |
} |
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
cd /usr/src;wget "ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.bz2"&& tar jxfv ruby-1.8.7-p174.tar.bz2 | |
cd ruby-1.8.7-p174 | |
./configure --prefix=/usr --enable-shared --enable-pthread | |
make | |
make install | |
cd /root | |
cd /tmp | |
wget http://rubyforge.org/frs/download.php/57643/rubygems-1.3.4.tgz | |
tar zxf rubygems-1.3.4.tgz | |
cd rubygems-1.3.4 |
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
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
proxy_max_temp_file_size 0; | |
if (-f $request_filename/index.html) { | |
rewrite (.*) $1/index.html break; | |
} |
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
location / { | |
gzip on; | |
gzip_http_version 1.0; | |
gzip_vary on; | |
gzip_comp_level 6; | |
gzip_proxied any; | |
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; | |
gzip_buffers 16 8k; | |
proxy_redirect off; |
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
location / { | |
gzip on; | |
gzip_http_version 1.0; | |
gzip_vary on; | |
gzip_comp_level 6; | |
gzip_proxied any; | |
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; | |
gzip_buffers 16 8k; | |
proxy_redirect off; |