Category Archives: Sysadmin - Page 2

Ruby on Rails and Ruby Gems on Debian Lenny using backports

There’s a thing about Debian… it’s super stable, but the devs always want newer software, so if they need Ruby you have a choice of compiling it from source as I previously described here or better using the Debian Backports.

Read more »

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to reddit

Phusion Passenger, Nginx and multiple location rules

I’m fairly new to Nginx. I found an very odd problem? with setting up passenger under nginx. Apparently if I define rules for specific locations I have to enable passenger per location. Here is example config:
Read more »

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to reddit

Arrays and hashes in puppet templates

Hashes are grate way to organize data in any language, this post will demonstrate how to get to grips with hashes and templates in Puppet.
Read more »

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to reddit

Puppet templates and default values for variables

Puppet supports templates and templating via ERB, which is part of the Ruby standard library and is used for many other projects including Ruby on Rails. While it is a Ruby templating system, you do not need to understand much Ruby to use ERB.

Templates allow you to manage the content of template files, for example configuration files that cannot yet be managed directly by a built-in Puppet type. This might include an Apache configuration file, Samba configuration file, etc.

That looks easy right ? Well to be hones I’m not a Ruby programmer and I don’t know it that well but when I was developing templates I’ve asked guys who do know Ruby and not everything they advised was working.
Read more »

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to reddit

Writing custom facts for puppet

Puppet uses facts to get basic information about a server on which it runs. When you need ip address of the machine you just add $ipaddress to template or anywhere else you want to use. Unfortunately when this facter variable will be used on Amazon ec2 instance the ip will be the local ip and not the public ip. As I’m quite new to Puppet I read the documentation and write a custom fact for this.
Read more »

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to reddit