Hi

You need to have #raw and #end raw in the post section because of a  
few of the scripts. Put it right after the %post section line and  
cobbler should be happy.

A

Sent from my iPhone

On Jul 18, 2008, at 9:08 AM, "Brown, Scott CTR -Navair - Siap" <[EMAIL 
PROTECTED] 
 > wrote:

> Yup, there is no #raw above %post section.  On my 0.8 version of  
> cobbler
> it puts some sort of [cheetah] commands in front of each section and
> ultimately does not parse the lockdowns.  In 1.0.2 cobbler, the
> kickstart never parses.  Due to operational commitments, I had to go
> back to the working version of cobbler for me and that was 0.8 .   
> All I
> do is replace the 'blank' kickstart with the modded one until I can
> figure this out... Thanks ...
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Aaron
> Lippold
> Sent: Thursday, July 17, 2008 16:43
> To: cobbler mailing list
> Subject: Re: Custom Kickstarts
>
> Hi,
>
> Did you remove #raw from the top of the %post section so that cobbler
> doesn't try to parse the post section.
>
> I thought I put a comment in there about that.
>
> A
>
> On Mon, Jul 14, 2008 at 9:46 AM, Brown, Scott CTR -Navair - Siap
> <[EMAIL PROTECTED]> wrote:
>> Sorry I should of mentioned that I already had a loop in place on the
>> /mn/<iso> directory.
>>
>> 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..
>>
>> ---------------------------------------------------
>> # 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: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] 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
>>>> [email protected]
>>>> 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
>>> [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
>>
> _______________________________________________
> 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

Reply via email to