I have received several queries on how to use the puppet toaster to automate the Baruwa installation on Centos 5.x
This post should guide you on how to do it.
Install the above repos:
rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm rpm -Uvh http://repo.baruwa.org/el5/i386/baruwa-release-5-0.noarch.rpm
If you have other repo's like the RPMForge repo you may have to disable them as their packages may conflict with the EPEL packages. All packages required for MailScanner/Baruwa are available in the two repo's you do not need any other repo's
Install the required packages:
yum install puppet -y yum install git -y
Clone the Baruwa puppet toaster:
cd /usr/local/src git clone git://github.com/akissa/baruwa-puppet.git mv baruwa-puppet/modules /etc/puppet/ mv baruwa-puppet/manifests /etc/puppet/
Edit the file /etc/puppet/manifests/toasters/baruwa/init.pp and set the variables to your own settings, make sure you go through the whole list and confirm they are correct
Run the following command which will download and install all dependencies and configure Baruwa for you automatically:
puppet -v /etc/puppet/manifests/toasters/baruwa/init.pp
If the command issues any errors just rerun it again until everything is fully configured.
Set the admin password:
baruwa-admin changepassword <username>
Post any issues you face on the Baruwa mailing list http://lists.baruwa.org
Any help extending the puppet toaster to Centos 6 and Debian/Ubuntu is welcome.