I figured my issue out, and maybe my solution will help someone in the future.
It appears to me (by going through the code, and reading manual) that cobbler triggers only send few pieces of information to the script, such as Server name, and Interface stuff (MAC,IP, etc..). It does not send other variables such as kmeta or kopts. This means that a script needing those variables will not work. My solution was to simply create a separate CGI and pass those variables via Cheetah snippet. So this would work something like this: (in the snip) Let's assume that you have kmeta variables of foo and bar In the snippet you can do Foo=$foo Bar=$bar Then you can do something like this: wget "http://<cobbler sever>/cgi-bin/<cgi.script>?foo=$foo&$bar=bar" This also could be changed via the services script in the python cobbler module, and allow for more variables to be passed however that would require "hacking" the cobbler code. Hope this will help someone else who is trying for this kind of functionality. Marek Dohojda -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dohojda, Marek (Hlthcr&Science) Sent: Monday, August 23, 2010 10:46 AM To: [email protected] Subject: RE: cobler.api list all properties I hope that maybe one of you know the answer to my dilemma. I believe it's the last piece of thing I need before I can be fully done. Basically I need a way to kick of a module/trigger so that it finish the install. For this script to work I need the ksmeta information along with the system name. I have thus far came up completely blank as to how to pull ksmeta into a trigger/module. Everything I tried thus far just isn't working, and even google doesn't seem to have a solution. Is there just no way to do this? Marek Dohojda 720-308-8622 77 68 6f 20 69 73 20 4a 6f 68 6e 20 47 61 6c 74 3f 0d 0a -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dohojda, Marek (Hlthcr&Science) Sent: Friday, August 20, 2010 11:37 PM To: [email protected] Subject: cobler.api list all properties I looked into the documentation for cobbler.api (both online and in pydoc) but I just don't see a way to list all available objects that I can call. In other words I would like to do something like "find_profile(*, return_list="True"). For instance, I would like to set as variable some kickstart meta objects. I looked online and noticed that the Kickstart meta is refered to as: ksmeta (although I have no clue how you can know that). So I tried something like this: Print handle.find_profile(ksmeta="*", return_list="True")... but I get nothing. I know there has to be a way to do this, maybe there is another documentation page that list more indepth on how to do things? _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
