Chris O'Regan wrote:
I would like to distribute some post scripts via the Cobbler web server and I am wondering where to place them. Any suggestions?
Snippets are a great fit for this:
Have your RPM drop the snippets in:
/var/lib/cobbler/snippets/acmecorp/myfoo
Invoked as
%post SNIPPET::acmecorp/myfoo
Looking at the man page, there is some mention of Kickstart tracking and the "localmirror" directory. It would be great if I could use this to track the progress of my post scripts. I am not certain how this works or even if it is still available. Grepping through the source, I don't see anything significant.
Tracking doesn't involve the localmirror directory. "localmirror" is just a directory in /var/www/cobbler that "cobbler sync" does not erase for historical (read: backward compatibility) reasons.
Tracking works by logging events when $kickstart_start and $kickstart_done are reached in the %pre and %post of the kickstart file, each of which ultimately generates a log entry via a trigger that "cobbler status" reads to determine tracking information.
Further logging goes into /var/log/cobbler/ from remote syslog on distributions that support it (RHEL 5 does not, IIRC) which can provide other information.
Thanks,
Chris _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler