Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

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

0 comments on commit 8c2f81a

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