Category Archives: Sysadmin

Puppet, Facts and Certificates

I’m currently setting up Puppet at Vquence so that, among other things, we can deploy hosts into Amazon EC2 more easily. To ensure a minimum setup time on a new server I wanted the setup to be as simple as echo ‘DAEMON_OPTS=”-w 120 –fqdn newserver.vquence.com –server puppetmaster.vquence.com” > /etc/default/puppet aptitude install puppet This means that [...]

Amazon EC2 ruby gem and large user_data

When you create an instance in EC2 you can send Amazon some user data that is accessible by your instance. At Vquence we use this to send a script that gets executes at boot up. This script contains some openvpn and puppet RSA keys so its approaching about 10k in size. This works without any [...]

Squid and Rails caching

At Vquence our Rails setup looks something like this. ———— ——— ———— | Internet |—->| Squid |—->| Mongrels | ———— ——— ———— (Who needs Inkscape when you have ASCII art) This infrastructure is hosted in the US and up until recently squid hadn’t been doing much of anything except really sitting there. Now a few [...]

Elastix and VMware

Took the plunge today to update my asterisk server. I’ve been using asterisk for about 5 years now and am pretty adept and manipulating its cryptic configuration files but I wanted to move to more of an appliance. I decided to give Elastix a try. These days I virtualise all my boxes on a VMware [...]

Ubuntu, VLANs and Bridges

Bridge and VLAN support has improved dramatically under Ubuntu and probably Debian as well since I last looked into it. once upon a time to create a bridge linked to a VLAN interface you would have to do horrible things like. auto eth0 ifconfig eth0 inet manual pre-up /sbin/vconfig set_name_type VLAN_PLUS_VID_NO_PAD || true auto vlan7 [...]

Mongrel, rails and the theory of relativity

Summary (E = mc²) When using mongrel for rails and you want to deploy an app under /other_url then use ActionController::AbstractRequest.relative_url_root = “/other_url” in config/environments/production.rb instead of ENV['RAILS_RELATIVE_URL_ROOT'] = “/other_url” Proof (From first principals) At Vquence we have a pretty standard rails setup Apache with mod_proxy pen mongrel Silvia recently wrote an application to allow [...]

TCP Window Scaling and kernel 2.6.17+

So I was tearing my hair out today. I’d installed Ubuntu onto a new Sun X4200 so that I could migrate Bulletproof’s monitoring system to it. (Note you need to use edgy knot-1 for the SAS drives to be supported). Anyway as I was installing packages I was getting speeds like 10kB/s. Normally I would [...]