Installing Puppet Agent

Installing Puppet agent on Ubuntu 12.04 (Precise)

To install puppet on a Cloudstar (Linux) Server, the following steps need to be performed:

We start with installing all available OS patches

Reboot if necessary
Change your server’s hostname to something that makes sense

Make it easy on yourself and add the puppet server to your /etc/hosts files. Modify your puppet.conf via a module if you like

Install Puppet

Run puppet for the 1st time to test it

You might still need to sign your newly created certificate on your Puppet Server

When completed, start the puppet agent

Installing Puppet agent on Ubuntu 10.04 (Lucid)

Ubuntu 10.04 has an old Puppet version in its package repo…. therefor, it’s better to download the latest version from Puppetlabs and install it that way.

You can use this on Precise too of course!

Execute the same stuff on your server as above, but don’t apt-get install puppet…

Instead: (underneath link was the latest stable version available at the time of writing this article

Unpack and install

Test your installation:

You might encounter a message stating that you also need facter installed.

If you don’t have it, you can manually install Facter by: (you need facter v1.5 or above)


Installing Puppet agent on RHEL 5

Install the PuppetLabs Repository first:

Install puppet

Installing Puppet agent on RHEL 6

Add Optional (needed) Repo’s in your RHEL Subscription online

RHEL Server Optional (v. 6 64-bit x86_64)

in the subscription management page.

Then install the PuppetLabs Repository:

Install puppet intself

Then we add the puppet server to the /etc/hosts files

Run puppet for the 1st time

When completed, start the puppet agent


Increase size of a tmpfs mounted drive

When you are using a tmpfs drive to speed up certain files/folders (eg var/cache from a Magento webshop), and your assigned amount of memory is too small, you can easily increase this by doing  the following:

Modify your tmpfs mount in /etc/fstab to look something like this: (let’s say that I’ve changed the size of 64M to 128M

You can then remount the tmpfs drive by typing

To verify, simply type

Note: Be careful not too increase it too much! Your system will deadlock since the Out-Of-Memory handler can not free up that space if needed

Install MySQL with Sphinx Search Engine support

Recently I had some problems with a Sphinx search server which was upgraded through

This caused the Sphinx Storage engine inside my MySQL server fail to work.

When doing a search inside Mysql, eg by:

I got the follwoing error:

Also, when i was looking inside MySQL, to show the Engines, did not see any Sphinx engine active:

After searching my google friend, I never really found a straightforward solution to this problem. That’s why I bundled all steps I had to take to fix this problem.

I know my Shpinx was installed by enabling the from within MySQL, but then i got this error:

Time to redo Sphinx – MySQL integration it seems…. This is because your sphinx plugin is build on the installed release version of MySQL :'(

These are the steps you need to perform to do this:

1. Look up the current installed version of MySQL

It seems that i have MySQL 5.1.63 installed on this system.

2. Download the MySQL source for THIS version and also the latest Sphinx version from the site

I got mine as follows:

Extract the archives

Copy the mysqlse directory from sphinx to mysql engine directory from the sources:

Build your sphinx files by:

Your newly created files can now be copied to the mysql live instyalltion directory:

* You night need some pre-requisits to perform this:


But 1st check your plugin dir details in


or /etc/mysql/my.cnf

Time to load your sphinx plugin :