I'm running 2.4.0, which has its files (on my system, at least) in:
/var/lib/cobbler/kickstarts and /var/lib/cobbler/snippetsI'm not familiar with your version; are you in a position to upgrade to the latest?
Bret On 04/11/2014 05:43 AM, Sharuzzaman Ahmat Raslan wrote:
Hi Bret, Thanks for the pointer.I cannot find the file kickstart_done snippet, but I found out that kickstart_done is inside /usr/lib/python2.6/site-packages/cobbler/kickgen.pyI think that my cobbler version is not using the snippet style? The cobbler in Satellite 5.6 is version 2.0.7 [root@atlvsat01 ~]# cobbler --version Cobbler 2.0.7 source: ?, ? build time: Thu Oct 24 11:42:26 2013On Thu, Apr 10, 2014 at 7:09 PM, Bret Wortman <[email protected] <mailto:[email protected]>> wrote:You could add your sleep to the end of the kickstart_done snippet, right after the three echos: : #echo $saveks #echo $runpost #echo $nopxe #echo "\nsleep 20" Which will produce the sleep you're looking for (read on for how to verify this). You could also do it like this: : #echo $nopxe sleep 20 You need the extra blank line before the "sleep" because of the way the #echo statements don't provide a line break. The best way to figure these things out is to pick a system name, tweak your snippets or kickstart, then check your results at http://cobbler.your.domain/cblr/svc/op/ks/system/your-hostname. If it doesn't render, or you don't like the results, tweak again and refresh the page. It's the fastest way I've found to iterate around these kinds of changes. Bret Wortman On 04/10/2014 05:11 AM, Sharuzzaman Ahmat Raslan wrote:Hi all, I'm using red hat satellite, and our setup have primary satellite and few proxy that act as TFTP server We are replicating the TFTP file from satellite to our proxy, thus there is delay for that. We found out that, right after kickstart, the updated TFTP file is still not replicated, thus we need to delay the reboot in order to compensate for the delay I search nearly everywhere on how to add delay right after cobbler trigger, but cannot find any template and snippet that do so. I think it is inside the code. What I want to do is changing this: %post # Start koan environment setup echo "export COBBLER_SERVER=atlvsat01.amd.com <http://atlvsat01.amd.com>" > /etc/profile.d/cobbler.sh echo "setenv COBBLER_SERVER atlvsat01.amd.com <http://atlvsat01.amd.com>" > /etc/profile.d/cobbler.csh # End koan environment setup wget "http://atlvsat01.amd.com/cblr/svc/op/nopxe/system/cybvtestpxe01.amd.com" -O /dev/null wget "http://atlvsat01.amd.com/cblr/svc/op/ks/system/cybvtestpxe01.amd.com" -O /root/cobbler.ks wget "http://atlvsat01.amd.com/cblr/svc/op/trig/mode/post/system/cybvtestpxe01.amd.com" -O /dev/null %end into this %post # Start koan environment setup echo "export COBBLER_SERVER=atlvsat01.amd.com <http://atlvsat01.amd.com>" > /etc/profile.d/cobbler.sh echo "setenv COBBLER_SERVER atlvsat01.amd.com <http://atlvsat01.amd.com>" > /etc/profile.d/cobbler.csh # End koan environment setup wget "http://atlvsat01.amd.com/cblr/svc/op/nopxe/system/cybvtestpxe01.amd.com" -O /dev/null wget "http://atlvsat01.amd.com/cblr/svc/op/ks/system/cybvtestpxe01.amd.com" -O /root/cobbler.ks wget "http://atlvsat01.amd.com/cblr/svc/op/trig/mode/post/system/cybvtestpxe01.amd.com" -O /dev/null *sleep 20* %end Any suggestion?-- Sharuzzaman Ahmat Raslan_______________________________________________ cobbler mailing list [email protected] <mailto:[email protected]> https://lists.fedorahosted.org/mailman/listinfo/cobbler_______________________________________________ cobbler mailing list [email protected] <mailto:[email protected]> https://lists.fedorahosted.org/mailman/listinfo/cobbler -- Sharuzzaman Ahmat Raslan _______________________________________________ cobbler mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/cobbler
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ cobbler mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/cobbler
