Le 12/06/2009 16:31, Michael DeHaan a écrit :
Eric Doutreleau wrote:
Hi

i m using cobbler 1.6.4 and i m trying to use the management data with
cfengine.
But i have a problem i don't succeed in seeing the management classes
from the web interface

here is an example

i have put the management class sallestp on the system B008-04

cobbler system  find --mgmt-classes=sallestp
B008-04

cobbler system  find --hostname=b008-04.int-evry.fr
B008-04

then my profile B008-04 has the management classe sallestp and hostname
b008-04.
int-evry.fr

but http://cobbler/cblr/svc/op/puppet/hostname/b008-04.int-evry.fr
got me
classes: []
parameters: {}

then i don't find my management classes :(


First off, do you mean you are trying to /add/ cfengine support? If so,
that's great, though you want to be working off of the devel branch, not
the old 1.6.4 release if you're going to be sharing patches.

I don't think i will add cfengine support as you mean it.
I m trying to write a cfengine module that will be able to get the management classes for a host.
I won't modify at all cobbler
That s why i don't want to work on the profile level but on the systems level. It s just a convenient way to define cfengine classes with the web interface of cobbler.
That s why i would like to get accurate data from the
http://cobbler/cblr/svc/op/puppet/hostname/b008-04.int-evry.fr url.

in the http://cobbler.int-evry.fr/cobbler/web/?mode=system_edit&name=B008-04 i can see the management classes but not in the
http://cobbler/cblr/svc/op/puppet/hostname/b008-04.int-evry.fr url
should the name of system in cobbler the same as its DNS name?



In order to see management classes you must first set them:

cobbler profile edit --name=foo --mgmt-classes="dog cat webserver"

It also makes much more sense to assign classes on a profile than a
system since that's the point of profiles -- to think in terms of roles
the boxes perform and to make things repeatable.

If you search for something on a system it won't show you what you have
set on a profile.

Do you mean you can't see the management classes field in the Web User
Interface? This has been present at least since 1.4.


_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to