Re: Nested groups in func

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thursday 21 January 2010 17:49:04 Baptiste AGASSE tarihinde şunları yazmıştı:
> Hi all,

Hi

> Is it possible to create nested groups with func ?
Well,currently we dont support nested groups,but when i was rewriting the 
groups api we thought with alikins that we can achieve the same effect of 
nested groups via complex group_cli. There are some examples on wiki about it 
you can add hosts via 

[root@fedorabig func]# func "*" group --ah "@group5:[0-9]"
[root@fedorabig func]# func "*" group --la
Group : group5
         Host : 1
         Host : 0
         Host : 3
         Host : 2
         Host : 5
         Host : 4
         Host : 7
         Host : 6
         Host : 9
         Host : 8
Group : newgr

and all the cool stuff that globbing can do can be done.

> I have read some man pages and documentation on func wiki and search trac
> tickets that talk about it, but i didn't found anything.
>
> I wanted to make something like that :
>
> webservers = webserver1, webserver2, webserver3
> appservers = appserver1, appserver2
> xenservers = xen1, xen2
> virtservers = webservers, appservers
>
> datacenter1 = xenservers, virtservers

Use group_cli instead of writing the groups to conf manually.
Look at wiki for more information, 
https://fedorahosted.org/func/wiki/GroupsApi

>
>
> It will be useful for someone else ?
>
> Regards.
>
>
> Baptiste.
>
> _______________________________________________
> Func-list mailing list
> Func-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/func-list




_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list


[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux