On Thu, Oct 28, 2010 at 1:50 PM, Hermann Lauer <Hermann.Lauer@iwr.uni-heidelberg.de> wrote:
> > Do the new configuration feature you announced today also allow
> > autogeneration of host sections (i.e. only naming hosts in a
> > hostgroups members list) together with the implemented
> > auto address setting ?
> >
> Hum.. I do not understand all here, especially the "(i.e. only naming hosts
> in a
> hostgroups members list)". For the auto address it should work for all
> hosts, what ever how they are defined. What I post today was for service
> generation, not the host one.

An example may help:

define host{
      use              linux-server
      host_name        compute1
}
define host{
      use              linux-server
      host_name        compute2
}
define host{
      use              linux-server
      host_name        compute3
}
define host{
      use              linux-server
      host_name        compute4
}

define hostgroup{
      hostgroup_name   compute
      alias            Compute Servers
      members          compute1,compute2,compute3,compute4
}

My idea is to short that to something like:

define hostgroup{
      hostgroup_name   compute
      alias            Compute Servers
      members          compute1,compute2,compute3,compute4
      auto_host_use    linux-server
}

Probably there are other mechanisms to achieve the same.

Oh, a "host generator" so? Good :)
Maybe not in hostgroup, but directly in the hosttemplate (and you can add the host_group in it) :

define host{
     name   LinuxComputeTemplate
     [all other thing you want in your template]
     duplicate_foreach compute1,compute2,compute3,compute4
}

With compute1 address = alias = host_name of course.

Maybe duplicate_foreach is not a good property name here. But I like the idea.

Others people vote for this?

With this we will really have a full conf in less than 100 lines :p
Admin will be VERY lazy now ;)

Thanks for this idea :)


Jean


> > And one last question: Will shinken releases contain the html
> > documentation (near the release date, of course)
> > from the wiki, as the old docs are removed now ?
> >
> No unless we find a good way to dump the html from the wiki site. But I can
> take all the wiki pages in txt format (thanks dokuwiki for this) and we can
> see what we can do with it.

Thats a good starting point.
Thank you very much,
 Hermann

--
Netzwerkadministration/Zentrale Dienste, Interdiziplinaeres
Zentrum fuer wissenschaftliches Rechnen der Universitaet Heidelberg
IWR; INF 368; 69120 Heidelberg; Tel: (06221)54-8236 Fax: -5224
Email: Hermann.Lauer@iwr.uni-heidelberg.de