Brown, Scott CTR -Navair - Siap wrote:
Sorry I should of mentioned that I already had a loop in place on the /mn/<iso> directory.
Any import, (unless you are using the --available-as flag) should copy files over. Unless of course you've modified /etc/cobbler/rsync.exclude or something?
Interesting enough though, after messing around with 1.0.2 over the weekend, it seems that my kickstart file is not being accepted anymore. By this I mean that everything in my script past the %post part is not 'added' to the system. Almost like it is being ignored for some reason. For security reasons I can not post my script but I can post a couple of snippets from it for reference. Thanks..
For starters, visit http://cobbler/svc/op/ks/system/$system_name (or /profile/$profile_name) to make sure the kickstarts look as you suspect they look.
Then also run "cobbler validateks" to see if any errors are detected...
--Michael
# GEN000020 (G001) # GEN000040 (G002) # GEN000060 (G003) # L224 - removed echo "Locking down GEN000020, GEN000040, GEN000060" echo "Require the root pw when booting into single user mode" >> /etc/inittab echo "~~:S:wait:/sbin/sulogin" >> /etc/inittab echo "GEN000020, GEN000040,GEN000060 Complete"
# GEN000700 # Change the password expiration time from undefined to 60 days echo "Locking down GEN000700" perl -npe 's/PASS_MAX_DAYS\s+99999/PASS_MAX_DAYS 60/' -i /etc/login.defs chage -M 60 root echo "GEN000700 Complete"
# GEN000540 # Ensure that the user cannot change their password more than once a day. echo "Locking down GEN000540" perl -npe 's/PASS_MIN_DAYS\s+0/PASS_MIN_DAYS 1/g' -i /etc/login.defs echo "GEN000540 Complete"
Thanks...
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 17:01 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Thanks for the reply. Unfortunately it seems something else is going on in the background. While I was waiting I decided to test out a theory by doing the following:
Cobbler import --path=/mnt/<.iso> --name=Test1 --kickstart=/root/kickstart/ks.cfg
Import does not take ISOs directly, you have to mount them on a loopback. That seems to be the problem.
The import seemed to work just fine except when I selected the Test1 in the menu, its saying that it needs some files from the <server>/cobbler/ks_mirror/Test1/images/stage2.img. But there are no files at all in the ks_mirror directory. Only a Config directory. What's really weird is that while watching the import, there was a lot
of 'processing' going on putting files in that directory...
Also as per your below URL, the only thing in my svc directy are 3 python files. No sub-directories.... Thanks..
Scott
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 15:20 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Recently I've updated from 0.8.2 to 1.0.2 and when I did my cobbler sync after 'tweaking' the settings to fit my network, the 'kickstart' directory with my custom kickstarts is gone. How do I associate custom kickstarts to my profiles I added? Thanks..
Scott _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Cobbler does not save kickstarts it renders on the filesystem. It renders them dynamically.
See http://server/cblr/svc/op/ks/system/name OR http://server/cblr/svc/op/ks/profile/name
This is true for any values to --kickstart that are stored on the filesystem.
If you have a kickstart that is not being managed by a cobbler template, you can, however, make it available over http and do the
following:
cobbler profile add --name=foo --kickstart=http://...
And it will not treat it as a template and will use it verbatim
Note: A user should never put any content of their own into /var/www/cobbler as cobbler owns that directory and will remove files added there during sync.
Does that answer the question?
--Michael
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler