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

Installing Riak on ec2

Riak is something like memcached, a data store, key value db. I’m not a programmer so don’t realy know the differance between these two and never used it for anything but I was asked to installl it on ec2 and as getting it running on local interface was simple the public interface caused some troubles. And this time google didn’t help. Read more »

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

ImageMagick & RMagick

ImageMagick lenny package sucks. Espacially if You want RMagick gem on the box. Here is how to get it working: Read more »

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