> For example, If i want to setup Drupal, i need seperate machines to > maintain separate tasks, > like mysql in one machine(cloud instance/node 1), apache server in another > machine(cloud instance/node 2), etc. > > So if drupal.rpm has dependencies apache.rpm(has deps too) and mysql.rpm(has > deps too) > > Is it possible in rpm package manager(yum) to handle such customizations & > above requirement? > > please suggest any other way to implement the same.
One thing which comes to my mind is to write a yum plugin. which will do the above said task in the other node. The plugin should look something like this 1. Will check for a config file which will tell about the dependencies of the particular package installed. It can also include the machine/node to be installed. 2. Use some ssh module like paramiko to connect to the remote machine and call the appropriate yum command. While typing this I also realize that the same can be done by creating a wrapper rpm for drupal which will include drupal as a dependency and the post install will do the tasks mentioned for the plugin. In this approach you need not have to have a config file but somewhere in the environment you need to have the other hostnames which can be used by the rpm post install. If you would want to generalize this approach you can probably write a framework which will create rpm spec files for such wrapper. Rgds, Siva. _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
