Posted by Tres
Mon, 03 Nov 2008 09:34:00 GMT
Installing the mysql Gem under RHEL/CentOS requires you to specify where MySQL is installed. Just point Gem to the mysql-config bin & you’re good to go:
gem install mysql -- --with-mysql-config=/usr/bin/mysql_config
Posted in Red Hat Enterprise Linux, Ruby, Sysadmin, Ruby on Rails | Tags Configuration, installation, Red Hat, ruby
Posted by Tres
Fri, 07 Jul 2006 13:56:00 GMT
The easiest way to make sure that your configuration files have the right stuff in them is to use CFEngine’s editfiles: section to remove unwanted lines, and to add lines to them.
The following shows how to remove lines from /etc/rc.conf by using CFEngine’s DeleteLinesContaining command:
editfiles:
serviceadd::
{
/etc/rc.conf
DeleteLinesContaining "lpd_enable=\"YES\""
}
This next example shows how to add a line to a file via CFEngine if the line doesn’t already exist in the file:
editfiles:
serviceadd::
{
/etc/rc.conf
AppendIfNoSuchLine "cloned_interfaces=\"vlan299 vlan301 carp0\""
}
Posted in Cfengine, Sysadmin | Tags cfengine, Configuration, Edit, Files, Spot | no comments