Hi Samuel, Thanks for sharing the scripts with all. It is very helpful. Regards, Amar On Thu, May 1, 2008 at 2:38 PM, Samuel Douglas <sam.douglas32@xxxxxxxxx> wrote: > While working on setting up GlusterFS as part of a University project, > I started working on some Python scripts to dynamically generate > GlusterFS configurations, and seeing John's question about separate > spec files for each server, decided I should post what I had done > here. > > The main 'library' script is available at: > > http://cs.waikato.ac.nz/~sjd29/glusterfs-config/glfsconf.py<http://cs.waikato.ac.nz/%7Esjd29/glusterfs-config/glfsconf.py> > > Volume definitions are represented as classes in the script which can > be configured and put together, then output ready to be read into > GlusterFS as the config file when it starts up. You write a second > Python script which utilises these classes and functions to actually > construct your site-specific configuration, either hard coding the > information or using some config files or whatever -- you write that > bit. > > Here is the example config I came up with to try it on our test cluster: > > > http://www.cs.waikato.ac.nz/~sjd29/glusterfs-config/glusterconf_waikato.py<http://www.cs.waikato.ac.nz/%7Esjd29/glusterfs-config/glusterconf_waikato.py> > > Pretty much the result of an afternoon of hacking around. Not very > well documented but could be a good starting point for anyone looking > for a dynamic config system. > > -- Samuel > > > _______________________________________________ > Gluster-devel mailing list > Gluster-devel@xxxxxxxxxx > http://lists.nongnu.org/mailman/listinfo/gluster-devel > > -- Amar Tumballi Gluster/GlusterFS Hacker [bulde on #gluster/irc.gnu.org] http://www.zresearch.com - Commoditizing Super Storage!