Took the hammer to it one more time and got it working. Thanks for the info and pointers. I am not sure why it did not work for me before, but it works now !
And I now know why I did not find the code in template_api.py ! I was searching for the whole name -- like "per_system" -- and it got generalized. The string "per_" is in one place, and the strings "system", "profile", and "distro" are in another ! On Aug 3, 2011, at 4:49 AM, petermity wrote: > Dan White <[email protected]> wrote: > >> OK, I tried creating them myself and got nothing. >> I also found reason to beluieve that the code that processes the >> multiple directories and picks the appropriate snippet was removed >> from templar.py on 4 August 2008 -- >> <http://git.fedorahosted.org/git/?p=cobbler;a=commit;h=c4b91b7049b3a7f26f5e154fee4085527f18753a >> >> > >> >> Can you tell me if your local version of templar.py contains the >> code to check for per_system|per_profile|per_distro ? >> Because mine does not. >> Nor does the source bundle I got from >> http://people.fedoraproject.org/~shenson/cobbler/cobbler-2.0.11.tar.gz > > Nor does mine. But after searching around for a while, I found it - > the > code is in the read_snippet function in template_api.py. > >> >> “Sometimes I think the surest sign that intelligent life exists >> elsewhere in the universe is that none of it has tried to contact >> us.” >> Bill Waterson (Calvin & Hobbes) >> >> ----- petermity <[email protected]> wrote: >>> Dan White <[email protected]> wrote: >>> >>>> In the wiki at <https://fedorahosted.org/cobbler/wiki/ >>>> KickstartSnippets> it talks about a tree of snippets -- >>>> >>>> /var/lib/cobbler/snippets/per_system/$snippet_name/$system_name >>>> /var/lib/cobbler/snippets/per_profile/$snippet_name/$profile_name >>>> /var/lib/cobbler/snippets/per_distro/$snippet_name/$distro_name >>>> /var/lib/cobbler/snippets/$snippet_name >>>> >>>> Does something in cobbler generate that tree for you or do you >>>> have to >>>> build it by hand ? >>> >>> You create it yourself. I have used the per_distro and per_profile >>> methods and it works fine in Cobbler 2.0.10 and 2.0.11. >>> >>> >>> _______________________________________________ >>> 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 _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
