Skip to content
Browse files

Squeak rules to work on lofi.sociable.co.nz

  • Loading branch information...
1 parent 8b7dffb commit 8c2f81a4861ff94e66f89264603c340425d81fc2 @jamesotron jamesotron committed Dec 6, 2010
View
20 linode_dns_update/recipes/default.rb
@@ -34,13 +34,13 @@
end
# FIXME: patch to handle EC2 internal addresses too.
-bash 'update_internal_dns' do
- user 'root'
- only_if "test -e /usr/local/bin/update_linode_dns.rb"
- only_if "test -e /root/.linode.yml"
- only_if { !!node[:rackspace] }
- internal_hostname = "#{node[:hostname]}.int.rs.#{node[:domain]}"
- internal_address = node[:rackspace][:private_ip]
- only_if "test $( host -t A #{internal_hostname} | awk '{print \"x\" $4}' ) == 'x#{internal_address}'"
- code "/usr/local/bin/update_linode_dns.rb #{internal_hostname} #{internal_address}"
-end
+#bash 'update_internal_dns' do
+# user 'root'
+# only_if "test -e /usr/local/bin/update_linode_dns.rb"
+# only_if "test -e /root/.linode.yml"
+# only_if { node[:rackspace] }
+# internal_hostname = "#{node[:hostname]}.int.rs.#{node[:domain]}"
+# internal_address = node[:rackspace][:private_ip]
+# only_if "test $( host -t A #{internal_hostname} | awk '{print \"x\" $4}' ) == 'x#{internal_address}'"
+# code "/usr/local/bin/update_linode_dns.rb #{internal_hostname} #{internal_address}"
+#end
View
2 passenger/files/default/config_patch.sh
@@ -3,7 +3,7 @@
# Find our paths.
if [ -e /usr/local/rvm/rubies/default ]; then
PASSENGER_ROOT=$(/usr/local/bin/rvm default exec passenger-config --root)
- RUBY_PATH=$(/usr/local/bin/rvm default exec which ruby)
+ RUBY_PATH='/usr/local/rvm/bin/ruby'
else
PASSENGER_ROOT=$(passenger-config --root)
RUBY_PATH=$(which ruby)
View
1 passenger/templates/default/nginx.conf.erb
@@ -24,6 +24,7 @@ http {
tcp_nopush <%= @passenger[:tcp_nopush] ? 'on' : 'off' %>;
keepalive_timeout <%= @passenger[:keepalive_timeout] %>;
gzip <%= @passenger[:gzip] ? 'on' : 'off' %>;
+ server_names_hash_bucket_size 64;
include sites.d/*.conf;

0 comments on commit 8c2f81a

Please sign in to comment.
Something went wrong with that request. Please try again.